Skip to main content

Price Rules API - Promotion Messages

This setting enables or disables displaying the public message for a rule/promotion on a product that gets added on creation of a rule with the public_name property.

In bold-pr.liquid in Shopify, add this script inside an html script tag to override default settings for showing public messages for rules/promotions on a product:

{% raw %}
<script>
window.BOLD = window.BOLD || {};
window.BOLD.pre = {
config: {
template_product: `
{{money}}
{{#fees}}<div>{{fee}}: {{{amount}}}</div>{{/fees}}
{{#has_message}}<small>{{{message}}}</small>{{/has_message}}
`,
template_cart_item: `
{{money}}
{{#fees}}<div>{{fee}}: {{{amount}}}</div>{{/fees}}
{{#has_message}}<small>{{{message}}}</small>{{/has_message}}
`,
},
};
</script>
{% endraw %}

To disable the public message from the product page, or from the cart page, remove the corresponding {{#has_message}}<small>{{{message}}}</small>{{/has_message}} line.