Jump to content

Automatic order completion and forwarding to payment page - AJAX form


Webmaster001

Recommended Posts

We need to automatically bypass the "complete order" button in the "viewcart.tpl" and pass the clients to the payment page.

 

The reason we do that is we have a AJAX form and in the product configuration we capture any data we need (name, and email) and by using a script we pass those to the 'viewproduct.tpl'. The rest of the products have a demo value so we basically don't need the client to do the clicking two times

 

1) In the configureproduct.tpl for add to cart

2) In the viewcart.tpl for the "complete order"

 

If anyone has a suggestion how to automatically place the order right after "add to cart" that would be great.

 

Also, please be advised our clients can only choose one product so that's why we want to complete the order and forward them to the payment page right after they press "add to cart" .. we have renamed our add to cart to "buy now" to make more sense for the client.

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.

×
×
  • 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