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

#   re-arranging price layout on product page

##

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

Less More

- Posts: 78
- Thank you received: 0
-
-

15 years 9 months ago [\#7935](#7935) by [jasonm](/forum/user/712-jasonm "View jasonm's Profile")  *[re-arranging price layout on product page](/forum/4-how-to/7935-re-arranging-price-layout-on-product-page#7935 "I'm trying to rearrange the layout so it shows  'Price before discount' RRP 'Price after discount' per unit  Adding a line break and echoing RRP isn't a problem but every time I try to re-arrange the code to put the price before discount first it either goes to zero value or puts a price before discount into the mini cart section.")* was created by *[jasonm](/forum/user/712-jasonm "View jasonm's Profile")*

I'm trying to rearrange the layout so it shows

'Price before discount' RRP
'Price after discount' per unit

Adding a line break and echoing RRP isn't a problem but every time I try to re-arrange the code to put the price before discount first it either goes to zero value or puts a price before discount into the mini cart section.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MzUtcmUtYXJyYW5naW5nLXByaWNlLWxheW91dC1vbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14327
-
-

15 years 9 months ago [\#7937](#7937) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: re-arranging price layout on product page](/forum/4-how-to/7935-re-arranging-price-layout-on-product-page#7937 "I'm trying to rearrange the layout so it shows  'Price before discount' RRP 'Price after discount' per unit  Adding a line break and echoing RRP isn't a problem but every time I try to re-arrange the code to put the price before discount first it either goes to zero value or puts a price before discount into the mini cart section.")*

How are you doing your modifications ?

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

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

Less More

- Posts: 78
- Thank you received: 0
-
-

15 years 9 months ago [\#7938](#7938) by [jasonm](/forum/user/712-jasonm "View jasonm's Profile")  Replied by *[jasonm](/forum/user/712-jasonm "View jasonm's Profile")* on topic *[Re: re-arranging price layout on product page](/forum/4-how-to/7935-re-arranging-price-layout-on-product-page#7938 "I'm trying to rearrange the layout so it shows  'Price before discount' RRP 'Price after discount' per unit  Adding a line break and echoing RRP isn't a problem but every time I try to re-arrange the code to put the price before discount first it either goes to zero value or puts a price before discount into the mini cart section.")*

Re-arranging code in the listing_price of the product view.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MzUtcmUtYXJyYW5naW5nLXByaWNlLWxheW91dC1vbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14327
-
-

15 years 9 months ago [\#7939](#7939) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: re-arranging price layout on product page](/forum/4-how-to/7935-re-arranging-price-layout-on-product-page#7939 "I'm trying to rearrange the layout so it shows  'Price before discount' RRP 'Price after discount' per unit  Adding a line break and echoing RRP isn't a problem but every time I try to re-arrange the code to put the price before discount first it either goes to zero value or puts a price before discount into the mini cart section.")*

This view is also used in the (mini) cart module so if you change it, it will change also for the cart.

But if you do your changes properly and that you set the proper options in the cart module's hikashop options you should be able to do what you what.
In the cart module options, you need to select that you don't want to display discount.
Then, you could even do you changes by just changing the translation below in the config under the tab languages:
PRICE_DISCOUNT_START="RRP&lt;br/&gt;"

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

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

Less More

- Posts: 78
- Thank you received: 0
-
-

15 years 9 months ago [\#7940](#7940) by [jasonm](/forum/user/712-jasonm "View jasonm's Profile")  Replied by *[jasonm](/forum/user/712-jasonm "View jasonm's Profile")* on topic *[Re: re-arranging price layout on product page](/forum/4-how-to/7935-re-arranging-price-layout-on-product-page#7940 "I'm trying to rearrange the layout so it shows  'Price before discount' RRP 'Price after discount' per unit  Adding a line break and echoing RRP isn't a problem but every time I try to re-arrange the code to put the price before discount first it either goes to zero value or puts a price before discount into the mini cart section.")*

Ok, that gets me to here
[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/line_break_added.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/line_break_added.jpg "&#91;img")

but what do I need to move to swap them around

- [ ![line&#95;break&#95;added.jpg](/forum/attachment/485) ](/forum/attachment/485 "...reak&#95;added.jpg") [ ](/forum/attachment/485?download=1 "...reak&#95;added.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MzUtcmUtYXJyYW5naW5nLXByaWNlLWxheW91dC1vbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14327
-
-

15 years 9 months ago [\#7941](#7941) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: re-arranging price layout on product page](/forum/4-how-to/7935-re-arranging-price-layout-on-product-page#7941 "I'm trying to rearrange the layout so it shows  'Price before discount' RRP 'Price after discount' per unit  Adding a line break and echoing RRP isn't a problem but every time I try to re-arrange the code to put the price before discount first it either goes to zero value or puts a price before discount into the mini cart section.")*

Ah yes, if you want to swap them, you're have to edit the view file. You can just move the whole block of code of the if(!empty($this-&gt;row-&gt;discount)) before the line echo '&lt;span class="'.$class.'"&gt;';
Then, instead of using PRICE_DISCOUNT_START="RRP&lt;br/&gt;", you'll want to use PRICE_DISCOUNT_END="RRP&lt;br/&gt;"

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

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

Less More

- Posts: 78
- Thank you received: 0
-
-

15 years 9 months ago [\#7942](#7942) by [jasonm](/forum/user/712-jasonm "View jasonm's Profile")  Replied by *[jasonm](/forum/user/712-jasonm "View jasonm's Profile")* on topic *[Re: re-arranging price layout on product page](/forum/4-how-to/7935-re-arranging-price-layout-on-product-page#7942 "I'm trying to rearrange the layout so it shows  'Price before discount' RRP 'Price after discount' per unit  Adding a line break and echoing RRP isn't a problem but every time I try to re-arrange the code to put the price before discount first it either goes to zero value or puts a price before discount into the mini cart section.")*

Thats got it, had to drop the per_unit text but thats not a problem. Thanks again Nicolas

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

- **[ionlifeusa](/forum/user/6193-ionlifeusa "View ionlifeusa's Profile")**
- [![ionlifeusa's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6193.png)](/forum/user/6193-ionlifeusa "View ionlifeusa's Profile")
- [ Offline](/forum/user/6193-ionlifeusa)

Less More

- Posts: 5
- Thank you received: 1
-
-
- [](http://www.ionlifeusa.com)
-

14 years 9 months ago [\#39951](#39951) by [ionlifeusa](/forum/user/6193-ionlifeusa "View ionlifeusa's Profile")  Replied by *[ionlifeusa](/forum/user/6193-ionlifeusa "View ionlifeusa's Profile")* on topic *[Re: re-arranging price layout on product page](/forum/4-how-to/7935-re-arranging-price-layout-on-product-page#39951 "I'm trying to rearrange the layout so it shows  'Price before discount' RRP 'Price after discount' per unit  Adding a line break and echoing RRP isn't a problem but every time I try to re-arrange the code to put the price before discount first it either goes to zero value or puts a price before discount into the mini cart section.")*

I have the similar issue (have Business Edition) but hesitant to change the view code, as when I am going to update the HikaShop new versions those view codes will be overwritten, right? So is it possible to make the changes customizable, f.e. I need to have a code that will read :

Manufacturer's Retail Price : $ 3,995.00
Special Sale
$2,995.00
$1000 off and get bonus package!

So as I can see there will be needed a customizable, pattern based config lines and also an order they will need to go in :
1 - Manufacturer's Retail Price : {price}
2 - Special Sale &lt;br/&gt; {price}
3 - {discount} off and get bonus package!

How soon this can be implemented or any other solution I can use? Thank you!

---

Discover Miracle Water ~ [ www.ionlifeusa.com](http://www.ionlifeusa.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MzUtcmUtYXJyYW5naW5nLXByaWNlLWxheW91dC1vbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14327
-
-

14 years 9 months ago [\#40139](#40139) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: re-arranging price layout on product page](/forum/4-how-to/7935-re-arranging-price-layout-on-product-page#40139 "I'm trying to rearrange the layout so it shows  'Price before discount' RRP 'Price after discount' per unit  Adding a line break and echoing RRP isn't a problem but every time I try to re-arrange the code to put the price before discount first it either goes to zero value or puts a price before discount into the mini cart section.")*

You won't loose your modifications when you update.
The modifications will be saved as a view override in your template and joomla when delete it when you update. But the originals will be replaced. That way, you can always revert your changes in order to get the new things in the files.

So you can do what you want as a view override.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MzUtcmUtYXJyYW5naW5nLXByaWNlLWxheW91dC1vbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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.074 seconds

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