Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Discount Coupon not excluding Shipping charges

    Thought I checked that ... let me go back to the drawing board ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Discount Coupon not excluding Shipping charges

    Are you using the original ot_coupon.php file from Zen Cart v151?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #13
    Join Date
    May 2011
    Location
    Garland, Texas, United States
    Posts
    27
    Plugin Contributions
    0

    Default Re: Discount Coupon not excluding Shipping charges

    Yep, I ran a comparison to make sure. Thanks for your help! It's much appreciated.

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Discount Coupon not excluding Shipping charges

    And you changed to code around line 418 to read:
    Code:
                case 'F':
    //              $od_amount['total'] = zen_round($coupon->fields['coupon_amount'] * ($orderTotalDetails['orderTotal']>0), $currencyDecimalPlaces);
                  $od_amount['total'] = zen_round(($coupon->fields['coupon_amount'] > $orderTotalDetails['orderTotal'] ? $orderTotalDetails['orderTotal'] : $coupon->fields['coupon_amount']) * ($orderTotalDetails['orderTotal']>0), $currencyDecimalPlaces);
                  $od_amount['type'] = $coupon->fields['coupon_type']; // amount off 'F' or amount off and free shipping 'O'
                  $ratio = $od_amount['total']/$orderTotalDetails['orderTotal'];
                  break;
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #15
    Join Date
    May 2011
    Location
    Garland, Texas, United States
    Posts
    27
    Plugin Contributions
    0

    Default Re: Discount Coupon not excluding Shipping charges

    Yes, copied your code exactly.

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Discount Coupon not excluding Shipping charges

    Could you go to phpMyAdmin and browse the table:
    coupons

    and find this coupon and see what the contents of the field:
    coupon_type

    is set to ... is that an F?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #17
    Join Date
    May 2011
    Location
    Garland, Texas, United States
    Posts
    27
    Plugin Contributions
    0

    Default Re: Discount Coupon not excluding Shipping charges

    Yep, F.

  8. #18
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Discount Coupon not excluding Shipping charges

    Could you show what you are seeing in the totals when you use this new code?

    It isn't making a lot of sense as this is working without issue for me ...

    I am assuming you have the same settings on the Discount Coupon ot_coupon in the Modules ... Order Totals ... and that the Discount Coupon is still set to 40.00 with no restrictions ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #19
    Join Date
    May 2011
    Location
    Garland, Texas, United States
    Posts
    27
    Plugin Contributions
    0

    Default Re: Discount Coupon not excluding Shipping charges

    OK, this code actually doesn't apply the coupon at all, regardless of the total amount. I thought I'd try it again just in case I somehow messed it up.

  10. #20
    Join Date
    May 2011
    Location
    Garland, Texas, United States
    Posts
    27
    Plugin Contributions
    0

    Default Re: Discount Coupon not excluding Shipping charges

    1 x ... $29.00
    1 x ... $20.00
    Sub-Total: $49.00
    Zone Rates (Shipping to US): $3.95
    Total: $52.95

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. I get this error on my discount coupon at checkout:'This coupon is not available yet'
    By WHHammond in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 13
    Last Post: 15 Sep 2010, 03:09 PM
  2. How do I set a discount coupon for products but NOT shipping?
    By jonnyapples in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 6 Aug 2008, 10:19 AM
  3. Possible to offer free shipping over X & discount coupon w/ min order but not both?
    By Lisk in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 18 Dec 2007, 05:35 PM
  4. Discount coupon off of Sales not Shipping and Sales
    By batteryman in forum General Questions
    Replies: 1
    Last Post: 12 Oct 2007, 07:30 PM
  5. coupon for Team, excluding order from sales stats
    By youniquephotos in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 17 Sep 2007, 05:57 PM

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