Support » Plugin: BigCommerce For WordPress » Cookie Naming Issue for Pantheon

  • adamwlang

    (@adamwlang)


    Hi,

    Trying to get this plugin to work on Pantheon servers, after adding products to the cart the cart page get cached and the cart shows as empty. See the note from Pantheon support below. Is it possible to change the cookie name? ex: wp-bigcommerce_cart_id


    Looks like the issue was the cookie name used by the plugin. bigcommerce_cart_id. The cookie name doesn’t adhere to the patterns listed “here”:https://pantheon.io/docs/cookies/#cache-busting-cookies and therefore being stripped by our caching layer for higher cache rate. To fix this, you may try changing the cookie name which one of the patterns from the doc. For example, wp-bigcommerce_cart_id if possible to replace it.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • I ran into this same issue @adamwlang

    For now, I’ve manually edited the cookie name in their plugin to be wp-bigcommerce_cart_id so this plugin will work on Pantheon.

    In talking with BC support, I’ve suggested they change the cookie name from a constant to a variable with getters and setters with a hook so if need be we could rename from the default. That way we wouldn’t have to edit the plugin itself… which is not my favorite, but necessary for now as I see it.

    There will be other issues to resolve like we will lose the advantage of Pantheon varnish cache as soon as someone adds a product to cart. That’s probably another issue to tackle on a different day… but maybe something with setting the cookie at path of /cart and then making sure checkout is at /cart/checkout or something. I’m not sure that will solve everything like the cart pebble update but getting these systems all working together should provide a nice and snappy speedy site.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.