When you add an attribute that increases or decreases the base price of the product, it will display the price change in parenthesis next to the attribute. A common request we receive from our clients is "How do I remove that?".
To answer your question, this article will guide you through the steps.
In this article, you will learn:
Removing the Price Modifier HTML in Cart Designer
Removing the Price Modifier HTML Directly in the Files
Note: This article will show you how to edit the product page to remove the price modification. This will work for Pinnacle Cart 3.7.X and 3.8.X. Please be aware that this requires some HTML editing.
Removing the Price Modifier HTML in Cart Designer
This is what a price modifier looks like prior to removing the variable.
To remove it, follow these steps.
- Click Design > Cart Designer.
- Navigate to any product page, right-click around the attribute section and choose Edit Source Code.
- You'll know you're on the correct file if it shows you're editing element-purchase.html.
- Use Ctrl + F or Command + F on MAC to locate the two instances of {$option.modifier} and remove them both. Click Save.
- Exit Cart Designer and return back to your product page. This is what it should now look like.
Removing the Price Modifier HTML Directly in the Files
1. Access your files through FTP or your File Manager.
2. Navidate to /content/engine/design/templates/pages/product/elements/, open the file element-purchase.html and copy the content.
3. Paste the code into a plain text editor like Notepad and save the file as element-purchase.html. Now navigate to /content/skins/_custom/skin/templates/pages/product/elements/ and upload the file.
4. Edit this file and remove the {$option.modifier} smarty variable. This variable is in two separate places, normally on line 24 and line 32. Then, Save the file.
5. Go to Design > Cart Designer which will refresh your theme.
6. Now simply click the 'Exit' button in the bottom right corner
7. Browse your product pages with price modifying attributes and notice that the price modifier is now hidden from view, yet the price still changes when changing the attribute.
Note: You can also edit this through the Cart Designer.
Links to Related Articles
How can I get FTP Access to my Files?
If you didn't get your question answered, please contact the Pinnacle Cart Support Team. To submit a ticket, go to the My Account drop-down menu at the top right of the admin area and select Support.