Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Location
    London, UK
    Posts
    144
    Plugin Contributions
    0

    Default Is this possible ? (auto add-to-cart)

    Ok, here's what I'd like to be able to do;

    I would like to be able to have a link in our newsletter (yes, it is opt-in only)
    where all the customer has to do is click the link and certain products are automatically added to a guest cart. Then all they have to do is go to checkout and login.

    Is this possible?

    I have been able to create a link that will add an item to a cart by using a button with a link like; "http://www.ourdomain.com/zen/index.php?main_page=index&cPath=1&sort=20a&action=buy_now&products_id=109".

    But what I'm not sure of is what happens if 100 people get this same button, will it create individual guest carts for each of them based on identifying their IP address or something?

    Thanks,
    trillian

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Is this possible ? (auto add-to-cart)

    I suspect you may run into problems since Zen Cart relies on a Form Post of data, not simply on parameters passed in the URL.

    As to identifying each customer's basket, each customer will get their own guest cart, just as if each customer came to your site on their own and started clicking around. Each guest cart is separate, and identified by the session that *their browser* opens with your store.
    Last edited by DrByte; 19 Sep 2007 at 08:00 PM. Reason: clarify
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jun 2005
    Location
    London, UK
    Posts
    144
    Plugin Contributions
    0

    Default Re: Is this possible ? (auto add-to-cart)

    Thanks very much Dr Byte.

    What kind of problems do you think I might run into ?

    Just the button which adds an item to the cart seems to work fine, so from one browser (mine) and one product it seems to work. Now as long as each person will create their own unique cart with the sessions their own browser opens it would seem fairly straightforward.

    -Trillian

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Is this possible ? (auto add-to-cart)

    Quote Originally Posted by trillian View Post
    What kind of problems do you think I might run into ?
    Namely that the default behaviour of Zen Cart doesn't accept add-to-cart parameters as GET values (ie: URL parameters). It expects them as POST values, which come from a form-submit click.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jun 2005
    Location
    London, UK
    Posts
    144
    Plugin Contributions
    0

    Default Re: Is this possible ? (auto add-to-cart)

    Quote Originally Posted by DrByte View Post
    Namely that the default behaviour of Zen Cart doesn't accept add-to-cart parameters as GET values (ie: URL parameters). It expects them as POST values, which come from a form-submit click.
    Well, I just copied the link that shows when you click on the 'buy now' button and as far as I can tell it works fine in that it does exactly what the button would do which is to add the item to a guest cart.

 

 

Similar Threads

  1. v154 Is It Possible To Remove "Add This To My Cart" For Just Some Items
    By DK_Scully in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 13 Jan 2016, 11:52 PM
  2. quickbooks point of sale 9 and zen cart auto stock update possible?
    By Xbox Memberships in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 3 Sep 2011, 08:56 PM
  3. Add costprice to products in admin,is this possible?
    By Rimo in forum General Questions
    Replies: 1
    Last Post: 22 Aug 2011, 08:18 AM
  4. Replies: 11
    Last Post: 18 Sep 2009, 05:13 AM
  5. Is it possible to add an images section to store without price/add to cart?
    By jdjohnson99 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Sep 2007, 04:37 AM

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