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

#   Display price before the discount - line through

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 7 months ago -  10 years 7 months ago [\#234912](#234912) by [jwatson912](/forum/user/9699-jwatson912 "View jwatson912's Profile")  *[Display price before the discount - line through](/forum/26-product-category-display/883501-display-price-before-the-discount-line-through#234912 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hello,  I'm having a bit of trouble with the display of the discount when using &quot;display price before the discount is applied&quot;. I modified PRICE&#95;DISCOUNT&#95;END=&quot; Off Sale: &quot; which give the the langues I want of &quot;XX% Off sale: $XX.XX each&quot; but when I active the Display price before discount it removes the XX% and puts a line through my modified PRICE&#95;DISCOUNT&#95;END= .  When I use &quot;display discount&quot; I get the attached screenshot 1  when I use &quot;display price before discount is applied&quot; I get the attached screenshot 2  I would like it to display as below when &quot;Display the price before discount is applied&quot; is activated.  &#91;strike&#93;$18.49&#91;/strike&#93; 40% off sale: $11.09 each  I can give you back end access to the website if you need, but I really need some help on this one!  Thank you,")* was created by *[jwatson912](/forum/user/9699-jwatson912 "View jwatson912's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

Hello,

I'm having a bit of trouble with the display of the discount when using "display price before the discount is applied". I modified PRICE_DISCOUNT_END=" Off Sale: " which give the the langues I want of "XX% Off sale: $XX.XX each"
but when I active the Display price before discount it removes the XX% and puts a line through my modified PRICE_DISCOUNT_END= .

When I use "display discount" I get the attached screenshot 1

when I use "display price before discount is applied" I get the attached screenshot 2

I would like it to display as below when "Display the price before discount is applied" is activated.

**\[strike\]$18.49\[/strike\]
40% off sale: $11.09 each**
I can give you back end access to the website if you need, but I really need some help on this one!

Thank you,

- [ ![Screenshot&#95;1.png](/forum/attachment/30394) ](/forum/attachment/30394 "Screenshot&#95;1.png") [ ](/forum/attachment/30394?download=1 "Screenshot&#95;1.png")
- [ ![Screenshot&#95;2.png](/forum/attachment/30395) ](/forum/attachment/30395 "Screenshot&#95;2.png") [ ](/forum/attachment/30395?download=1 "Screenshot&#95;2.png")

Last edit: 10 years 7 months ago by [jwatson912](/forum/user/9699-jwatson912 "View jwatson912's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODM1MDEtZGlzcGxheS1wcmljZS1iZWZvcmUtdGhlLWRpc2NvdW50LWxpbmUtdGhyb3VnaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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: 86586
- Thank you received: 14325
-
-

10 years 7 months ago [\#234943](#234943) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display price before the discount - line through](/forum/26-product-category-display/883501-display-price-before-the-discount-line-through#234943 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hello,  I'm having a bit of trouble with the display of the discount when using &quot;display price before the discount is applied&quot;. I modified PRICE&#95;DISCOUNT&#95;END=&quot; Off Sale: &quot; which give the the langues I want of &quot;XX% Off sale: $XX.XX each&quot; but when I active the Display price before discount it removes the XX% and puts a line through my modified PRICE&#95;DISCOUNT&#95;END= .  When I use &quot;display discount&quot; I get the attached screenshot 1  when I use &quot;display price before discount is applied&quot; I get the attached screenshot 2  I would like it to display as below when &quot;Display the price before discount is applied&quot; is activated.  &#91;strike&#93;$18.49&#91;/strike&#93; 40% off sale: $11.09 each  I can give you back end access to the website if you need, but I really need some help on this one!  Thank you,")*

Hi,

There is no option to display both the initial price and the discount percentage. It's one or the other.
If you want both, you'll have to edit the file "listing_price" of the view "product" via the menu Display&gt;Views.

Here is an example:
[ hikashop.com/forum/4-how-to/21930-how-to...discounts.html#33909](https://hikashop.com/forum/4-how-to/21930-how-to-change-the-display-for-discounts.html#33909)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODM1MDEtZGlzcGxheS1wcmljZS1iZWZvcmUtdGhlLWRpc2NvdW50LWxpbmUtdGhyb3VnaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 7 months ago [\#235366](#235366) by [jwatson912](/forum/user/9699-jwatson912 "View jwatson912's Profile")  Replied by *[jwatson912](/forum/user/9699-jwatson912 "View jwatson912's Profile")* on topic *[Display price before the discount - line through](/forum/26-product-category-display/883501-display-price-before-the-discount-line-through#235366 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hello,  I'm having a bit of trouble with the display of the discount when using &quot;display price before the discount is applied&quot;. I modified PRICE&#95;DISCOUNT&#95;END=&quot; Off Sale: &quot; which give the the langues I want of &quot;XX% Off sale: $XX.XX each&quot; but when I active the Display price before discount it removes the XX% and puts a line through my modified PRICE&#95;DISCOUNT&#95;END= .  When I use &quot;display discount&quot; I get the attached screenshot 1  when I use &quot;display price before discount is applied&quot; I get the attached screenshot 2  I would like it to display as below when &quot;Display the price before discount is applied&quot; is activated.  &#91;strike&#93;$18.49&#91;/strike&#93; 40% off sale: $11.09 each  I can give you back end access to the website if you need, but I really need some help on this one!  Thank you,")*

Thank you Nicolas for pointing me in the right direction, but I need a little more help.

I've got the discount to display correctly on the product page (see screenshot 5)

but I don't want to the discount to display in the item line of the checkout (see screenshot 6) I just want the unit price (e.g. $11.09) and the total price (e.g. $22.19) to display with out "-40% off sale".

I believe this can be done in the view, checkout/listing_price, but am unsure of the proper PHP to remove and replace to stop the display of the discount in the checkout only.

- [ ![Screenshot&#95;5.png](/forum/attachment/30448) ](/forum/attachment/30448 "Screenshot&#95;5.png") [ ](/forum/attachment/30448?download=1 "Screenshot&#95;5.png")
- [ ![Screenshot&#95;6.png](/forum/attachment/30449) ](/forum/attachment/30449 "Screenshot&#95;6.png") [ ](/forum/attachment/30449?download=1 "Screenshot&#95;6.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODM1MDEtZGlzcGxheS1wcmljZS1iZWZvcmUtdGhlLWRpc2NvdW50LWxpbmUtdGhyb3VnaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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: 86586
- Thank you received: 14325
-
-

10 years 7 months ago [\#235395](#235395) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display price before the discount - line through](/forum/26-product-category-display/883501-display-price-before-the-discount-line-through#235395 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hello,  I'm having a bit of trouble with the display of the discount when using &quot;display price before the discount is applied&quot;. I modified PRICE&#95;DISCOUNT&#95;END=&quot; Off Sale: &quot; which give the the langues I want of &quot;XX% Off sale: $XX.XX each&quot; but when I active the Display price before discount it removes the XX% and puts a line through my modified PRICE&#95;DISCOUNT&#95;END= .  When I use &quot;display discount&quot; I get the attached screenshot 1  when I use &quot;display price before discount is applied&quot; I get the attached screenshot 2  I would like it to display as below when &quot;Display the price before discount is applied&quot; is activated.  &#91;strike&#93;$18.49&#91;/strike&#93; 40% off sale: $11.09 each  I can give you back end access to the website if you need, but I really need some help on this one!  Thank you,")*

Hi,

In the checkout/listing_price.php view file, you can add such code at the top:
&lt;?php $this-&gt;params-&gt;set('show_discount',0); ?&gt;

The following user(s) said Thank You: [jwatson912](/forum/user/9699-jwatson912 "View jwatson912's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODM1MDEtZGlzcGxheS1wcmljZS1iZWZvcmUtdGhlLWRpc2NvdW50LWxpbmUtdGhyb3VnaD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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.051 seconds

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