[Skip to main content](#vessel-content)

#   Change Price Display w/ DIscount

##

- **[Invex09](/forum/user/550-invex09 "View Invex09's Profile")**
- [![Invex09's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/550-invex09 "View Invex09's Profile") Topic Author
- [ Offline](/forum/user/550-invex09)

Less More

- Posts: 13
- Thank you received: 0
-
-

15 years 9 months ago [\#5099](#5099) by [Invex09](/forum/user/550-invex09 "View Invex09's Profile")  *[Change Price Display w/ DIscount](/forum/4-how-to/5099-change-price-display-w-discount#5099 "I have a $5 discount set on all products and currently the price for a product is displayed with the following HTML:  however I would like to switch it to show the initial price, crossed out (which it currently does), before the final price with the discount, like this:  Is there a template or PHP/HTML file I can edit somewhere that will allow me to make this quick change? I'm very familiar with PHP and HTML so I have no problem editing any source code. Thanks in advance!")* was created by *[Invex09](/forum/user/550-invex09 "View Invex09's Profile")*

I have a $5 discount set on all products and currently the price for a product is displayed with the following HTML:
Code:

&lt;span class="hikashop_product_price"&gt;&lt;span class="hikashop_product_price"&gt;39.00&lt;/span&gt;&lt;span class="hikashop_product_price_before_discount"&gt;44.00&lt;/span&gt; per ticket&lt;/span&gt;

however I would like to switch it to show the initial price, crossed out (which it currently does), before the final price with the discount, like this:
Code:

&lt;span class="hikashop_product_price"&gt;&lt;span class="hikashop_product_price_before_discount"&gt;44.00&lt;/span&gt;&lt;span class="hikashop_product_price"&gt;39.00&lt;/span&gt; per ticket&lt;/span&gt;

Is there a template or PHP/HTML file I can edit somewhere that will allow me to make this quick change? I'm very familiar with PHP and HTML so I have no problem editing any source code. Thanks in advance!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUwOTktY2hhbmdlLXByaWNlLWRpc3BsYXktdy1kaXNjb3VudD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

15 years 9 months ago [\#5100](#5100) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Change Price Display w/ DIscount](/forum/4-how-to/5099-change-price-display-w-discount#5100 "I have a $5 discount set on all products and currently the price for a product is displayed with the following HTML:  however I would like to switch it to show the initial price, crossed out (which it currently does), before the final price with the discount, like this:  Is there a template or PHP/HTML file I can edit somewhere that will allow me to make this quick change? I'm very familiar with PHP and HTML so I have no problem editing any source code. Thanks in advance!")*

You can go in the menu Display-&gt;Views. There, you can edit the file listing_price of the view product where that code is generated. The modifications will be saved as a template override so you won't loose your changes when you update.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUwOTktY2hhbmdlLXByaWNlLWRpc3BsYXktdy1kaXNjb3VudD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Invex09](/forum/user/550-invex09 "View Invex09's Profile")**
- [![Invex09's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/550-invex09 "View Invex09's Profile") Topic Author
- [ Offline](/forum/user/550-invex09)

Less More

- Posts: 13
- Thank you received: 0
-
-

15 years 9 months ago [\#5106](#5106) by [Invex09](/forum/user/550-invex09 "View Invex09's Profile")  Replied by *[Invex09](/forum/user/550-invex09 "View Invex09's Profile")* on topic *[Re: Change Price Display w/ DIscount](/forum/4-how-to/5099-change-price-display-w-discount#5106 "I have a $5 discount set on all products and currently the price for a product is displayed with the following HTML:  however I would like to switch it to show the initial price, crossed out (which it currently does), before the final price with the discount, like this:  Is there a template or PHP/HTML file I can edit somewhere that will allow me to make this quick change? I'm very familiar with PHP and HTML so I have no problem editing any source code. Thanks in advance!")*

Thanks this is what i was looking for. Code was more complicated than I thought but I was able to make that change. Thanks again!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUwOTktY2hhbmdlLXByaWNlLWRpc3BsYXktdy1kaXNjb3VudD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.075 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
