Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Location
    Boulder, CO, Dec 2: India
    Posts
    88
    Plugin Contributions
    0

    Default Set zen cart cookie for installation in sub directory

    Hi
    I have a zen cart latest version installed in a sub directory (/store/) of my domain, with the main site in the root. I want to put some order buttons on pages in the main directory to pass in orders to zen cart. I want to bypass the product info pages in zen cart and with a form pass in the order directly to the index.php?main_page=shopping_cart page. Here is the form I'm using:
    Code:
    <form action="store/index.php?main_page=product_info&amp;action=add_product&amp;cart_quantity=1" method="POST">
    <table  class="orderbox">
    	<tr valign="middle">
    <td class="ordprice">$799</td>
    <td class="ordsel">
    <label for="attrib-2" >Choose Finish: </label><select class="attrib-dd" id="attrib-2" name="id[2]" ><option value="20" >Dark Walnut</option><option value="19" >Honey Oak</option><option value="2" >Natural</option></select></td>
    <td class="ordadd"><input type="image" border="0" name="add" src="images/add2cart.gif" width="97" height="21"> 
    			<input type="hidden" name="products_id" value="167"></td></tr>
    </table></form>
    This works to a point. The product shows up on the shopping cart, BUT if I navigate away without checking out immediately, the cart looses that product because it arrived with no cookie set.

    How do I set the cookie for zen cart in the main directory, so that when I pass the order into the sub directory where zen cart is, it will keep track of the cart contents even if I navigate away to do more shopping w/o checking out immediately?

    thanks
    JSC

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Set zen cart cookie for installation in sub directory

    This works to a point. The product shows up on the shopping cart, BUT if I navigate away without checking out immediately, the cart looses that product because it arrived with no cookie set.
    This is a session security item
    ZenCart is not designed to be used in the way you are attempting to use it
    As a backend cart to a html site or in pieces as you are explaining

    It is meant to be your site...
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Zen Cart Installation for Testing!
    By autoace in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 10 Nov 2009, 03:03 AM
  2. my zen-cart is stuck in a sub-directory
    By llwilliams in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 1 Sep 2008, 11:51 PM
  3. Ultimate SEO URLs for Zen Cart – Installation
    By hidpros in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 13 Sep 2007, 01:14 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