Legacy Javascript Widget commands

This guide explains the different functionalities of the Legacy Javascript Widget.

Widget commands are a set of developer tools that let you preview and test the Legacy Javascript Widget.

Commands let you change the widget template or preview the widget before publishing it in a store.

📘

Platform:

  • Shopify Checkout Integration
  • Migrated Shopify Checkout Integration

Passing commands via query parameter

You can pass the command options via query parameter by appending the widget commands to the store URL.

Example with base product
https://mystore.com?rcTemplate=radio_group

Example with variant
https://mystore.com?variant=123455&rcTemplate=radio_group


Commands reference

CommandDescriptionHas console command?Options
rechargeDisplays the widget on a product display page (even if it is unpublished)Notrue
rcTemplateChanges the displayed templateNoradio, radio_group, 'button_group, checkbox`

Need Help? Contact Us