Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Mar 2009
    Posts
    28
    Plugin Contributions
    0

    Default Percentage discount, is this possible?

    Hi all,

    Hope somebody can help,
    I have a product on which I need to set up a specific type of discount.

    Basically what needs to happen is:
    Customer adds product to basket, if they decide to raise their quantity they get a percentage discount based on price, so if their total for this product goes over £100 they get a 10% discount, if they add more of the same product and it goes over £200 they get a 20% discount.

    Or is it possible to enter a percentage discount in the "Attributes Qty Price Discount" instead of a money discount? example:
    9:0.00,19:-10%,29:-20%
    I have tried entering this syntax but it just takes off £10 instead of 10%.
    Help please!
    Thanks.

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

    Default Re: Percentage discount, is this possible?

    The Products Price Manager will add discounts on the Product Price ...

    The Attribute Quantity Discounts work on the Attributes dollar amount and apply a discount based on quantity ... but this is based on dollar amount ...

    If you need that to be percentages, then you would need to customize the code for that ...
    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. #3
    Join Date
    Mar 2009
    Posts
    28
    Plugin Contributions
    0

    Default Re: Percentage discount, is this possible?

    Hi, Thanks for the reply, so it is possible?
    Which file(s) or bits of code would I need to look at to make this possible?
    Thanks again.

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

    Default Re: Percentage discount, is this possible?

    I'd start with the Developers Tool Kit and do a search on the field for the Attributes Qty Discount and find all of the places where it is referenced to see where it would need adjusting ...
    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. #5
    Join Date
    Mar 2009
    Posts
    28
    Plugin Contributions
    0

    Default Re: Percentage discount, is this possible?

    Thanks for the tip, I'll look into it.

    Cheers.

  6. #6
    Join Date
    Mar 2009
    Posts
    28
    Plugin Contributions
    0

    Default Re: Percentage discount, is this possible?

    Can anybody give me any hints on how to make this possible?
    I'm in way over my head here.
    Thanks.

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,672
    Plugin Contributions
    123

    Default Re: Percentage discount, is this possible?

    See PM. Start with Quantity Discounts and see if that works.
    That Software Guy. My Store: Zen Cart Modifications
    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.

  8. #8
    Join Date
    Mar 2009
    Posts
    28
    Plugin Contributions
    0

    Default Re: Percentage discount, is this possible?

    Anybody give me any hints on how to adjust the code for this function? I'm sure soembody out there knows, but I can't figure it out.
    There must be a way to set attribute qty discount field to accept percentages instead of just units of currency?
    Anyone?
    Thanks.

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

    Default Re: Percentage discount, is this possible?

    I have not tested this, but if you check the shopping_cart.php class file for:
    zen_get_attributes_qty_prices_onetime

    when it uses attributes_qty_prices ... that is getting the result of the amount based on the quantity passed to it ...

    You could alter how that result is used and instead of being the new price for the attribute, you could take the existing attribute price and add that amount by using it as a percentage ...
    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!

  10. #10
    Join Date
    Mar 2009
    Posts
    28
    Plugin Contributions
    0

    Default Re: Percentage discount, is this possible?

    Thanks for the response again Ajeh, you're very patient.
    I have been trying your previous suggestion but can't seem to figure it out, (i'm fairly new to all this)
    Is there a way to just enter the data in Attributes Qty Price Discount field like:

    10:-10%,20:-20% etc
    When I tried this it just discounted £10 instead of 10%.

    Thanks again,

    Any suggestions would be greatly appreciated.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Percentage Discount Not showing Text or Percentage off
    By milobloom in forum General Questions
    Replies: 13
    Last Post: 28 Jun 2010, 07:06 AM
  2. Quantity Discount in Percentage
    By lomo in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 8 May 2009, 09:38 AM
  3. Is this possible? Discount coupon question
    By adris72 in forum General Questions
    Replies: 2
    Last Post: 15 Oct 2008, 01:24 PM
  4. Percentage discount questions
    By milksamsa in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 May 2006, 08:05 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