Announcement

Collapse
No announcement yet.

Add to Cart From Anywhere - to also include Other Info value?

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

    Add to Cart From Anywhere - to also include Other Info value?

    Hi, I'm using the "Adding to Cart from Anywhere on the Internet" solution from page 96 of the Advanced User Guide. This has worked fine, but now that I am adding prompts onto products, clicking one of these links results in a blank page.

    The user guide suggests:
    "Obviously this works only for products where components, attributes, date or other info prompts are not used. However these more complex products can also be added to the cart on similar way but more parameters are required (check the HTML source of your product page for hidden input parameters to see what else required in these cases)."

    I've had a nose through the HTML source but am not too sure what these hidden input parameters are, or how I would go about appending the "add to cart from anywhere" URL to pass "None required" as the Other Info prompt.

    Would anybody be able to point me in the right direction?

    Many thanks in advance.
    Adapt Design & Advertising
    www.adaptdesign.com

    Cardoons.co.uk - Cards With An Inflated Personality
    www.cardoons.co.uk

    #2
    Amend the sample code from:
    Code:
    http://your.URL/cgi-bin/ca000001.pl?SID=3&PAGE=PRODUCT&Q_7=5
    To be:
    Code:
    http://your.URL/cgi-bin/ca000001.pl?SID=3&PAGE=PRODUCT&Q_7=5&O_7=None+Required
    Or try:
    Code:
    http://your.URL/cgi-bin/ca000001.pl?SID=3&PAGE=PRODUCT&Q_7=5&O_7=None%20Required
    As I'm not sure whether Actinic accepts %20 or + for the encoding of spaces.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks for your reply, I now have this as the URL:

      Code:
      http://www.cardoons.co.uk/cgi-bin/ca000000.pl?SID=58&PAGE=PRODUCT&Q_CC104CC=1&O_7=None+Required
      But this still goes to a blank page. I tried removing the + from "None+Required" but doesn't make a difference... Any ideas?

      To show you that it is working on a product without a prompt, here's an example:
      Code:
      http://www.cardoons.co.uk/cgi-bin/ca000000.pl?SID=59&PAGE=PRODUCT&Q_CC101R=1&O_7=None+Required
      Adapt Design & Advertising
      www.adaptdesign.com

      Cardoons.co.uk - Cards With An Inflated Personality
      www.cardoons.co.uk

      Comment


        #4
        Since you didn't post the code you were using I replied using the Advanced Guide as a basis. On that the Product Reference is 7. On your product it's CC104CC. Replace the O_7 in my post by O_CC104CC.
        Code:
        http://www.cardoons.co.uk/cgi-bin/ca000000.pl?SID=58&PAGE=PRODUCT&Q_CC104CC=1&O_CC104CC=None+Required
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Sorry about that, it would've made sense to have posted that code first. Your suggestion works perfectly - many thanks for this!
          Adapt Design & Advertising
          www.adaptdesign.com

          Cardoons.co.uk - Cards With An Inflated Personality
          www.cardoons.co.uk

          Comment


            #6
            Can you report whether %20 and / or + worked?
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Both seem to work equally well, but when the page loads, the "%20" in the URL bar changes into a space. Just to be on the safe side I have gone with using "+" for spaces.
              Adapt Design & Advertising
              www.adaptdesign.com

              Cardoons.co.uk - Cards With An Inflated Personality
              www.cardoons.co.uk

              Comment

              Working...
              X