Skip Navigation

[Resolved] Problem with Woocommerce Block and woocommerce product single product page

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Waqar 1 year, 3 months ago.

Assisted by: Waqar.

Author
Posts
#2634495

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

#2634665

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

#2635923

Hi Waqar, is there any update regarding this issue?

best regards,
Darma

#2635945

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.

#2636357

Hi Waqar,

Ahh i see so I have to add that, thanks it work perfectly!

Best regard,
Darma

#2636359

Hi Waqar,

Ahh i see so I have to add that, thanks it work perfectly!

Best regard,
Darma