• Howdy! I need help!

    My web designer cut out the codes for the wordpress shopping cart in the beginning since I made special requests that required him to disabled it. Long story short.. it doesn’t work.

    So now I am attempting to add a third-party shopping cart, Paypal Shop Maker. I simply punched in the product info and Paypal Shop Maker generated lots of html pages which I uploaded to wordpress through FTP and
    cut some of the coding from their html product pages and pasted it into
    newly created “page” that I created in our wordpress website. Here’s that page: http://www.christinejewellers.com/?page_id=2246

    When you click the “add to cart” button, this
    code uploads product information to “checkout.html” (our new unedited
    shopping cart) PERFECTLY.

    HOWEVER, when I pasted this exact same code into the “product description”
    box for each our product, it doesn’t work. I had to add <form></form>
    above the other form code for it to work for some reason. Although it does
    upload info to “checkout.html”, it refreshes the cart every time you add
    another product. Therefore, it is not cumulative. Example:
    http://www.christinejewellers.com/?page_id=24&category=18&product_id=72
    Scroll all the way down to see the button.

    Do you know why? Perhaps something to do with PHP? How can I overcome this problem?

    Here’s the code for that “page”:
    <html>
    <head>
    <script type=”text/javascript”>
    EW_ROOT_PATH = “”; // configure root path
    ew_cartAction = 0; // Load cart
    </script>
    <script type=”text/javascript” src=”Spry_1_6_1_022408/includes_minified/SpryData.js”></script>
    <script type=”text/javascript” src=”ewcartconfig.js”></script>
    <script type=”text/javascript” src=”ewcart32.js”></script>
    <link href=”demo.css” rel=”stylesheet” type=”text/css” />
    <meta name=”generator” content=”PayPal Shop Maker v3.2.0.2″ />
    </head>
    <body>
    <table class=”ewTable”>
    <form name=”pp11″ onSubmit=”return SubmitItemToCart(this);”>
    <input type=”hidden” name=”id” value=”11″ />
    <input type=”hidden” name=”amount” value=”11″ />
    <input type=”hidden” name=”amount_base” value=”11″ />
    <input type=”hidden” name=”discounttype” value=”1″ />
    <input type=”hidden” name=”taxtype” value=”1″ />
    <input type=”hidden” name=”shiptype” value=”1″ />
    <input type=”hidden” name=”item_number” value=”Ford 01″ />
    <input type=”hidden” name=”item_name” value=”Ranger FX-4″ />
    <input type=”hidden” name=”handling” value=”1.3″ />
    <input type=”hidden” name=”shipping” value=”1.1″ />
    <input type=”hidden” name=”shipping2″ value=”1.2″ />
    <input type=”hidden” name=”tax” value=”1.40″ />

    <table class=”ewItemTable”>
    <tr><td>Price:</td><td style=”white-space: nowrap”><div id=”div_amount_11″ name=”div_amount_11″>$11.00 </div></td></tr>
    </table>
    Qty <input type=”text” name=”quantity” value=”1″ size=”4″> 
    <input type=”image” src=”images/ppcart1.gif” border=”0″ name=”submit” align=”middle” alt=””>

    </form>
    <script type=”text/javascript”>
    UpdatePrice(document.pp11); // initialize option price
    </script>
    </table>
    View Cart
    </body>
    </html>

    Here’s the code that I pasted into the “product description” box for one of my products.

    <head>
    <script type=”text/javascript”>
    EW_ROOT_PATH = “”; // configure root path
    ew_cartAction = 0; // Load cart
    </script>
    <script type=”text/javascript” src=”Spry_1_6_1_022408/includes_minified/SpryData.js”></script>
    <script type=”text/javascript” src=”ewcartconfig.js”></script>
    <script type=”text/javascript” src=”ewcart32.js”></script>
    <link href=”demo.css” rel=”stylesheet” type=”text/css” />
    <meta name=”generator” content=”PayPal Shop Maker v3.2.0.2″ />
    </head>
    <body>
    <table class=”ewTable”>

    <div style=”margin-top:-50px”><form></form></div>
    <form name=”pp11″ onSubmit=”return SubmitItemToCart(this);” method=’post’>
    <input type=”hidden” name=”id” value=”11″ />
    <input type=”hidden” name=”amount” value=”11″ />
    <input type=”hidden” name=”amount_base” value=”11″ />
    <input type=”hidden” name=”discounttype” value=”1″ />
    <input type=”hidden” name=”taxtype” value=”1″ />
    <input type=”hidden” name=”shiptype” value=”1″ />
    <input type=”hidden” name=”item_number” value=”Ford 01″ />
    <input type=”hidden” name=”item_name” value=”Ranger FX-4″ />
    <input type=”hidden” name=”handling” value=”1.3″ />
    <input type=”hidden” name=”shipping” value=”1.1″ />
    <input type=”hidden” name=”shipping2″ value=”1.2″ />
    <input type=”hidden” name=”tax” value=”1.40″ />

    <table class=”ewItemTable”>
    <tr><td>Price:</td><td style=”white-space: nowrap”><div id=”div_amount_11″ name=”div_amount_11″>$11.00 </div></td></tr>
    </table>
    Qty <input type=”text” name=”quantity” value=”1″ size=”4″>
    <input type=”image” src=”images/ppcart1.gif” border=”0″ name=”submit” align=”middle” alt=””>

    </form>

    <script type=”text/javascript”>
    UpdatePrice(document.pp11); // initialize option price
    </script>
    </table>
    View Cart
    </body>

    I’m don’t know much about coding. Geniuses please help!! THANKS!!!

  • The topic ‘Shopping Cart html code doesn’t work in “product description” box’ is closed to new replies.