bigcommerce / bigcommerce-for-wordpress

A headless commerce integration for WordPress, powered by BigCommerce
https://www.bigcommerce.com/wordpress/
GNU General Public License v2.0
109 stars 49 forks source link

Nonce Expiry #376

Closed jamescscotlightdirect closed 1 year ago

jamescscotlightdirect commented 2 years ago

The nonce expiry every 24 hours on product pricing causes issues with caching plugins on Wordpress (WP Rocket & Accelerator). When the nonce expires the pricing API fails causing no prices to load. It would be great if another solution was put in place or there was an option to turn this off or remove it as the suggestion of not caching the pages is not an option for e-commerce sites as it is most of the website.

Thank you

Rolo117 commented 2 years ago

We have exactly the same problem with WP rockets. You should be able to just choose to use your synced price only if this removes the nonce. Our website is running much slower now because the work around means we can't do any cache warm up/lazy load. We could really do with a solution to this as according to big commerce more people have this issue.

yuenvision commented 2 years ago

Expected to be addressed in v4.34.0

jamescscotlightdirect commented 1 year ago

@yuenvision Hi Paul, I can see this request is being implemented on the next release thank you very much. This is a major fix for us.

Can I clarify how this is being implemented. Will we have to manually go into each product page to request this to be disabled button or will there be an option to apply to all products at once?

"The option allows nonce disabling in pricing requests on a single product page"

yuenvision commented 1 year ago

It will be an admin option that affects all product detail pages (product_single) site-wide.

jamescscotlightdirect commented 1 year ago

@yuenvision Great news thank you very much

jamescscotlightdirect commented 1 year ago

@yuenvision Hi Paul, Thanks again for the update. Pushed the update live but there is no nonce section on product singe in customizer. Am I looking in the correct place?

Product single 1 product single 2

jamescscotlightdirect commented 1 year ago

Hi Paul, Hope you are well. Do you know roughly when a fix will be released for this? Cheers James

yuenvision commented 1 year ago

This feature was already released. Please ensure and confirm that your version of BC4WP is at least v4.34.0 and that you have the Fast Headless import method enabled in your Settings. You should then see the option in Appearance > Customizer > BigCommerce > Product Single.

Screen Shot 2022-09-26 at 9 25 51 AM
jamescscotlightdirect commented 1 year ago

Thanks Paul I can see this now as Fast headless we not enabled. Graph QL issue is back once I enabled this but will open a new ticket again. This can now be closed