co1inr
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Cart page breaking during table outputAh yes, thanks Mike. There’s also this inside the table itself:
Fatal error: Call to undefined method WC_Cart::get_cart_item() in [MY-DOMAIN-ROOT]/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics.php on line 394
The table headers are visible, but the cart rendering fails at the first hurdle and there’s no HTML after that in the source. ie:
<table class=”shop_table cart” cellspacing=”0″>
<thead>
<tr>
<th class=”product-remove”> </th>
<th class=”product-thumbnail”> </th>
<th class=”product-name”>Product</th>
<th class=”product-price”>Price</th>
<th class=”product-quantity”>Quantity</th>
<th class=”product-subtotal”>Total</th>
</tr>
</thead>
<tbody><tr class=”cart_item”>
<td class=”product-remove”>
Fatal error: Call to undefined method WC_Cart::get_cart_item() in [MY-DOMAIN-ROOT]/wp-content/plugins/woocommerce-google-analytics-integration/includes/class-wc-google-analytics.php on line 394
Colin
Forum: Plugins
In reply to: [WooCommerce] Cart page breaking during table outputThanks. Added this top the top of wp-config.php ->
define(‘WP_DEBUG’, true);
if (WP_DEBUG) {
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, true);
@ini_set(‘display_errors’, 0);
}Got this error (root path removed):
Notice: WOOCOMMERCE_USE_CSS is deprecated since version 2.1! Use Styles should be removed using wp_deregister_style or the woocommerce_enqueue_styles filter rather than the WOOCOMMERCE_USE_CSS constant. instead. in [MY-DOMAIN-ROOT]/wp-includes/functions.php on line 3078
Thanks, that would be fantastic.
I had this problem when hosting on BlueHost.
Not sure why this was happening and BlueHost couldn’t help. So I moved my site off BlueHost and the problem went away.
HTH
Colin
Forum: Plugins
In reply to: [Arigato Autoresponder and Newsletter] Emails not being sent outThanks. They confirmed it was a problem at their end.
Colin
Forum: Plugins
In reply to: [Arigato Autoresponder and Newsletter] Set time of day to send emailsThank you so much! I upgraded yesterday, adjusted my cron job settings and all worked perfectly this morning at 10am.
Superb.
Colin
Forum: Plugins
In reply to: [Arigato Autoresponder and Newsletter] Set time of day to send emailsThat would be fantastic! I look forward to downloading the upgrade.
Colin
Forum: Plugins
In reply to: [Arigato Autoresponder and Newsletter] Set time of day to send emailsAh! Got you.
I notice there’s a control for send time in the PRO version. Would this give me what I need?
And would my existing autoresponders be retained after upgrade?
Colin
Forum: Plugins
In reply to: [Arigato Autoresponder and Newsletter] Set time of day to send emailsThe site doesn’t have any visitors. It’s brand new.
The cron job points to /wp-cron.php which seems to trigger BFT?
Colin
Forum: Plugins
In reply to: [Arigato Autoresponder and Newsletter] Set time of day to send emailsThanks for the reply.
I’ve disabled the standard WP-Cron which is triggered by visitors and set an external cron job on my server which runs at 10:00 GMT every day.
From what you’ve said I’d expect this to send at the email pretty much at that point as the cron just runs once. However the most recent were sent out at 02:12 GMT.
What could be causing the difference in time?
Colin
I’ve implement this with a custom template.
I see there’s already a request for this from about 2 years ago – but the thread was closed.
https://eventsmanagerpro.com/support/requests/google-analytics-ecommerce-tracking-support/
Any plans to progress with this? Tracking eCommerce transactions in Google Analytics is critical for optimising advertising spend.
Yes, EMpro and PayPal.
If you can’t help that’s OK. I just thought it might be useful for your other customers to have a solution on this forum as it would be a great addition to EMpro.
Perhaps something to consider for future releases?
Indeed, though as mentioned above the URL from PayPal is very limited.
Can you advise what PHP I’d need to pull out the rest of the transaction information from WordPress?
For example, PayPal is passing back the ID of the event. But recording that in Google Analytics could be pretty meaningless. So ideally I’d like to use the ID to query the database for the event title and push THAT up to Google Analytics.
Likewise the URL from PayPal doesn’t tell me anything about the customer. So again it would be useful to query the database for more details – such as the customer’s location.
To clarify, I want to report details of all transactions on my site to Google Analytics so that I can optimise my traffic sources based on results:
https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce
When customers are returned to my site from PayPal they are directed to a custom thank you page which needs Google’s script adding to it. In turn this script needs to be populated with the transaction values.
I only get a few details passed back by PayPal in the returning URL – namely:
1) the Transaction ID – unique string generated by PayPal
2) the Event ID – the ID of the event for which tickets
have just been purchased via the aforementioned transaction3) the Order ID – the ID of the order in the Events Manager tables of the WP database
However these references should be sufficient for me to identify and retrieve details of the purchase from the WP database using PHP.
Therefore what I need to do now is use those few pieces of data to query the database for more details regarding the purchase, populate the variables in Google’s tracking javascript and push them to Google when the thank you page loads.
Can you help with that?
Colin