Legacy Javascript Widget commands
This guide explains the different functionalities of the Legacy Javascript Widget.
This guide describes the legacy Recharge JavaScript subscription widget, which is no longer officially supported or under active development. It remains available for merchants who continue to use the legacy widget. Recharge recommends using the current Recharge subscription widget for new implementations. Recharge Support may have limited ability to troubleshoot issues related to the legacy 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.
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 producthttps://mystore.com?rcTemplate=radio_group
Example with varianthttps://mystore.com?variant=123455&rcTemplate=radio_group
Commands reference
| Command | Description | Has console command? | Options |
|---|---|---|---|
| recharge | Displays the widget on a product display page (even if it is unpublished) | No | true |
| rcTemplate | Changes the displayed template | No | radio, radio_group, 'button_group, checkbox` |
Updated about 2 hours ago
