Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Posts
    5
    Plugin Contributions
    0

    Default Adding items to cart via URL

    Is there a way to add an item to a guest cart via a URL in the address bar? I see that the form is submitting something like this:

    http://www.DOMAIN.com/store/index.ph...on=add_product

    EDIT: The URL did not display properly in the post...
    Code:
    http://www.DOMAIN.com/store/index.php?main_page=product_info&products_id=1001&action=add_product
    But when I enter that into the address bar, the cart loads and says "cart empty"

  2. #2
    Join Date
    Mar 2004
    Posts
    688
    Plugin Contributions
    0

    Default Re: Adding items to cart via URL

    It kinda depends where you are trying to add it from...
    Where are you putting the link? (What page within your site?)
    Marg

  3. #3
    Join Date
    Feb 2008
    Posts
    5
    Plugin Contributions
    0

    Default Re: Adding items to cart via URL

    I'm actually trying to find a URL that I can enter into the address bar, hit enter, and have it take me to that site with an item in my shopping cart.

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Adding items to cart via URL

    I could be wrong (someone will correct me if I am), but I don't think that's possible due to issues like session IDs and such.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  5. #5
    Join Date
    Sep 2006
    Posts
    27
    Plugin Contributions
    1

    Default Re: Adding items to cart via URL

    Thanks for this posting, you got me started on the right track.

    If you replace

    main_page=product_info

    with

    main_page=shopping_cart

    it works.

  6. #6
    Join Date
    Sep 2006
    Posts
    27
    Plugin Contributions
    1

    Default Re: Adding items to cart via URL

    OK, it did work the first few times I clicked on the urls but now I get empty cart message. Session ID's are an issue here.

 

 

Similar Threads

  1. Automatically Add Products to the cart via URL?
    By jonhurlock in forum General Questions
    Replies: 18
    Last Post: 13 Apr 2010, 03:49 PM
  2. adding items to an oder via admin
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Nov 2007, 05:04 PM
  3. Downloadable items via cart?
    By leejay89 in forum General Questions
    Replies: 1
    Last Post: 30 Jan 2007, 11:02 PM
  4. Replies: 7
    Last Post: 24 Jun 2006, 06:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg