amitramani
Forum Replies Created
-
I added the following code in my theme’s functions.php to exclude all post types except “product”. But it did not work.
function algolia_wc_remove_non_product_post_types( array $searchable_post_types) { $searchable_post_types = array('products'); return $searchable_post_types; } add_filter( 'algolia_searchable_post_types', 'algolia_wc_remove_non_product_post_types', 3, 1 );
But this code does not seem to be getting executed. Any ideas? It should work, because I am using the other algolia filter “algolia_post_product_shared_attributes” (also in functions.php), and that one does work.
Any clues? What am I doing wrong?
Hi @tw2113
Thank you for your response. To answer your question, I want them appearing as part of the drop down menu search results (autocomplete) right below the title.After experimenting a bit with the code provided here (https://github.com/algolia/algoliasearch-wordpress/issues/529), I am able to get the price to appear in the search results.
If anyone is interested, I can post my entire code snippets on how to do this. In fact, my next challenge will be to add other meta data to the results (for example, Average Rating etc).
Hello @jdtravel
Have you tried disabling the “woocommerce_structured_data_product_offer” filter by commenting out Line 1251 of the woocommerce-sea.php?You can do this without editing the woocommerce-sea.php by simply disabling the “woocommerce_structured_data_product_offer” filter in your functions.php.
Thanks
AmitI have version 2.3.0 and still see both the issues.
1. Product Title changes to “Checkout” after that product is purchased.
2. Enhanced Ecommerce data is not flowing to GA according to GA.Any ideas?
Hi Eva
Sorry for the late reply.Yes, in my case, the variations of a product are all the same price. Therefore, the availability field would not be added. For example, if a shirt is available in 3 sizes and 2 colors, all 6 variations have the same price.
Is that something you plan to address in the plugin?
hello @tatvic
I responded with details via email.Hi @tatvic
I have responded to your request. PLease let me know if anything else is needed.Hello @tatvic
Thank you for the awesome support. Here is one of the Order Thank You URL:https://www.tacknrider.com/checkout/order-received/58954/?key=wc_order_adau2ngudxixl
This particular order, reported quantities of 3 instead of 1 for the 2 items that were ordered. So total quantity shows 6 instead of 2.
Hello @tatvic
Would you like access to my GA account so you can check the quantity discrepancy?Hello @tatvic
The order is not getting duplicated. However, the quantities (in only some of the orders, not all oders) are in accurate.For example, I noticed that the quantity of an order from yesterday showed “3” when it was actually just “1”.
Is there a debug setting for the plugin so we can print debug statements using console.log ?
Hello @evavangelooven
I did not hear back from you. Any advise ?Thanks
Hello @tatvic
I have verified only one GA plugin is active on my site.site is tacknrider.com
I have verified using the Tag Assistant chrome extension.
Hello
Thank you for the fast response. It appears that Woocommerce (version 3.7.0) has corrected the problem.I double checked the default WooCommerce code (https://github.com/woocommerce/woocommerce/blob/master/includes/class-wc-structured-data.php#L261). As you can see below, the Woocommerce codes adds the “availability” feed to all the variations.
$markup_offer += array( 'priceCurrency' => $currency, 'availability' => 'https://schema.org/' . ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ), 'url' => $permalink, 'seller' => array( '@type' => 'Organization', 'name' => $shop_name, 'url' => $shop_url, ), ); $markup['offers'] = array( apply_filters( 'woocommerce_structured_data_product_offer', $markup_offer, $product ) ); }
Also, notice that your plugin is overwriting the “availability” field because it uses the ‘woocommerce_structured_data_product_offer’ filter.
I hope that you will review this and make the appropriate changes to your plugin and release an update.
I look forward to it! Thank you for a very valuable plugin!I have the same exact issue. I notice that oftentimes GA reports that Quantity of 3 was sold instead of 1 (actual sold).
I have also verified that this is the only GA plugin running on my site. This skews the data.
Has this issue been root caused?
Thank you for your help. It was not the plugin at fault. It was a jQuery error that prevented the code from executing on the Thank You page.
Is there any way to import the historical data that was not captured during this week?