Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2014
    Posts
    10
    Plugin Contributions
    0

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

    Hi,

    Is it possible to show this info:

    Name:  Screen Shot 2014-03-13 at 11.05.43 AM.png
Views: 424
Size:  7.7 KB

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

    Click image for larger version. 

Name:	Screen Shot 2014-03-13 at 11.06.45 AM.jpg 
Views:	886 
Size:	10.7 KB 
ID:	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

  2. #2
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default 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

  3. #3
    Join Date
    Mar 2014
    Posts
    10
    Plugin Contributions
    0

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

    Quote Originally Posted by Trinity14 View Post
    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:

    Code:
    <?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:

    Code:
    <?=$product['productsPriceEach']?>
    Appears to be working.

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

  4. #4
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

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

    Awesome! Thanks for sharing your results :)

  5. #5
    Join Date
    Mar 2014
    Posts
    10
    Plugin Contributions
    0

    Default 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!

  6. #6
    Join Date
    Mar 2006
    Location
    Auckland, New Zealand
    Posts
    227
    Plugin Contributions
    0

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

    Quote Originally Posted by mickyhulse View Post

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

    Code:
    <?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:

    Code:
    <?=$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 Click image for larger version. 

Name:	Salemaker-show-discount.jpg 
Views:	692 
Size:	21.3 KB 
ID:	19886
    Which part of the code above do I need to tweak to reflect the actual attribute price being discounted in this column?
    Elemi

    The Art of Bespoke Aromatherapy
    www.AmorAromatherapy.co.nz

  7. #7
    Join Date
    Jul 2012
    Posts
    16,440
    Plugin Contributions
    17

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

    Quote Originally Posted by mickyhulse View Post
    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:

    Code:
    <?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:

    Code:
    <?=$product['productsPriceEach']?>
    Appears to be working.

    Thanks a billion for the help, I greatly appreciate it!
    Quote Originally Posted by Elemi View Post
    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 Click image for larger version. 

Name:	Salemaker-show-discount.jpg 
Views:	692 
Size:	21.3 KB 
ID:	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.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Mar 2006
    Location
    Auckland, New Zealand
    Posts
    227
    Plugin Contributions
    0

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

    Quote Originally Posted by mc12345678 View Post
    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....
    Elemi

    The Art of Bespoke Aromatherapy
    www.AmorAromatherapy.co.nz

 

 

Similar Threads

  1. v154 Group Pricing Discount and Discount Coupons show on checkout, paypal/eway charge full
    By edvon in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 22 Sep 2015, 02:27 PM
  2. Salemaker - how to show discount prices and savings in cart and checkout
    By kwright in forum Setting Up Specials and SaleMaker
    Replies: 0
    Last Post: 1 Dec 2010, 09:24 PM
  3. Replies: 0
    Last Post: 2 Feb 2010, 12:03 AM
  4. Can I get the salemaker discount value to show on invoices?
    By savo1 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 May 2009, 09:54 PM
  5. Show quantity discount on shopping cart page
    By dealbyethan.com in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Apr 2007, 08:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR