Discounts/Coupons

  • Posts: 18
  • Thank you received: 0
12 years 11 months ago #33423

Hi Hikashop developers,

Would you be able to provide me guidance on how to include a name or label next to a new discount that is added to a product?
I need to distinguish between what used to be MSRP price before discount and what is a Dealers price.
So something like this

Dealers $149.90 MSRP $159.90 each

Please let me know!

Thanks again.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #33482

Hi,

You could do it by overriding the translation keys PRICE_DISCOUNT_START and PRICE_BEGINNING as explained there:
www.hikashop.com/en/download/languages.html#modify
For example:
PRICE_DISCOUNT_START=" MSRP "
PRICE_BEGINNING="Dealers "

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

  • Posts: 18
  • Thank you received: 0
12 years 11 months ago #33492

That works, but I need it to be displayed only when 1 particular user group, Dealers, logs in. At least the Dealer price shouldn't be visible to the public.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #33523

Mmm. Then that's not how you should do it.

If you want to only display some price to a group and some other price to another group, you should create several prices in your product and attribute the prices to the corresponding groups. Or assign the discount only to the user group of the dealers.
For that, you'll need to ACL support which is in the Business edition of HikaShop.

Also, you won't be able to display the Dealers text with just a translation override in that case because the text would even display for non dealers. In that case, you will have to edit the file "listing_price" of the view "product" via the menu Display>Views and add something like that at the top:

<?php
if(count($this->row->prices)>1 || !empty($this->row->prices[0]->discount)){
echo 'Dealers ';
} ?>

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

  • Posts: 18
  • Thank you received: 0
12 years 11 months ago #33546

I have the business edition and have already established a pricing structure between Dealers and MSRP through ACL.
I also added the <?php.... code above to the appropriate document, but it does not show any Dealers label.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #33571

Are you sure that you added it for the template you're using and not another one of your website ?
Because otherwise that change wouldn't do anything.

Also, please try with that code instead:
<?php
if(count($this->row->prices)>1 || !empty($this->row->discount)){
echo 'Dealers ';
} ?>

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

  • Posts: 18
  • Thank you received: 0
12 years 11 months ago #33579

This works! Thanks.

Now how do I take of the display of the discounted price from the product listing page?

This is how it appears now on the product listing page:
Dealers $149.90 MSRP $-10.00 each

This is how I need it to appear:
Dealers $149.90

Thanks for all your help!

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

  • Posts: 18
  • Thank you received: 0
12 years 11 months ago #33580

Never mind! I figured it out!
Thanks.

Last edit: 12 years 11 months ago by sdce.

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

  • Posts: 46
  • Thank you received: 1
12 years 10 months ago #34707

I would like to have it displayed like you have described above: Our Price: $XX.XX MSRP: $XX.XX.

I made the language over ride edits, but can't find a place on the product to put the MSRP price.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 10 months ago #34762

What that user did is this:
put the MSRP price as the normal price of the product. Then, via the menu System->Discounts created a discount for that product so that the discounted price becomes the "our price".

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

Time to create page: 0.086 seconds
Powered by Kunena Forum