Top

Working in an Unpublished Theme with Recurring Orders

Warning!

This article requires some technical knowledge and prior experience with liquid code. If you are not comfortable with this, Email our Support Wizards for help instead.

If you are testing and developing an unpublished theme with Recurring Orders 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 style in the app, like switching from Multiple Product to Recurring Cart Style. This change may cause the Recurring Orders product page or cart widget not to display. 
  • Creating, editing, and deleting your Subscription Groups in Recurring Orders.
  • Adjusting your language translations under Settings -> Language.
  • Adjusting your display options under Settings -> Display.

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

  1. From "Shopify 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 Admin", select Online Store.

    select online store 

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

    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!

Result

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.