Empty Cart on FormBuilder Submission
Posted: Mon Oct 07, 2013 3:51 pm
Hi,
I am creating a product website where users can view products, add them to cart and then send a pre-filled order form to the website owner. Due to the specialist nature of the product, the actual transaction is carried out offline.
I am combining the Products and Cart modules so that users can select and save their desired products. I have then created a Formbuilder form which takes the product selection data from the Cart and sends it to the website owner, along with customer information.
When this email is successfully sent through Formbuilder, I would like the Cart to be emptied automatically.
Essentially, I am looking to place some code into the 'Thank you, order received' page which will empty the cart. Any advice greatly received.
Thanks.
I am creating a product website where users can view products, add them to cart and then send a pre-filled order form to the website owner. Due to the specialist nature of the product, the actual transaction is carried out offline.
I am combining the Products and Cart modules so that users can select and save their desired products. I have then created a Formbuilder form which takes the product selection data from the Cart and sends it to the website owner, along with customer information.
When this email is successfully sent through Formbuilder, I would like the Cart to be emptied automatically.
Essentially, I am looking to place some code into the 'Thank you, order received' page which will empty the cart. Any advice greatly received.
Thanks.