How can I move my widget on the page or place it in the cart page?
Created by: Shop for Good Support
Modified on: Mon, 18 Jan, 2021 at 7:21 PM
If your Portion of Sales widget isn't automatically appearing on your product page once you connect, and/or you wish you place the widget elsewhere on the page (or even on your cart), watch the video below for a quick tutorial on how to find the right place to paste the code snippet into your theme.
Portion of Sales Manual Placement Video Tutorial
Portion of Sales Manual Placement Steps Summary
To change the location of your Portion of Sales widget on your product page, you'll need to first switch from AUTOMATIC to MANUAL placement in the Shop for Good dashboard:
Then hit SAVE!
Then copy the code snippet and manually paste it where you want it to show (you'll be pasting it within your code files):
For example, if you want to place the widget underneath your payment buttons, follow these instructions:
Remember to SAVE your changes!
Then go to your product page and refresh it to see the widget.
If you don't see it, try a couple more places in the code (see the video above for examples).
To place it in the cart page, this will depend on your theme but most likely you'll want to paste the code snippet above the <form> code in your cart-template.liquid file and follow the same process to display the widget on top of your cart: