- Posts: 46
- Thank you received: 7
How to change pricing bulk discount display?
Currently the product pricing is displayed like this:
£ 270.95 each
£ 250.00 per unit for buying at least 3
£ 220.00 per unit for buying at least 10
I want the text to display in this format:
£ 270.95 each
3 or more - £250.00
10 or more - £220.00
I think I've identified the correct view to edit - Display > Views > Product > Listing-price.
The area I think I need to amend is:
Can anyone help?
Thanks - Leo
Please Log in or Create an account to join the conversation.
and add that code :
after:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
how can I add the word ' each' to the end. So it would be like this:
100 or more - $0.70 each
300 or more - $0.65 each
500 or more - $0.60 each
yourlenscases.com/index.php/your-lens-ca...ll-lightblue/product
Please Log in or Create an account to join the conversation.
echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price->price_min_quantity);
you can replace it by:
echo JText::_('PER_UNIT');
and also add the code of my previous message.
Please Log in or Create an account to join the conversation.
yourlenscases.com/index.php/your-lens-ca...ell-lavender/product
Do you think it's my template?
Please Log in or Create an account to join the conversation.
Yes - it's your CSS. If you look at frontend_default.css, line 154, you'll see the text align is centred - you need to set this to left to remove the indent:
span.hikashop_product_price_full {
display: block;
font-weight: bold;
margin-bottom: 5px;
text-align: center;
}
Good luck!
Please Log in or Create an account to join the conversation.
- Posts: 60
- Thank you received: 8
And how to show old price (before discount) on the product page? Because i have only discount and price with discount on the product page.
Please Log in or Create an account to join the conversation.
You can edit the view "product / listing_price" to add a space.
To display the both prices on the product page, go in HikaShop > Config > Display > Product, and change the value for the option "Show discounted price".
Please Log in or Create an account to join the conversation.
- Posts: 60
- Thank you received: 8
Please Log in or Create an account to join the conversation.
After looking at the code, you don't have to edit the file, but just add a space in the translation of the key "PRICE_DISCOUNT_END".
www.hikashop.com/fr/support/documentation/faq.htm#translation
Please Log in or Create an account to join the conversation.
- Posts: 60
- Thank you received: 8
As i understand i need to make changes in css file and edit the view in "product / listing_price" ?
Please Log in or Create an account to join the conversation.
And in the view "product / listing_price" you can add a space befo the tag </span> in the lines "echo JText::_('PRICE_DISCOUNT_END').'</span>';"
Please Log in or Create an account to join the conversation.
100 - $.75 ea
300 - $.85 ea
500 or more - $.60 ea
Please Log in or Create an account to join the conversation.
and add a translation for:
"PER_UNIT_AT_LEAST_X_BOUGHT_OR_MORE" in the translation file.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I does not understand your question.
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.
One product we sell is 'each' and another product is 'for a box of 10'?
so I need ONE product to say:
$.80 each
and another product to say:
$12.50 for a box of 10
Please Log in or Create an account to join the conversation.
We actually have documentation on how to do that in our FAQ:
www.hikashop.com/en/support/documentatio...faq.html#translation
Please Log in or Create an account to join the conversation.
1-2 off = £ xxx.xx ea
3-5 off = £ xxx.xx ea
6-9 off = £ xxx.xx ea
10-24 off = £ xxx.xx ea
Can you advise what I need to change to achieve this?
Many thanks - Leo
Please Log in or Create an account to join the conversation.