- Posts: 78
- Thank you received: 0
re-arranging price layout on product page
15 years 7 months ago #7935
by jasonm
re-arranging price layout on product page was created by jasonm
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.
'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.
15 years 7 months ago #7937
by nicolas
Replied by nicolas on topic Re: re-arranging price layout on product page
How are you doing your modifications ?
Please Log in or Create an account to join the conversation.
15 years 7 months ago #7938
by jasonm
Replied by jasonm on topic Re: re-arranging price layout on product page
Re-arranging code in the listing_price of the product view.
Please Log in or Create an account to join the conversation.
15 years 7 months ago #7939
by nicolas
Replied by nicolas on topic Re: re-arranging price layout on product page
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/>"
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.
15 years 7 months ago #7940
by jasonm
Replied by jasonm on topic Re: re-arranging price layout on product page
Please Log in or Create an account to join the conversation.
15 years 7 months ago #7941
by nicolas
Replied by nicolas on topic Re: re-arranging price layout on product page
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/>"
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.
15 years 7 months ago #7942
by jasonm
Replied by jasonm on topic Re: re-arranging price layout on product page
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.
14 years 7 months ago #39951
by ionlifeusa
Discover Miracle Water ~ www.ionlifeusa.com
Replied by ionlifeusa on topic Re: re-arranging price layout on product page
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!
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.
14 years 7 months ago #40139
by nicolas
Replied by nicolas on topic Re: re-arranging price layout on product page
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.
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.227 seconds