Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2009
    Posts
    93
    Plugin Contributions
    0

    Default Avoid duplicate product name in Cart

    I'm selling downloadable products on my website. Sometimes, by mistake a customer adds the same product twice and pays for it. As a result of this mistake each time i need to refund the payment to customer for duplicate product.

    Is there any way i can put a check on shopping cart to allow unique products only. The client must not be able to add same product twice.

    Please tell me how can i do that?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Avoid duplicate product name in Cart

    Admin > Catalog > Categories/Products > edit your product > Product Qty Maximum: [] 0 = Unlimited, 1 = No Qty Boxes
    Set to 1.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,977
    Plugin Contributions
    96

    Default Re: Avoid duplicate product name in Cart

    You could use this add-on: http://www.zen-cart.com/index.php?ma...oducts_id=1477.

    I wrote it because I had a similar problem with my downloadable products.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Avoid duplicate product name in Cart

    Huh... so the max does not apply to downloadables? Obviously I have never used them.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Avoid duplicate product name in Cart

    Glenn, your answer should be sufficient.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Oct 2009
    Posts
    93
    Plugin Contributions
    0

    Default Re: Avoid duplicate product name in Cart

    I have tried it:

    Admin > Catalog > Categories/Products > edit your product > Product Qty Maximum: [] 0 = Unlimited, 1 = No Qty Boxes
    Set to 1.
    But the problem is still there i can add same product twice in the shopping cart. Is there any other solution?

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Avoid duplicate product name in Cart

    I'm having trouble duplicating that on a clean fresh uncustomized install of v1.3.9h. Setting "Product Qty Maximum" to 1 prevents me adding the item to the cart multiple times. I get an error message instead.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Oct 2009
    Posts
    93
    Plugin Contributions
    0

    Default Re: Avoid duplicate product name in Cart

    You may be right because i have customized the "product info page" and i might have removed the quantity check code from the "tpl_document_product_info_display.php" file. I think i'll have to look for the original file and add the code for "quantity check" again. Is that right?

    But you know the "Product Qty Maximum" was set to 0 previously and now setting back it to 1 does not work for me.

    What do you say?

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Avoid duplicate product name in Cart

    If you have removed some of the built-in safeguard checks, of course you may have a problem that we can't duplicate.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Avoid duplicate product name in Cart

    Quote Originally Posted by fawad123 View Post
    But you know the "Product Qty Maximum" was set to 0 previously and now setting back it to 1 does not work for me.

    What do you say?
    I say the problem is on your end, since the test I did started with it set to 0, and when I changed it to 1 it prevented me from adding more than 1 of that item to my cart, exactly as intended.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Duplicate Item Name / Product name repeat Order Confirmation Email
    By jsarwar in forum Managing Customers and Orders
    Replies: 3
    Last Post: 21 Nov 2014, 02:57 PM
  2. Replies: 3
    Last Post: 8 Sep 2011, 11:53 PM
  3. [Duplicate] product name gone when editing a product
    By Rob Musquetier in forum Bug Reports
    Replies: 1
    Last Post: 24 May 2011, 02:57 AM
  4. Replies: 1
    Last Post: 8 Nov 2010, 04:52 AM
  5. shopping cart duplicate product ids
    By restless in forum General Questions
    Replies: 5
    Last Post: 19 Apr 2008, 05:21 PM

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