Announcement

Collapse
No announcement yet.

Duplicate products in Shopping Cart

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

    Duplicate products in Shopping Cart

    I have a list of products in 1 category.

    The products are then listed in sections by animal (Dog, Cat, etc) as duplicates

    For the same product, if I add one from 2 different categories I get two separate entries in the shopping cart.

    When you are adding hundreds of products it is easy to double up by mistake.

    How do I get the duplicates to add their quantity to the existing quantity? (if you know what I mean!)

    Thanks

    #2
    Not sure if you can as the duplicates are assigned different product refs (1!ref, 2!ref, 3!ref etc) so the cart sees them as different products.

    Maybe someone like Norman or Kermy know of a hack to prevent this


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      Actually I though the Cart did combine them (assuming they had identical choices, etc). However I did a quick test and they didn't merge here either (using 7.0.4).

      Anyone else?
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        It would appear that the Cart.pm routine FindSimilarCartItems is seeing products as being different if they come from different Sections (different SID).

        Try this (with great caution) Edit cart.pm (in Site1 - back it up first).
        Look for the line
        Code:
        					 $pCartItem->{$_} ne $pCartList->[$nFoundIndex]->{$_} )
        immediately above this line add the line
        Code:
        					 $_ ne 'SID' &&
        And see if that works as you expect.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment

        Working...
        X