Re: Fast and Easy Checkout
This is the section of code that is not working in my module
Code:
$shipping_form = '';
if ($_POST['action'] != 'process') {
$shipping_form = '<table border="0" cellspacing="0" cellpadding="2">';
$shipping_form .= '<tr><td class="main" width="200">Please Choose Your Delivery Location:</td><td class="main">';
$shipping_form .= '<select name="freightquote_delivery_location" onchange="window.location.href=\'' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, 'freightquote_delivery_location=') . '\'+this.value">';
$shipping_form .= '<option value="0"' . ($delivery_location == '0' ? ' SELECTED' : '') . '>Residential Delivery (Curbside drop off only)</option>';
$shipping_form .= '<option value="1"' . (!isset($delivery_location) || $delivery_location == '1' ? ' SELECTED' : '') . '>Business Delivery:(no loading dock) Home Businesses do not quality</option>';
$shipping_form .= '<option value="2"' . ($delivery_location == '2' ? ' SELECTED' : '') . '>Business Delivery:(with loading dock) Home Businesses do not quality</option>';
$shipping_form .= '<option value="3"' . ($delivery_location == '3' ? ' SELECTED' : '') . '>Jobsite Delivery</option>';
$shipping_form .= '</select></td></tr>';
$shipping_form .= '</table>';
} else {
$shipping_form = '<br>Delivery Location: ';
switch ($delivery_location) {
case '0':
$shipping_form .= 'Residence';
break;
case '2':
$shipping_form .= 'Commercial (with loading dock)';
break;
case '3':
$shipping_form .= 'Construction Site';
break;
case '1':
default:
$shipping_form .= 'Commercial (no loading dock)';
break;
}
}
The part in red works if fec is turned off, how to make this work with fec if it is turned on?
Re: Fast and Easy Checkout
Quote:
Originally Posted by
bislewl
Something must have went wrong with the auto-installer.
in the admin choose the last item in the configuration.
In the address bar will be gID=xx
increase/decrease the xx and you should see it.
Then for easy access next time in your DB, TABLE_ADMIN_PAGES. look for the entry for Fast & Easy Checkout and change the parameter to gID=YY
That usually does the trick.
I'm trying to get a stable test setup of ZC 1.5.3 before converting my live site.
I've committed to using Numinix Tableau as the theme and a small set of plugins to support it. So far I've installed Edit Orders (EO), Super Orders (SO), Add New Customer (ANC), Reset Client Password From Admin (RCP), OzPost MultiQuote (OZPost). These all worked fine until I installed Fast And Easy Checkout (FEC/FEAC).
My first attempt to install FEAC seemed successful - it appeared in the configuration menu - but I then encountered difficulties with OZPost and to diagnose the problems I disabled FEAC by running the uninstaller from the package (pasted into SQL patcher). Returning to the Configuration menu (which should have run the installer) showed the FEC entry was missing. I've since run the uninstaller a couple of times, merged the various files and code snippets a couple of times without success before embarking on the exploration described below. (Sorry about the long post - there's no happy ending yet, but some partial success which may help you).
I then examined the scripts and database structure for clues. Firstly, it seems there is a history of name changes in the configuration options which hasn't been carried through. Some options are prefixed FEC others FEAC. The uninstaller seems to fail for this reason.
Secondly, I could find no entry in the ADMIN_PAGES table. It isn't being inserted so it's not appearing in the Configuration Menu. It was created the first time I installed but not since, so I'm guessing there's some rogue process blocking it. Perhaps the Uninstaller isn't a complete cleaner.
This is the uninstall script from the FEC/FEAC v1.15.3 package:
Code:
SET @configuration_group_id=0;
SELECT @configuration_group_id:=configuration_group_id
FROM configuration
WHERE configuration_key= 'FAST_AND_EASY_CHECKOUT_VERSION'
LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id;
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id;
#Zen Cart v1.5.0+ only Below! Skip if using an older version!
DELETE FROM admin_pages WHERE page_key = 'configFastandEasyCheckout' LIMIT 1;
I have only a rudimentary understanding of SQL but this is what I think it does:
- Three tables will be affected.
- The CONFIGURATION table is searched for a record where the configuration_key field contains 'FAST_AND_EASY_CHECKOUT_VERSION'.
- The corresponding configuration_group_id (i.e. the 'gID') is then retrieved and used to find and delete relevant records in the tables: CONFIGURATION, CONFIGURATION_GROUP and ADMIN_TABLE_PAGES.
When I look in my CONFIGURATION table there is no record with the configuration_key='FAST_AND_EASY_CHECKOUT_VERSION' - but there is a configuration_key='FEAC_VERSION'
Running the uninstaller with that change actually does work as expected (I checked result via phpMyAdmin) but now, when I try to access admin I get this message:
Quote:
WARNING: An Error occurred, please refresh the page and try again.
The error log shows this:
Quote:
PHP Warning: mysql_num_fields() expects parameter 1 to be resource, boolean given in /blah/admin/includes/functions/extra_functions/nmx_disk_cache.php on line 8
PHP Fatal error: 1060 Duplicate column name 'COWOA_account' :: ALTER TABLE customers ADD COWOA_account tinyint(1) NOT NULL default 0; ==> (as called by) /blah/admin/includes/installers/fec/1_12_0.php on line 29 <== in /blah/includes/classes/db/mysql/query_factory.php on line 155
Presumably the FEC installer is trying to run but then dies when it encounters the pre-existing field (how it is created before the FEAC script does I don't yet know).
If I run the uninstaller script, then delete the COWOA _account column (via phpMyAdmin), then try to access Admin I still get the error. There must be a mechanism that prevents auto-installer scripts from running every time you make a menu selection, but I don't know what it is where to find it nor how to disable / reset it.
Not sure where to go from here.
Re: Fast and Easy Checkout
For some reason, I cannot get Store Pickup to stay selected on final order total before confirming the order. I have a fresh install, and I am not live yet because I am working through all my issues and custom configurations first. I am doing all test orders for different customer scenarios. However, I can not get Store Pickup to stay selected on the final checkout page before confirming. It shows up as a possible shipping selection on Checkout Step 2 of 3 page with the other selection Flat Rate. It always defaults to Flat Rate. It never defaults to Store Pickup. I can select Store Pickup as the chosen radio button, but then when I click Continue and go to Checkout 3 of 3 page, it switches to Flat Rate. I cannot get it to stay on Store Pickup! This is not good, because some customers will not want shipping at all and want to pick up their products at the store. At this rate, I am not able to know if they want Store Pickup, just looking at their checkout results. Am I doing something wrong in the setup of the products or shipping modules, or configuration settings? I have no idea where to start digging to look for the solution to this problem. I have Stirling Grand template and Fast and Easy Checkout installed. I am using the latest ZC version 1.5.3. In Modules > Order Total > Shipping, I have Shipping set to "Free shipping for orders over $100". But that does not seem to affect anything. I am testing with orders way under $100, and it still does not work properly. I can let you know any more configuration settings that you need to know, and also let you look at my store site. Please help!
2 Attachment(s)
Re: Fast and Easy Checkout
I would like to go live with a more up to date version of Zencart but the reason it has sat around for so long is that I have a couple of Fast and Easy Checkout Issues on the checkout page.
1) The edit button appears in the wrong position on the page. Is it possible to move it to a better position within the box ?
2) How can I remove the Order Options Box. As it is empty and I dont know what it is used for.
1 Attachment(s)
Re: Fast and Easy Checkout
Hi,
A happy new year to all users!
I have installed FEC 1.15.3 on Zencart 1.5.3 on Tableau Reponsive template.
Everything is working nicely except the Order total alignment on Checkout page 2.
Attachment 14822
I need to arrange this properly.
Please help!
Re: Fast and Easy Checkout
Quote:
Originally Posted by
kapil_sb
Hi,
A happy new year to all users!
I have installed FEC 1.15.3 on Zencart 1.5.3 on Tableau Reponsive template.
Everything is working nicely except the Order total alignment on Checkout page 2.
Attachment 14822
I need to arrange this properly.
Please help!
Hi
I have checked with previous version tpl_checkout_stacked.php, and code is ok.
But somehow, the Order Total is not displaying correctly because of CC (may be). I checked fec_global.css and this is not picking the css form there.
Can you please help me ?
Re: Fast and Easy Checkout
Hello Lucidlee -
Took me ages to find it - but there is a new (posted 10th December 2014) uninstall.sql that explicitly looks for both keys:
======= This is not the actual script - it's just to illustrate===========
configuration_key= 'FAST_AND_EASY_CHECKOUT_VERSION'
and
configuration_key= 'FEAC_VERSION'
=======================================================
I ran the script - and on reloading FEC was back in admin :)
(Latest FEC + ZenCart 1.5.4)
To get the script, go here:
https://github.com/numinix/fec/blob/.../uninstall.sql
Cut & paste the script (all 18 lines) from the main box into, say, Notepad - then save as an .sql file - 'uninstall.sql'
Then you can paste the script into the SQL Query Executor at Admin - Tools - Install SQL Patches..
Then, if you haven't deleted any files, the FEC is restored and reappears in Admin - Configuration menu as soon as the page is refreshed twice (first time runs the uninstall, second time rebuilds it as the files are all still there)
Be good if Numinix included this version of uninstall.sql in their current release :O
Hope this helps,
Mr Sensible
Re: Fast and Easy Checkout
Y'all,
Are there any plans to add a plain and simple "Purchase Order Number" field to FEC? (on the Confirmation page)
And yes it would need to propagate to the other appropriate forms.
With all the other GREAT features this module has I'm surprised a PO Number field wasn't there from day one.........
I have checked out three of the other PO Number mods and they all have some additional feature which make them undesirable.
Looked into moding a mod like "Ship Date" but they are too complex for what I need.
After reading many posts on PO Number it seems there is a need for it separate from any other hooks like payment etc. or at least an easy way to disable features.
Thanks, for Your time.
Re: Fast and Easy Checkout
Me Again.....
I can't seem to find any documentation on the function of the Optional Check box in FEC.
Like where do I configure it.
The reason I ask is I may be able to modify the code and use it for a simplified PO Number entry box.
Thanks,
<!-- bog FEC v1.27 CHECKBOX -->
<fieldset class="fec-fieldset fec-block-checkout split" id="checkoutFECCheckbox">
<legend>Optional Checkbox</legend>
<span class="fec-fieldset-legend">Optional Checkbox</span>
<label>Signature Option?</label>
<input type="checkbox" name="fec_checkbox" value="1" id="fec_checkbox" /> </fieldset>
<!-- eof FEC v1.27 CHECKBOX -->
Re: Fast and Easy Checkout
FEC is written, maintained, and supported by www.numinix.com
They can answer your questions most effectively.