Announcement

Collapse
No announcement yet.

problem with quantity

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

    problem with quantity

    Hi Guys,

    we sell cable on our site and some people want to order say a 3m length and a 4m length but when added to cart it adds it up to show 7m.
    Is there a way of getting it to show as 3m, 4m etc

    Thanks

    Ali

    #2
    To be able to do that you would need to have each length as a separate product.
    Not ideal but you could perhaps add a message box for the product where the custoimer could say how they wanted it cut.

    Comment


      #3
      Hi Duncan,

      I have added a box to the cart for cable length requirements etc already but just wondered if there was any other way.
      Thanks anyway

      Ali

      Comment


        #4
        You could tweak the Perl so that the CombineCartLines routine does nothing. This will achieve what you want but will apply to all products. Would this be OK?
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Hi Norman, that should be ok, however we do have some discounts that are instigated when someone spends over £99 on certain brands, would that be affected?

          Comment


            #6
            I have no idea. You'd have to test it and see.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Here's the patch so you can try it yourself.

              Backup file Cart.pm (in your Site folder).

              Edit Cart.pm.

              Look for the pair of lines (approx line 211)

              Code:
              sub CombineCartLines
              	{
              amend as below
              Code:
              sub CombineCartLines
              	{
              	return;	# don't combine
              Update the site and test. Report back whether it works or not so this post will be useful to others.

              You will need to re-do this patch if you update Actinic to a new version.

              It should be obvious how to undo if you don't want to use this.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Hi Norman,

                tried it and the cart wouldn't work so tried it again and bingo! it works perfectly. Thank you very much.

                Ali

                Comment


                  #9
                  Can you confirm that quantity dependent pricing still works if you have the approriate quantity but split onto several lines?
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    yes, all works great. discounts etc all working as normal

                    Comment

                    Working...
                    X