Skip to main content

display normal + final offer price

More
11 years 9 months ago #183784 by winstart
-- url of the page with the problem -- : boutique.blaque.nl

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.

More
11 years 9 months ago #183790 by Mohamed Thelji
Hello,
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.

More
11 years 9 months ago - 11 years 9 months ago #183899 by winstart

this is what i mean
maybe even better to add 'final offer' in front of golden price
Last edit: 11 years 9 months ago by winstart.

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

More
11 years 9 months ago - 11 years 9 months ago #183907 by Xavier
Hi,

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:
Code:
&& JRequest::getCmd('layout') == 'show'
Last edit: 11 years 9 months ago by nicolas.

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

More
11 years 9 months ago #184035 by winstart
can i do this for only one category?

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

More
11 years 9 months ago #184054 by nicolas
Hi,

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.

More
11 years 8 months ago #185551 by winstart
thnx
in what file do i have to make these changes??

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

More
11 years 8 months ago #185569 by Xavier
Hi,

Still in the view "product / listing_price". ;)

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

More
11 years 7 months ago #190886 by winstart
ok
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.

More
11 years 7 months ago #190888 by Xavier
Hi,

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.

More
11 years 7 months ago #191036 by winstart
ok i did that but still no retail price in the product listing
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.

More
11 years 7 months ago #191037 by Xavier
Hi,

My bad, you should not use 049, but '49':
Code:
&& ($this->element->category_id=='49' || JRequest::getCmd('layout') == 'show')
If that still doesn't work, please provide a backend access via private message or contact form with the url of that topic.

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

More
11 years 7 months ago #191093 by winstart
no sorry doesn't work, ill send you pm

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

More
11 years 7 months ago #191105 by Xavier
Hi,

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.

More
11 years 7 months ago #191206 by winstart
thnx
but i don't see the retail price


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

More
11 years 7 months ago #191266 by Xavier
Hi,

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.

More
11 years 7 months ago #191698 by winstart

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

More
11 years 7 months ago #191716 by Xavier
Hi,

Solved, the issue was coming from the check:
Code:
&& $this->params->get('from_module','') == ''
This was allowing to display the content only if in a menu context, but as the menu is a category listing so the products are displayed in a module and the display were not done. So I commented this part of the code.

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

Time to create page: 0.389 seconds
Powered by Kunena Forum