display normal + final offer price

  • Posts: 85
  • Thank you received: 2
10 years 8 months ago #183784

-- 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.

  • Posts: 12953
  • Thank you received: 1778
10 years 8 months ago #183790

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.

  • Posts: 85
  • Thank you received: 2
10 years 8 months ago #183899


this is what i mean
maybe even better to add 'final offer' in front of golden price

Attachments:
Last edit: 10 years 8 months ago by winstart.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #183907

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:

 && JRequest::getCmd('layout') == 'show'

Last edit: 10 years 8 months ago by nicolas.

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

  • Posts: 85
  • Thank you received: 2
10 years 8 months ago #184035

can i do this for only one category?

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 8 months ago #184054

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.

  • Posts: 85
  • Thank you received: 2
10 years 8 months ago #185551

thnx
in what file do i have to make these changes??

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #185569

Hi,

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

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

  • Posts: 85
  • Thank you received: 2
10 years 6 months ago #190886

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.

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #190888

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.

  • Posts: 85
  • Thank you received: 2
10 years 6 months ago #191036

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.

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #191037

Hi,

My bad, you should not use 049, but '49':

&& ($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.

  • Posts: 85
  • Thank you received: 2
10 years 6 months ago #191093

no sorry doesn't work, ill send you pm

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #191105

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.

  • Posts: 85
  • Thank you received: 2
10 years 6 months ago #191206

thnx
but i don't see the retail price


Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #191266

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.

  • Posts: 85
  • Thank you received: 2
10 years 6 months ago #191698

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #191716

Hi,

Solved, the issue was coming from the check:

&& $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.117 seconds
Powered by Kunena Forum