Show Original and Discount Price

  • Posts: 220
  • Thank you received: 0
3 years 6 months ago #332757

HI,

Where can I setup to show customers original and discount price at the first product list price? Currently only showed on second single product price. Thank you a lot.

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

  • Posts: 12953
  • Thank you received: 1778
3 years 6 months ago #332765

Hello,

You'll be able to control it, directly by using the "Discount" option that you can find through the "Products options" tab of your product listing's configuration page.

Kind regards,
Mohamed.

Last edit: 3 years 6 months ago by Mohamed Thelji.

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

  • Posts: 220
  • Thank you received: 0
3 years 6 months ago #332797

Thanks but I don't see it. Please check attachment, where is it?

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 6 months ago #332807

Hi,

You need to edit the menu item used to display that listing page via the Joomla menu manager. There, under the "products options" tab, you'll see the "discount" option Philippe is talking about.

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

  • Posts: 220
  • Thank you received: 0
3 years 6 months ago #332818

Hi Nicolas,

I still don't know where it is. Could you write me the step by step names? Thanks a lot.

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
3 years 6 months ago #332821

Hello,

Yes, we will guide you step by step :
1. From the Joomla top toolbar, click on Menus dropdown => Main Menu
2. Then edit your required Menu Items.
3. Click on the Product Options tab
4. Go in the "Product data display" part, and see my screenshot :



Hope this will be more clear.
Regards

Last edit: 3 years 6 months ago by Philip.

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

  • Posts: 220
  • Thank you received: 0
3 years 6 months ago #332832

I followed what you instructed but it's still the same. Please see attachment and let me know how to fix. Thank you.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 6 months ago #332835

Hi,

Then either you've got some caching on your website preventing you from seeing the change and you need to clear it, or you're editing the wrong menu item.
Please provide the URL of the page from your screenshot and the id of the menu item where you're modifying the "discount" setting so that we can check the situation further.

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

  • Posts: 220
  • Thank you received: 0
3 years 6 months ago #332837

Thank you, Nicolas,

facianohair.com.tw/%E7%B7%9A%E4%B8%8A%E8%A8%82%E8%B3%BC.html

And then the second product of the list.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 6 months ago #332860

Hi,

From what I can see, that's not a discount you've configured there.
You have entered a price and a retail price which lead to the display on the product details page like on your screenshot.
The display of the retail price on the listings is not supported by default.
To do what you want, you'll need to modify a bit the product / listing_price.php view file via the menu Display>Views as explained here:
www.hikashop.com/forum/product-category-...ing-page.html#295392

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

  • Posts: 220
  • Thank you received: 0
3 years 6 months ago #332865

Hi,

Do you mean I need to change codes from

&& JRequest::getCmd('layout') == 'show' && $this->params->get('from_module','') == ''

To

&& hikaInput::get()->getCmd('layout') == 'show' && $this->params->get('from_module','') == ''

?? But I checked the codes are already the second ones.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 6 months ago #332867

Hi,

No. That other thread says that you need to delete the code

&& hikaInput::get()->getCmd('layout') == 'show' && $this->params->get('from_module','') == ''
from there, and that on older version of HikaShop, it was the code
&& JRequest::getCmd('layout') == 'show' && $this->params->get('from_module','') == ''
that you had to delete.

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

  • Posts: 220
  • Thank you received: 0
3 years 5 months ago #332889

Thank you, it works now. But can it be older price with Strikethrough on and newer price beside? Instead of before price, nower price.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 5 months ago #332894

Hi,

You can use translation overrides to change these two pieces of text:
www.hikashop.com/download/languages.html#modify
To get the retail price strikethrough, you can use CSS:
electrictoolbox.com/css-strikethrough/
www.hikashop.com/support/documentation/1...ize-the-display.html
For example:

.hikashop_product_msrp_price {
 text-decoration: line-through;
}

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

  • Posts: 220
  • Thank you received: 0
3 years 5 months ago #332909

Problem solved. Thank you.


I added this code at the end of the "Front-end CSS File--->Styles for the front-end" file.

.hikashop_product_msrp_price {
text-decoration: line-through;
}

But nothing changed. Could you teach me know to fix? Thank you a lot.

Last edit: 3 years 5 months ago by clairewang.

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

Time to create page: 0.115 seconds
Powered by Kunena Forum