Change Price Display w/ DIscount

  • Posts: 13
  • Thank you received: 0
13 years 11 months ago #5099

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

<span class="hikashop_product_price"><span class="hikashop_product_price">39.00</span><span class="hikashop_product_price_before_discount">44.00</span> per ticket</span>

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:
<span class="hikashop_product_price"><span class="hikashop_product_price_before_discount">44.00</span><span class="hikashop_product_price">39.00</span> per ticket</span>

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 or Create an account to join the conversation.

  • Posts: 83041
  • Thank you received: 13405
  • MODERATOR
13 years 11 months ago #5100

You can go in the menu Display->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 or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
13 years 11 months ago #5106

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 or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum