Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25
  1. #21
    Join Date
    Aug 2005
    Posts
    336
    Plugin Contributions
    0

    Default Re: Add Product to Cart URL

    Thanks Dr. Byte... it must be so much easier to do this stuff when you know what you're doing.
    Currently using ZEN CART v. 1.3.6

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

    Default Re: Add Product to Cart URL

    Quote Originally Posted by magicpants View Post
    it must be so much easier to do this stuff when you know what you're doing.
    Glad you know ... cuz I'm not so sure some days
    .

    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. #23
    Join Date
    Feb 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: Add Product to Cart URL

    [quote=Webbo1969;243588]BEWARE: Newbie Zenner!

    I have a requirement whereby I wish to minimise the front-end of my shop ...(cut here)...

    ... Could somebody please advise me if it is possible to simply: (i) add product name, quantity available, price and shipping options to the database ONLY (ii) Turn off all front-end category and product details (iii) Acquire a product URL to add the product to the cart...? ... That's all I need.. but is it simple to do on Zen? If it is and somebody can explain the minimal process required I would be eternally grateful.

    Webbo1969: you have a great idea! I saw you have resolved the first req, but haven't seen your answer to the above (2nd) part - Just add product name, quantity, price and shipping info to database ONLY -- cool! Can you post your finding here? thx!

    gwu888

  4. #24
    Join Date
    Mar 2007
    Posts
    8
    Plugin Contributions
    0

    red flag Re: Add Product to Cart URL

    hi,
    i am new to zen-cart. need your expertise on this.

    i have follow the method that u give:
    <form action="http://[your domain name]/index.php?main_page=product_info&amp;cPath=[your cPath]/&amp;products_id=[your products_id]/&amp;action=add_product" method="post" enctype="multipart/form-data" name="cart_quantity" id="cart_quantity">
    <input type="hidden" name="cart_quantity" value="1" maxlength="6" size="4" />
    <input type="hidden" name="products_id" value="[your products_id]" />
    <input name="image" type="image" title=" Add to Cart " src="includes/templates/template_default/buttons/english/button_in_cart.gif" alt="Add to Cart" />
    </form>

    i have change all the neccessary name, and paste this into the Text Editor.
    but when i save or update to the database the &amp; was replace with & in the action section as shown below

    action="http://[your domain name]/index.php?main_page=product_info&amp;cPath=[your cPath]/&amp;products_id=[your products_id]/&amp;action=add_product" method="post" enctype="multipart/form-data" name="cart_quantity" id="cart_quantity">

    hence, it causes the product not added into the shopping cart.

    how can i make the changes that the &amp; remains the same.

    Please help . Need this urgently.


    Thanks ;)

  5. #25
    Join Date
    Apr 2005
    Location
    White Salmon, WA
    Posts
    62
    Plugin Contributions
    0

    Default Re: Add Product to Cart URL

    I needed to do the same.

    Here's what I did. I went to the product detail page, and looked at the source code.

    I copied and pasted the following onto a static page outside of the cart:

    <!--bof Form start-->
    <form name="cart_quantity" action="http://www.wheeleez.com/cart/index.php?main_page=product_info&amp;cPath=1&amp;products_id=1&amp;action=add_pr oduct" method="post" enctype="multipart/form-data">
    <!--eof Form start-->



    <!--bof Add to Cart Box -->
    <div id="cartAdd">
    <p>Quantity in Cart: 1</p>Add to Cart: <input type="text" name="cart_quantity" value="1" maxlength="6" size="4" /><br /><br /><input type="hidden" name="products_id" value="1" /><input type="image" src="/cart/includes/templates/template_default/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " /> </div>
    <!--eof Add to Cart Box-->

    </form>

    It seems to work. I'm debugging it right now.
    Scott See
    www.hammock.net
    Global Marketing
    White Salmon, WA

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. v151 Add product to Cart URL?
    By aire in forum General Questions
    Replies: 9
    Last Post: 16 May 2016, 09:41 PM
  2. Replies: 1
    Last Post: 14 Jan 2013, 03:43 AM
  3. Attribute add to cart url
    By Endre in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 26 Oct 2009, 03:16 PM
  4. Add a return URL to add to cart
    By directpc in forum General Questions
    Replies: 9
    Last Post: 31 Oct 2007, 07:14 PM
  5. Products URL and Add to Cart
    By digidiva-kathy in forum General Questions
    Replies: 2
    Last Post: 18 Sep 2007, 02:50 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