Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2014
    Location
    NYC
    Posts
    2
    Plugin Contributions
    0

    Default How to pass in custom price from remote add to cart?

    I have a 1 page web app to build a customized product, and I want to add it to the cart of a current zencart installation on the same domain. I have it mostly figured out, and tested by manually copy/pasting security token (will figure out how to automate next).

    My main question is, what attribute can I pass via the html form to set the price of the product? There are thousands of price possibilities, so I can't manually create them.

    For example, I've done this on another cart software with this <input type="hidden" id="price" name="price" value="[price injected dynamically]">.

    For reference, here is my custom product builder with the remote add to cart button: https://www.chair-mat-office.com/custom-mat-builder/

  2. #2
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: How to pass in custom price from remote add to cart?

    You sir will need to inject the price into the product price, and most certainly make a product to handle this fancy new price.

    Can you send more than just the price?

    It would be handy for the customer to reference the actual product they purchase...

    Which leads me to believing it's far wiser to use your code to 'make' a product with attributes when the customer completes the product builder.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  3. #3
    Join Date
    Feb 2014
    Location
    NYC
    Posts
    2
    Plugin Contributions
    0

    Default Re: How to pass in custom price from remote add to cart?

    I currently have a custom product, so they know they ordered a "custom mat". It would be nice to pass in the price and description. Do you know the html input name attributes to do that?

 

 

Similar Threads

  1. v151 add custom price to cart
    By johndoes in forum General Questions
    Replies: 3
    Last Post: 16 Jun 2013, 10:18 AM
  2. how can I pass the parameters from page1 to the cart?
    By joelitos2000 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Mar 2010, 09:48 PM
  3. Can admin add items to cart / custom price?
    By Brian1234 in forum General Questions
    Replies: 3
    Last Post: 12 Feb 2008, 10:12 PM
  4. custom price from email, add to cart?
    By [email protected] in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 10 May 2007, 02:16 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