Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2007
    Posts
    12
    Plugin Contributions
    0

    Default Add items to shopping cart from Flash ?

    I need to add an item to the shopping cart from a flash file.
    Any ideas on what to use within my getURL statement ?

    ZenCart Newbie Here sorry.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Add items to shopping cart from Flash ?

    You'll need to tell your flash app to POST the products_id and cart_quantity to your Zen Cart product page, with &action=add_product on the URL.
    .

    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
    Apr 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Add items to shopping cart from Flash ?

    I understand what you mean, but I do not know the full URL I would use.

    My customers site is:

    https://www.lillyscollection.com/ZeCart/

    Thanks for your help !

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Add items to shopping cart from Flash ?

    Your client's images are in desperate need of optimization. At circa 2MB each, they are roughly 1,000 times the size thumbnails should be and thus take 1,000 times the time to load and 1,000 times both your client's and their visitors bandwidth to be viewed.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Apr 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Add items to shopping cart from Flash ?

    Yeah the customer added them, we are going to delete them all and optimize them.

    The URL I am using to try and add things to the shopping cart from flash is:

    http://www.lillyscollection.com/ZenC...d=12&quanity=1

    Doesn't work though

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Add items to shopping cart from Flash ?

    Quote Originally Posted by DrByte View Post
    You'll need to tell your flash app to POST the products_id and cart_quantity to your Zen Cart product page, with &action=add_product on the URL.
    Quote Originally Posted by fatalparadox View Post
    The URL I am using to try and add things to the shopping cart from flash is:

    http://www.lillyscollection.com/ZenC...d=12&quanity=1

    Doesn't work though
    You need to POST the values, not pass them on the URL as GET values. Only the action belongs in the URL.
    .

    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.

  7. #7
    Join Date
    Apr 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Add items to shopping cart from Flash ?

    Sorry I don't understand. Could you give me an example ?

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Add items to shopping cart from Flash ?

    I'd recommend that you look at some of the product listing pages and product_info page to get a sense of the sort of data that needs to be passed in the URL. In particular note that the page is generally product_info rather than shopping cart. Zen Cart will determine for itself (based on an Admin switch) whether it is appropriate to invoke the shopping cart after adding items to it, or whether it should go onto the page that you specify.

    However, DrByte's point is that even if you get all the parameters passed in the URL correct, that won't be sufficient. You will still need to pass the cart_quantity and products_id via the $_POST variable (please note that "s" in products_id).

    Not being a Flash expert, I can't tell you how to do this, or even whether it can be done (though I would be very surprised if it couldn't).
    Last edited by kuroi; 5 Aug 2007 at 10:54 PM.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Add items to shopping cart from Flash ?

    And this is probably a silly question, but why do you think you need to use the flash?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  10. #10
    Join Date
    Apr 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Add items to shopping cart from Flash ?

    We are building a Build-A-Bag section that is designed in Flash, the customer chooses a bag, uploads their picture and it emails the design to the client. It also needs to add a custom bag to the shopping cart.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 2 Aug 2016, 01:03 PM
  2. Replies: 1
    Last Post: 10 Sep 2009, 09:14 PM
  3. Items disappearing from shopping cart
    By Flashdance in forum General Questions
    Replies: 14
    Last Post: 17 Jun 2009, 04:56 PM
  4. Add to cart from a link in an animation flash
    By bazfr in forum General Questions
    Replies: 2
    Last Post: 15 Nov 2007, 09:43 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