Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    24
    Plugin Contributions
    2

    Default [Contrib] Price Sensitive Discount

    Hi,

    I've just converted the similar OSC Contrib for Zen-Cart.

    I've tested it with my Zen-Cart 1.3.5 Install in my Developer Enviroment XAMPP. It's looks fine for me.

    I've submit the contrib to the Download Area --> OTHER TOOLS.

    For Support just post here or email me (english or german please)


    Contrib Description:
    Price Sensitive Discount GERMAN/ENGLISH
    Based on OSC Contrib Price Sensitive Discount

    Modified by MaleBorg
    Tested on Zen-Cart 1.3.5

    This Contrib gives your customers a variable discount based on the order SUBTOTAL.
    The amount and the discount was set in the Admin Panel under MODULES--> ORDER TOTAL
    The discount was always given, regardless of Special Prizes or other discounts (Coupons, GV, Groupdiscounts etc)

    MaleBorg

  2. #2
    Join Date
    Oct 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: [Contrib] Price Sensitive Discount

    This is an excellent module! The only thing is that it applies when people order gift certificates, too, which I don't want. Is there any way to change this?

    Thank you!

    Chani

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: [Contrib] Price Sensitive Discount

    Your mod was placed in the "Pricing Tools" area, which is a new category for the downloads.

    Suggestions:

    - you might want to make this a credit class to avoid weird behavior around $0.
    - In 1.3.6, group_pricing has adopted a ratio approach to tax calculation to
    compensate for the fact that there might be non-taxable items in the cart. Other
    tax mods were made to this file. You might want to familiarize yourself with this and
    consider using the same tax logic they do - this makes it easier for people to understand.
    Alternately, the 1.3.5 approach works well, except for people with mixed stock (taxable
    and untaxable).

    Good luck,
    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Oct 2006
    Posts
    24
    Plugin Contributions
    2

    Default Re: [Contrib] Price Sensitive Discount

    First of all, thx for your feedback!

    @13 Rings:
    I've just tried to figure it out, because it's the same problem with Special Prizes
    I'm not a very good PHP Crack, it was just a simple change in the commands.

    This leads me to the second reply from swguy.

    I've not the understanding of PHP to adept the new 1.3.6 Modifications to this module.

    The new Order Total modules working not correct for me, i've many difference between 1-2 cents, you find an example here

    http://www.zen-cart.com/forum/showthread.php?t=50014

    MaleBorg

  5. #5
    Join Date
    Dec 2004
    Posts
    36
    Plugin Contributions
    0

    Default Re: [Contrib] Price Sensitive Discount

    Thanks for working on this.

    So, to clarify: Does this allow me to offer a coupon code that discounts all regularly priced items but does not discount items already on sale?

    Also, are there any plans to upgrade this mod for use with current versions of zc, or does any one know of a way to get this functionality with the current version.

  6. #6
    Join Date
    Apr 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: [Contrib] Price Sensitive Discount

    Question about the Price Sensitive Discount mod. Here's the scenario:
    1)include shipping = false
    2)include tax = false
    3)recalculate tax = true

    Subtotal = $59.95
    Discount % = 15
    Tax = 7%

    $od_amount = round($amount*10)/10*$od_pc/100;
    $od_amount = $od_amount + $tod_amount;
    // maniac101 above line was adding tax back into discount incorrectly for me


    Now, what's happening in this scenario is the following:

    Subtotal = 59.95
    Discount = 9.63
    Tax = 3.57
    Total = 54.52

    The discount should be $9.00 (.15*59.95)
    The tax is correctly calculated on $50.95 (59.95 - 9.00)
    The total is correct based upon subtracting $9 from the subtotal

    However the problem is that it incorrectly displays $9.63 as the discount amount which might cause some problems.

    The problem is that it's adding the $tod_amount to the $od_amount.
    So, does anyone know how to fix this so that the $tod_amount is not added to the below section of the script.

    $this->output[] = array('title' => $this->title . ':',
    'text' => '-' . $currencies->format($od_amount),
    'value' => $od_amount);


    The following was uncommented:
    $od_amount = $od_amount + $tod_amount;

    With it commented the result is :

    Subtotal = 59.95
    Discount = 9.00
    Tax = 3.57
    Total = 55.15


    Any ideas????
    Last edited by beanojames; 27 Apr 2007 at 03:58 AM.

  7. #7
    Join Date
    Jun 2006
    Posts
    403
    Plugin Contributions
    0

    red flag Re: [Contrib] Price Sensitive Discount

    Hello, MaleBorg:

    I love your add-on. I have only 1 question: Is there a way to give customers more money off instead of higher pencentage? For example,

    customer save $10 when they spend $60;
    customer save $20 when they spend $120;
    customer save $30 when they spend $180;
    ......

    Thank you a lot!

    Lina

  8. #8
    Join Date
    Sep 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: [Contrib] Price Sensitive Discount

    I've had issues with this contribution, particularly when combined with discount coupons and/or shipping charges and/or VAT.

    In the end I moved to the Quantity Discounts contrib, which seems to work better, and that does exactly what you are asking for. No files to merge, just two new files to upload.

    http://www.zen-cart.com/index.php?ma...roducts_id=235

 

 

Similar Threads

  1. Shopping Cart Original Price - Pricing contrib
    By NamSingh in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 30 Aug 2008, 12:13 PM
  2. Price Sensitive Discount
    By cshart in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 14 May 2008, 07:28 AM
  3. Replies: 0
    Last Post: 3 Apr 2008, 08:16 PM
  4. Change price by category contrib ???
    By wsmith48 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 29 Jan 2008, 03:11 AM

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