Hi,
I am using the latest woocommerce and woocommerce block plugin with the entire Toolset legacy plugin (Views & Layouts)
The problem is when I am designing the Woocomerce Single Page Product, all my Views in Footer and Header is not loading a correct id, some blank and if I load the shortcode for post id in the Views, it load up the post id of the current woocommerce product single product page all over items in my Views (where it should be querying items loaded in Views).
This problem only occur in woocommerce product single product page, when I load the same Views in Post or Pages it is working fine.
I notice there is a change in Woocommerce Block, before I think it is Woocommerce Views, and in the setting I can change the Product Archive Template File, but right now with the current Woocommerce Block I didn't find that setting, is there any work around for this problem or the setting that I can change to accomodate that?
Thanks
Hi,
Thank you for contacting us and I'd be happy to assist.
To troubleshoot this incorrect call of product post data, I'll need to see how these views are being loaded in the header/footer.
Can you please share the temporary admin login details, along with the link to an example single product page?
Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.
regards,
Waqar
Hi Waqar, is there any update regarding this issue?
best regards,
Darma
Thank you for sharing the access details.
During troubleshooting, I noticed that the views used in the header and footers were getting affected by the filters added by the third-party plugins, most likely from Elementor.
In such views, adding the suppress_filters="true" attribute to the 'wpv-post-body' shortcode of the view's loop, fixes the extra filters being applied to them.
( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body )
I've updated the shortcode in the view 'Socmed - Header' and it seems to be working correctly now:
( you can remove the custom script and test )
[wpv-post-body view_template="loop-item-in-socmed-header" suppress_filters="true"]
I hope this helps and please let me know if you need further assistance.
Hi Waqar,
Ahh i see so I have to add that, thanks it work perfectly!
Best regard,
Darma
Hi Waqar,
Ahh i see so I have to add that, thanks it work perfectly!
Best regard,
Darma