Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2007
    Posts
    4
    Plugin Contributions
    0

    Default Is there a way...

    Hi,

    I want to add links external to zen cart and integrated into my site that allow me to perform the "add to cart" function.

    In other words I would have a page in my website which describes my product and I want the user to be able to click an "Add To Cart" link that takes them to the shopping cart and adds the product to their cart.

    I know I can link to the page in the cart where the product is shown, but I want to take that one step further.

    Is it just a matter of using the same form wrapper and INPUT fields that are used on the product page of the shopping cart?

    -- Gary

  2. #2
    Join Date
    Nov 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: Is there a way...

    Here's the code I've tried but it doesn't work - just opens a blank page...The form is copied from the shopping cart product page. I changed the "text" input to a hidden field.
    Code:
    														<script language="Javascript" type="text/javascript">
    	function doSubmit()
    	{
    		document.cart_quantity.submit();
    	}
    	</script>
    
    														<form name="cart_quantity" action="http://dungenessgold.com/shoppingcart/index.php?main_page=product_info&amp;cPath=1&amp;products_id=1&amp;action=add_product" method="post" enctype="multipart/form-data">
    														
    
    	<input type="hidden" name="cart_quantity" value="1" maxlength="6" size="4" /><input type="hidden" name="products_id" value="1" />
    													
    
    	<a href="javascript:doSubmit()" target="_blank">Add To Cart</a>
    
    														</form>
    -- Gary

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

    Default Re: Is there a way...

    Zen Cart isn't a back-end. It's more complicated than a mere "add to cart".
    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

 

 

Similar Threads

  1. Is there a way..?
    By Coffinwear in forum General Questions
    Replies: 1
    Last Post: 22 Apr 2010, 07:19 PM
  2. Is there a way?
    By cdnbride in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 30 Dec 2009, 07:48 PM
  3. Is there a way...
    By starshine in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 14 Dec 2008, 07:17 AM
  4. Is there a way
    By phazlee in forum General Questions
    Replies: 2
    Last Post: 28 Jul 2008, 11:52 AM
  5. Is there a way....
    By Marty McFly in forum General Questions
    Replies: 5
    Last Post: 20 Aug 2006, 08:58 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR