re-arranging price layout on product page

  • Posts: 78
  • Thank you received: 0
13 years 11 months ago #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.

Please Log in or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
13 years 11 months ago #7937

How are you doing your modifications ?

Please Log in or Create an account to join the conversation.

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

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

Please Log in or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
13 years 11 months ago #7939

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<br/>"

Please Log in or Create an account to join the conversation.

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

Ok, that gets me to here


but what do I need to move to swap them around

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
13 years 11 months ago #7941

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->row->discount)) before the line echo '<span class="'.$class.'">';
Then, instead of using PRICE_DISCOUNT_START="RRP<br/>", you'll want to use PRICE_DISCOUNT_END="RRP<br/>"

Please Log in or Create an account to join the conversation.

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

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

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 1
12 years 11 months ago #39951

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 <br/> {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

Please Log in or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #40139

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

Time to create page: 0.077 seconds
Powered by Kunena Forum