Display original price for discounts

  • Posts: 272
  • Thank you received: 3
  • Hikashop Business
13 years 3 months ago #24188

Hi there,

when percentage discounts are applied is confusing. The customer sees the discounted price with -30% for example but the don't see the original price. Ehen testing several people said they expected a discount on the price displayed. Is is possible to display the original price with a line through it or something?

Thanks

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 3 months ago #24193

You just need to change the "Show discounted price" option of your menu/module/config to "Display the price before the discount is applied" and that will show the price before discount which will be stroked.

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

  • Posts: 272
  • Thank you received: 3
  • Hikashop Business
13 years 3 months ago #24205

Hi Nicolas,

I have got that config, but that just displays the new price and the old prices with a line through. It would be nice if using percentages to see €100 -50% €50. If not already possible do you think it would be a good idea to add this display option to the config?

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 3 months ago #24214

There is no option to display both. That's a good idea yes.

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

  • Posts: 272
  • Thank you received: 3
  • Hikashop Business
13 years 3 months ago #24223

Okay I will add this.

By the way in line 110 of the view/discount/tmpl/listing.php file the test you have:

elseif(!empty($row->discount_percent_amount))

will always return true because even if the value is 0.00 unless type cast

$row->discount_percent_amount = (int)$row->discount_percent_amount;

it will be considered as a string therefore not empty even for values 0.00

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 3 months ago #24231

Thank you. We'll change that.

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

  • Posts: 272
  • Thank you received: 3
  • Hikashop Business
13 years 3 months ago #24496

should be:

$row->discount_percent_amount = (float)$row->discount_percent_amount;

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 3 months ago #24508

Yes.

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

  • Posts: 34
  • Thank you received: 0
13 years 2 weeks ago #29327

I'm having the same problem. I applied a $2 discount to a product that was $7.99 and it shows


$5.99 CAD $-2.00 CAD each


Do the code changes above change the display to $7.99 $5.99?

It doesn't seem to matter which option I select, it always seems to show the same thing.

I'm on Joomla 1.7 and Hikashop 1.5.3 (fairly heavily modded).

Last edit: 13 years 2 weeks ago by SD.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29338

All you need to do is to change the "Show discounted price" option of your menu/module/config to "Display the price before the discount is applied" and that will show the price before discount which will be stroked.
Note that the "Show discounted price" option of the Display tab of the configuration is only used on the product page.
For your products listings, you need to go in the menu Display->Content modules/menus and edit your menu/module which is displaying the listing and change that same option.

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

  • Posts: 34
  • Thank you received: 0
13 years 2 weeks ago #29344

All you need to do is to change the "Show discounted price" option of your menu/module/config to "Display the price before the discount is applied" and that will show the price before discount which will be stroked.
Note that the "Show discounted price" option of the Display tab of the configuration is only used on the product page.
For your products listings, you need to go in the menu Display->Content modules/menus and edit your menu/module which is displaying the listing and change that same option.


Thanks I appreciate the response...it's due to the fact I only have product listings not the individual product selections.

Now it looks like:

$7.19 CAD $7.99 CAD each

can it be:

$7.19 CAD $7.99 CAD - 20% each

?

Last edit: 13 years 2 weeks ago by SD.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29357

There is no option to display both.
For that, you will have to edit the file "listing_price" of the view "product" via the menu Display->Views and change the code:
if($this->params->get('show_discount')==1){
to:
if(true){

and the code:
}elseif($this->params->get('show_discount')==2){
to:
}
if(true){

That will however display them in the other order. So if you want to swap both, you will have to swap both code blocks in that file.

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

  • Posts: 34
  • Thank you received: 0
13 years 2 weeks ago #29474

Thanks for your prompt replies.

The problem now is that the discount is showing up beside every price. For example:


$6.99 CAD
each0%

it should be:


$6.99 CAD
each

if there`s no discount.

In the discount is also showing up in the module:

$7.99 CAD 0%

How would this be fixedÉ

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29491

Yes. the same view file is used to display the product prices everywhere.

Then, instead of the two
if(true){
you put, you should try to put:
if($this->params->get('show_discount')){

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

  • Posts: 34
  • Thank you received: 0
13 years 2 weeks ago #29562

Thanks again Nicolas, it's appreciated!

That change didn't make a difference though.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29608

Well, you just need to turn off the display of the discounts on the listing of products (the option is in the hikashop options of your menu/module).

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

  • Posts: 10
  • Thank you received: 0
11 years 5 months ago #108149

Hi,

after reading this topic i thought that by now HikaShop had the option to display the "-50%" after the stroked price, and then show the new price.

But it only shows the price before (stroked), and the new price without the indication of the percentage of the discount (or the amount).

Will hikashop have such an option, or do we have to edit the listing and product views to do this, every time we update hikashop? :(

Thanks in advance

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 5 months ago #108236

Hi,

If you edit the core files directly yes.
If you use view overrides, no.

www.hikashop.com/en/support/documentation/faq.html#pagination
www.hikashop.com/en/support/documentatio...-display.html#layout

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 26
  • Thank you received: 0
9 years 5 months ago #203778

can't get it to work in the product category view - see screenshot. How do I make this view the same as in my product detail view (second screenshot).???

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
9 years 5 months ago #203792

Hello,
It will depend on how you configured the "Show discounted price" option through your product listing content menu/module configuration page via "Hikashop->Display->Content modules/menus->'YourContentMenu/Module'".

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

Time to create page: 0.131 seconds
Powered by Kunena Forum