Announcement

Collapse
No announcement yet.

Quantity Always One - Duplicate Products increase quantity over 1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Quantity Always One - Duplicate Products increase quantity over 1

    Hi All,

    I have created a site for a University where users can order Prospectuses. There are 19 prospectuses and they are arranged by subject area. So I've created about 40 sections based on the subjects and added the prospectuses into the relevant sections. Where a prospectus covers multiple subjects I've created a duplicate products.

    I only want the user to be able to order 1 of each prospectus, so I set the "Order Quantity Always One". Which works fine for the original product, but if the user picks the duplicate product the quantity increases to 2. Then the user sees a message on the basket page rather than the product page.

    Has anyone found a solution to this where the quantity never increases over 1?

    My demo site is at http://edinpros.cambertown.com, is you pick the Goegraphical Information Systems section and add a Geosciences Pospectus, then go to Geography section and add it again the quantity in the basket increases to 2.

    Any help would be greatly appreciated, I've already passed this to the Sellerdeck support team and I'm waiting for an answer from there too, but I thought I'd ask the community too.

    TIA

    #2
    I thought I'd pass on my findings.

    I searched through various .pl and .pm files until I found the CombineCartLines procedure in the cart.pm script. I commented out (placed a # in front of) line 250 which read: -

    Code:
    $pCartList->[$nFoundIndex]->{QUANTITY} += $pCartList->[$nCartIndex]->{QUANTITY};		# add quantity to the other one
    This worked for my application and stopped duplicate products adding to the quantity.

    Comment

    Working...
    X