Jump to content

Custom cart will not add an item


Recommended Posts

I have created a custom "cart" page by copying the code from the default cart.

 

The problem is that when you "add to cart" it forwards the data to the default cart instead of adding it for checkout.

 

I noticed that when I add an item from the default cart and then try to add from my custom cart, it works.

 

What special magic sauce am I missing ?

 

 

Here are my form stuffs:

<form method="post" action="../cart.php?carttpl=cart">
<input type="hidden" name="a" value="add">
<input type="hidden" name="pid" value="39">
<input type="hidden" name="billingcycle" value="monthly">
<input type="hidden" name="i" value="1">
<input type="hidden" name="configure" value="true">

Link to comment
Share on other sites

I seem to have figured it out myself via trial and error...

 

<form method="post" action="../cart.php?carttpl=cart&a=confproduct&i=0">
<input type="hidden" name="previousbillingcycle" value="monthly">
<input type="hidden" name="billingcycle" value="monthly">
<input type="hidden" name="configure" value="true">

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated