Can I allow my customers to set the price?
Most of the pricing options on your Shift4Shop store involve creating products with static prices assigned to them. However, in some cases, you might need to specify a product where your shoppers can set the price.
For example, perhaps you'd like to offer a donation type of product where the amount is set by the customer, or you'd like to offer a gift certificate where the customer can personally set the gift certificate amount themselves.
For these types of situations, we've created the following article which will show you how to customize a template that will accommodate a custom price. Below are the steps to follow:
For this tutorial, we will detail the basic concept of creating a modified version of your store's default listing template and editing it to allow for custom pricing. You will then upload this modified file up to your store and use it for whichever products you'd like to offer custom pricing on. To successfully use this tutorial, you will need the following:
Editing your Template:
The first step in the process will involve retrieving a copy of the listing template that is normally used for your product listings. We'll be editing this file and using the modified version for your custom priced products. So first, we'll need to retrieve the appropriate template file from your store's FTP folders. The process will differ depending on whether your site is using an HTML5 theme or a non-HTML5 theme.
Now that the file is downloaded and re-named, you are ready to edit it
<!--START: ITEMPRICE--> and <!--END: ITEMPRICE-->
The above change is needed so that the product's "Your Price" section indicates to your shoppers that their desired amount will be entered further down the page. Of course, you may change the wording as neeed if you want it to say something other than "Enter Amount Below."
<!--START: qtybox--> and <!--END: qtybox-->
<label>Enter Amount $</label>
Your Theme Folder will be located via FTP by navigating to "/web/assets/templates/[theme-name]" If you do not know your site's current theme name, navigate to Settings >Design >Themes & Styles in your Shift4Shop Online Store Manager, where the name will be shown at the top next to the label "Selected Theme."
Setting Your Product's Listing Template
Now that the template has been modified and uploaded, you will need to assign the listing template you created so that it applies to the custom price product(s).
If you named the listing template listing_10.html as instructed earlier, the style's number should be Style 11. However, if you've changed its name to another number, the Style listing will always be one digit more than the template's name. (i.e. listing_5 will be "Style 6," listing_20 will be "Style 21," etc.)
Once complete, the product will allow your customers to set the purchase price as they would like.