Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
Somehow, part of OPC's installation didn't run. You need to run the database uninstall.sql provided in the plugin's /docs sub-directory. Then those missing database elements will be re-added on an admin-page refresh.
YOU DA BOSS, Girl!!!!!! That worked!!! Thank you SO MUCH for sticking with me until this was resolved!
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
stellarweb
YOU DA BOSS, Girl!!!!!! That worked!!! Thank you SO MUCH for sticking with me until this was resolved!
No problems, happy to have helped. The real question, though, is why that database installation didn't "take" initially.
Update: Remember, too, to change that OPC totals' selector in the admin configuration.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
No problems, happy to have helped. The real question, though, is why that database installation didn't "take" initially.
Update: Remember, too, to change that OPC totals' selector in the admin configuration.
I don't know - I installed it correctly, so don't know why the orders page and the checkout was affected.
What do you mean about changing the OPC total's selector? Right now it says #ottotal > div:first-child
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
stellarweb
I don't know - I installed it correctly, so don't know why the orders page and the checkout was affected.
What do you mean about changing the OPC total's selector? Right now it says #ottotal > div:first-child
I thought that your site's Bootstrap template's tpl_modules_order_total.php had been updated to use #OPC as the selector for the order's total. Check the code before making changes.
Re: One-Page Checkout [Support Thread]
I've discovered that this module doesn't work when EC Analytics is installed (https://www.zen-cart.com/downloads.php?do=file&id=1997)
I am just presented with the regular multiple page checkout.
Is this something you're aware of, and is there a solution other than switching to a different analytics module?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
strelitzia
I've discovered that this module doesn't work when EC Analytics is installed (
https://www.zen-cart.com/downloads.php?do=file&id=1997)
I am just presented with the regular multiple page checkout.
Is this something you're aware of, and is there a solution other than switching to a different analytics module?
I've not seen that before. Are there console logs generated? Debug-logs?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
I've not seen that before. Are there console logs generated? Debug-logs?
No debug logs, or console logs.
EC Analytics is as per zc download apart from the following change after adding an admin configuration page for setting the GA number and a switch to enable/disable the module.
In includes/templates/YOUR_TEMPLATE/jscript/jscript_ec_analytics.php i replaced
if ((!defined('GOOGLE_UA') || GOOGLE_UA === "UA-XXXXXXXX-X")) {
echo '<script>alert("The Google Analytics trackingID is not yet defined in\n /includes/extra_datafiles/ec_analytics.php")</script>' ;
} else { $trackingID = GOOGLE_UA ; }
?>
with
if (GOOGLE_ANALYTICS_ENABLE == 'true'){
if ((!defined('GOOGLE_UA') || GOOGLE_UA === "UA-XXXXXXXX-X")) {
echo '<script>alert("The Google Analytics trackingID is not yet defined in Admin > Configuration > EC Analytics Configuration")</script>' ;
} else { $trackingID = GOOGLE_UA ; }
?>
so that the warning message wasn't displayed if the module wasn't active.
Site is ZC 1.5.7, latest version of OPC, and last available update of EC Analytics apart from the edit mentioned above.
Re: One-Page Checkout [Support Thread]
I did some digging around here and it seems to be related to 'NOTIFY_HEADER_START_CHECKOUT_SHIPPING', on line 26 of includes/classes/observers/class.ec_analytics.php, meaning that commenting out that line allows OPC to load correctly upon checkout. Obviously this is going to have some negative impact on the functionality of EC Analytics though.
I assume it's somehow messing with whatever part of your code calls checkout_one rather than checkout_shipping
Does that help at all?
Re: One-Page Checkout [Support Thread]
I just looked at the auto_loaders file for both OPC and ECA
ECA is using $autoLoadConfig[90] whereas OPC is mainly using $autoLoadConfig[200]
I took a wild guess that perhaps ECA being loaded earlier than OPC was causing an issue so as a test I changed ECA to $autoLoadConfig[200] as well.
The issue went away, but not sure of the ramifications of changing the loading order like this.
Is it likely to cause issues for ECA, or should I perhaps change OPC to load earlier?
What do you advise Cindy?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
strelitzia
I just looked at the auto_loaders file for both OPC and ECA
ECA is using $autoLoadConfig[90] whereas OPC is mainly using $autoLoadConfig[200]
I took a wild guess that perhaps ECA being loaded earlier than OPC was causing an issue so as a test I changed ECA to $autoLoadConfig[200] as well.
The issue went away, but not sure of the ramifications of changing the loading order like this.
Is it likely to cause issues for ECA, or should I perhaps change OPC to load earlier?
What do you advise Cindy?
You didn't indicate in your original posting, @strelitzia, but are you, by chance running zc157?
If that's the case, there's a bug in the zc157 core, identified by @mc12345678 (https://github.com/zencart/zencart/pull/3654), that prevents multiple observers from watching the same event.