- Posts: 85
- Thank you received: 2
display normal + final offer price
In the outlet part of the webshop we're building, we would like to display the normal price AND the final offer price, in the page displaying all the products. This way customers can see there profit. The final offer price will be the price to pay. How can i do this.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Firstly can you give me more information about the "normal price AND the final offer price" like how and where did you set it ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You can use the "Retail price" field in the product edition page.
To have this displayed on listings too, you will have to edit the view "product / listing_price" and remove the two occurences of:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Yes. You can replace the code:
&& JRequest::getCmd('layout') == 'show'
by:
&& ($this->element->category==XXX || JRequest::getCmd('layout') == 'show')
where XXX is the category where you want the change.
Please Log in or Create an account to join the conversation.
in what file do i have to make these changes??
Please Log in or Create an account to join the conversation.
Still in the view "product / listing_price".
Please Log in or Create an account to join the conversation.
XXX is the id of the category so in my case 049 or....
i replaced it by && ($this->element->category==XXX || JRequest::getCmd('layout') == 'show') in product/listing price
but what do i have to enter in order to get the retail price displayed
Please Log in or Create an account to join the conversation.
Sorry, I think that the code should be "$this->element->category_id instead" of "$this->element->category".
Please Log in or Create an account to join the conversation.
do i need to do anything else
now i only replaced
&& JRequest::getCmd('layout') == 'show'
by
&& ($this->element->category_id==049 || JRequest::getCmd('layout') == 'show')
in product/lising_price.php
Please Log in or Create an account to join the conversation.
My bad, you should not use 049, but '49':
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Modification done, this changes was done only one time and it had to be done twice in the code.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I can see that this product in only in the "outlet" category, but I am not able to find it on frontend.
Please give me a link to the listing where this product is present.
When I reach the Outlet category, nothing is listed.
boutique.blaque.nl/index.php/component/h...hop/categorie/outlet
Please Log in or Create an account to join the conversation.
boutique.blaque.nl/index.php/outlet
Please Log in or Create an account to join the conversation.
Solved, the issue was coming from the check:
Please Log in or Create an account to join the conversation.