Working in an Unpublished Theme with Bold Subscriptions



This article requires some technical knowledge and prior experience with liquid code. If you are not comfortable with this, please contact our Merchant Success team for help instead.

If you are testing and developing an unpublished theme with Bold Subscriptions liquid code, you may experience some caching issues. The changes made in the application can take up to two hours to reflect on the theme you are previewing, this is due to a CloudFlare limitation. 

This issue will not occur if our liquid code exists in your published live Shopify theme. 

Rather than wait the two hours for these changes to be reflected in your unpublished theme, you have two options to push the changes through immediately for your review.

Changes or settings that are typically affected by this:

  • Switching your recurring mode in the app, like switching from "Multiple Products" to "Recurring Cart" mode. This change may cause the Subscriptions product page or cart widget not to display. 
  • Creating, editing, and deleting your subscription groups in Subscriptions.
  • Adjusting your language translations under Settings -> Language.
  • Adjusting your display options under Settings -> Display.

We recommend solution one if your store is currently in development, with no customers visiting your Shopify store. If your store is live, please use solution two.

  1. From Shopify's admin, select Online Store.

    select online store

  2. Find the theme you have been working on, select Publish theme.

    select publish theme

  3. Wait a minimum of 30 seconds and republish the theme you had published before.

    replublish the original theme

That's it!

In your unpublished Shopify theme liquid files, you can edit the bold-common.liquid file by following these steps.

  1. From Shopify's admin, select Online Store.

    select online store

  2. Find the unpublished Shopify theme you are working on and select Actions.


  3. Select Edit code.

    Edit code

  4. Under "Snippets", select bold-common.liquid.

    select bold-common.liquid

  5. Find the </script> tag, which should be close to the end of the snippet.

    find the closing script tag

  6. Look for these two lines of code:

    Note: If you can't find the code, paste these two lines above the </script> tag, but below the last {%- endfor -%} tag.

    window.BOLD.common.cacheParams = window.BOLD.common.cacheParams || {};
    window.BOLD.common.cacheParams.recurring_orders = 1500064109;

    It should look like this:

    find or add these two lines of code

  7. Change the window.BOLD.common.cacheParams.recurring_orders value to a different number. 

    change the value

  8. Select Save

    select save

 That's it!


Changing the value to a higher number will result in your recent changes being pushed instantly to the unpublished Shopify theme, so you do not have to wait to preview your changes. 

Next Steps:

Blog Posts:

0 out of 0 found this helpful



Article is closed for comments.