Show both Price and Retail price

  • Posts: 177
  • Thank you received: 5
10 years 4 months ago #136802

-- HikaShop version -- : 2.2.2
-- Joomla version -- : 3.2

How to show both Price and Retail price on Products listing page (not on Product details page )?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 4 months ago #136815

Hi,

You have to edit the view "product / listing_price", and in this view remove the code:

&& JRequest::getCmd('layout') == 'show'
It's present two times.

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

  • Posts: 1
  • Thank you received: 0
8 years 9 months ago #209602

Hi Xavier,

Hikashop 2.5.0
Joomla 3.4.3

If I remove the code, nothing happens. How can I show both Price and Retail Price in list products? Both are showing in products details, but need to show both inside list product box, under main image, and, if possible, Price before of Retail Price.

Thanks.
Luis.

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
8 years 9 months ago #209609

Hi,

With recent versions of HikaShop, you want to remove that code:
&& JRequest::getCmd('layout') == 'show' && $this->params->get('from_module','') == ''

Again, it is present twice in the view file. Also make sure that you're editing the view file for your frontend template and not another one or you won't see any change.

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
5 years 9 months ago #295393

Hi,

For anyone reading this, note that the code changed and it's not anymore:
&& JRequest::getCmd('layout') == 'show' && $this->params->get('from_module','') == ''
but:
&& hikaInput::get()->getCmd('layout') == 'show' && $this->params->get('from_module','') == ''
that you need to remove so that it can display on the listings.

Again, it is present twice in the view file. Also make sure that you're editing the view file for your frontend template and not another one or you won't see any change.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum