Display original price for discounts
- jameswadsworth
-
Topic Author
- Offline
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.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
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 [strike]€100[/strike] -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.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
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.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
$row->discount_percent_amount = (float)$row->discount_percent_amount;
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
$5.99 CAD $-2.00 CAD each
Do the code changes above change the display to [strike]$7.99[/strike] $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).
Please Log in or Create an account to join the conversation.
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.
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 [strike]$7.99 CAD[/strike] each
can it be:
$7.19 CAD [strike]$7.99 CAD[/strike] - 20% each
?
Please Log in or Create an account to join the conversation.
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.
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.
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.
That change didn't make a difference though.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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.
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.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
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.