- Posts: 18
- Thank you received: 0
Discounts/Coupons
14 years 9 months ago #33423
by sdce
Discounts/Coupons was created by sdce
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 [strike]MSRP $159.90[/strike] each
Please let me know!
Thanks again.
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 [strike]MSRP $159.90[/strike] each
Please let me know!
Thanks again.
Please Log in or Create an account to join the conversation.
14 years 9 months ago #33482
by nicolas
Replied by nicolas on topic Re: Discounts/Coupons
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 "
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.
14 years 9 months ago #33492
by sdce
Replied by sdce on topic Re: Discounts/Coupons
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.
14 years 9 months ago #33523
by nicolas
Replied by nicolas on topic Re: Discounts/Coupons
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 ';
} ?>
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.
14 years 9 months ago #33546
by sdce
Replied by sdce on topic Re: Discounts/Coupons
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.
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.
14 years 9 months ago #33571
by nicolas
Replied by nicolas on topic Re: Discounts/Coupons
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 ';
} ?>
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.
14 years 9 months ago #33579
by sdce
Replied by sdce on topic Re: Discounts/Coupons
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!
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.
14 years 9 months ago - 14 years 9 months ago #33580
by sdce
Replied by sdce on topic Re: Discounts/Coupons
Never mind! I figured it out!
Thanks.
Thanks.
Last edit: 14 years 9 months ago by sdce.
Please Log in or Create an account to join the conversation.
14 years 8 months ago #34707
by AZTacGear
Replied by AZTacGear on topic Re: Discounts/Coupons
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.
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.
14 years 8 months ago #34762
by nicolas
Replied by nicolas on topic Re: Discounts/Coupons
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".
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.296 seconds