Announcement

Collapse
No announcement yet.

Adding to cart through a link on another page

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

    Adding to cart through a link on another page

    Hi All, Here's a challenge.

    I'd like to add to the Actinic cart whilst NOT on an actinic product page. Sometimes, I'd like to be able to add more than one prodct at a time.

    Anyone done this? One way I can imagine it happening would be to use a querystring, like this:

    yoursite.com?action=addtocart&product1=ab1234&product2=ab1235

    The idea being that I can have some configuation process to build that querystring in php or javascript and then invite the customer to 'Buy the Bundle' with one click.

    Impossible? I'd welcome your thoughts. Thanks!

    -Jc.
    http://www.thegigrig.com/

    #2
    If you download a copy of the advanced user guide for v10 from the Actinic website, then this explains Adding to Cart from Anywhere on the Internet - page 96 or 97 I think.

    That will cover stand alone additions to the cart.

    Hope that helps.

    Comment


      #3
      Excellent! Thanks Ian, I hadn't spotted that one.

      So that gets me half way there and keeps me hopeful for a solution -the missing link being to add multiple products at the same time. Can these scripts be run several times to add more than one product?

      Anyone tried this?
      http://www.thegigrig.com/

      Comment


        #4
        If these products are all in the same Section, then it's simply a matter of adding more quantity fields to the URL. E.g. &Q_XYZ123=1&Q_ABC234=1. Plus any fields for Attributes/Choices, Prompts, etc - if you have these.

        If they're in different Sections then you'd have to make multiple submissions.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Hi Norman, That's exactly what we need. Big thanks as always!
          http://www.thegigrig.com/

          Comment


            #6
            Hmmmm...

            Now I try to use this for real, I've hit a snag. I can only get one product at a time to add to the cart. It's really puzzling. for example;

            our_url/cgi-bin/ca000006.pl?SID=29&PAGE=PRODUCT&Q_Q4=1 works and adds a 'Q4'

            and

            our_url/cgi-bin/ca000006.pl?SID=29&PAGE=PRODUCT&Q_TUN=1 works and adds a 'TUN'

            BUT

            our_url/cgi-bin/ca000006.pl?SID=29&PAGE=PRODUCT&Q_Q4=1&Q_TUN=1 only adds a 'TUN'

            What am I missing here? The products are all in the same section.

            Many thanks...
            http://www.thegigrig.com/

            Comment


              #7
              Perhaps that Section needs to be set up as Single Add To Cart type Section.

              UPDATE: Just looked at ShoppingCart.pl and that seems to be the case.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Oooh! That's looking promising -yes, it seems to work!

                Thanks again, Norman
                http://www.thegigrig.com/

                Comment

                Working...
                X