Zen Cart Logo
Forums / Setting Up Specials and SaleMaker / SaleMaker: How to show discount info on cart/checkout page?

SaleMaker: How to show discount info on cart/checkout page?

Views: 19,231

Results 1 to 8 of 8
13 Mar 2014, 6:35 PM
#1
mickyhulse avatar

mickyhulse

New Zenner

Join Date:
Mar 2014
Posts:
10
Plugin Contributions:
0

SaleMaker: How to show discount info on cart/checkout page?

Hi,

Is it possible to show this info:

Attachment 13888

... on our checkout/cart page(?):

Attachment 13889

Note that the sale price is showing, but not the discount info (i.e., original price and percentage off).

Sorry if I'm missing something obvious here ... Is there a switch in the admin, or do I need to modify a template?

Many thank in advance for the help!

Cheers,
M

13 Mar 2014, 10:15 PM
#2
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: SaleMaker: How to show discount info on cart/checkout page?

There is no switch in admin to show the Sale Maker Discount.

I believe the template you need to modify is includes/templates/YOUR_TEMPLATE/tpl_shopping_cart_default.php

13 Mar 2014, 10:50 PM
#3
mickyhulse avatar

mickyhulse

New Zenner

Join Date:
Mar 2014
Posts:
10
Plugin Contributions:
0

Re: SaleMaker: How to show discount info on cart/checkout page?

Trinity14:

There is no switch in admin to show the Sale Maker Discount.

I believe the template you need to modify is includes/templates/YOUR_TEMPLATE/tpl_shopping_cart_default.php

Awesome! Thanks for the help Trinity!!!!

I was able to copy the below code from another template and put it into the tpl_shopping_cart_default.php:

<?php
	$one_time = ($show_onetime_charges_description == 'true') ? ('<span>' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br>') : '';
	echo $one_time . ((zen_has_product_attributes_values((int) $product['id']) AND $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int) $product['id']);
?>

The above replaced this line:

<?=$product['productsPriceEach']?>

Appears to be working.

Thanks a billion for the help, I greatly appreciate it!

13 Mar 2014, 11:02 PM
#4
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: SaleMaker: How to show discount info on cart/checkout page?

Awesome! Thanks for sharing your results :)

13 Mar 2014, 11:04 PM
#5
mickyhulse avatar

mickyhulse

New Zenner

Join Date:
Mar 2014
Posts:
10
Plugin Contributions:
0

Re: SaleMaker: How to show discount info on cart/checkout page?

For sure! If it wasn't for other people sharing results, I'd be pretty lost. I'm glad to give back where I can.

Thanks again!

20 Jan 2022, 2:40 AM
#6
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: SaleMaker: How to show discount info on cart/checkout page?

mickyhulse:

I was able to copy the below code from another template and put it into the tpl_shopping_cart_default.php:

<?php $one_time = ($show_onetime_charges_description == 'true') ? ('<span>' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br>') : ''; echo $one_time . ((zen_has_product_attributes_values((int) $product['id']) AND $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int) $product['id']); ?>
> 
> The above replaced this line:
> 
> ```
<?=$product['productsPriceEach']?>

Okay, so moving forward to v1.5.7c - I added this line into my Westminster_New template, and it works - sort of...

I have a lot of attributes, and when it carries the price to the cart, the discounted price shows the base attribute price, not the selected one, in the Price column.... as per the Rose Pot Pourri Blend options in this image Attachment 19886
Which part of the code above do I need to tweak to reflect the actual attribute price being discounted in this column?

20 Jan 2022, 11:31 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: SaleMaker: How to show discount info on cart/checkout page?

mickyhulse:

Awesome! Thanks for the help Trinity!!!!

I was able to copy the below code from another template and put it into the tpl_shopping_cart_default.php:

<?php $one_time = ($show_onetime_charges_description == 'true') ? ('<span>' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br>') : ''; echo $one_time . ((zen_has_product_attributes_values((int) $product['id']) AND $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int) $product['id']); ?>
> 
> The above replaced this line:
> 
> ```
<?=$product['productsPriceEach']?>

Appears to be working.

Thanks a billion for the help, I greatly appreciate it!

Elemi:

Okay, so moving forward to v1.5.7c - I added this line into my Westminster_New template, and it works - sort of...

I have a lot of attributes, and when it carries the price to the cart, the discounted price shows the base attribute price, not the selected one, in the Price column.... as per the Rose Pot Pourri Blend options in this image Attachment 19886
Which part of the code above do I need to tweak to reflect the actual attribute price being discounted in this column?

The change, captured above is a visual modification, meaning it does not affect the actual price calculated in the cart. There appears to be some other problem with the store whether it is attribute configuration, some database issue, or other price calculation code has been modified. I say this because both at the bottom right and asking the top of the shipping cart is the same price which is the summation of the right side prices.

Suggest beginning an alternate thread so as not to convolute this thread and to also find resolution to your issue.

21 Jan 2022, 5:53 AM
#8
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: SaleMaker: How to show discount info on cart/checkout page?

mc12345678:

The change, captured above is a visual modification, meaning it does not affect the actual price calculated in the cart. There appears to be some other problem with the store whether it is attribute configuration, some database issue, or other price calculation code has been modified. I say this because both at the bottom right and asking the top of the shipping cart is the same price which is the summation of the right side prices.

Suggest beginning an alternate thread so as not to convolute this thread and to also find resolution to your issue.

The price is correct - the figure on the top line is the shipping weight and cart value before shipping is added - this is correct.

The visual modification is misleading with the attributes discounts not showing correctly and legally a customer can demand the lower price....