Guest Posted February 5, 2007 Posted February 5, 2007 Hi all, I would want to make a little customization on the OSC but I’m not a good programmer. My target is: insert of a new button in the shopping_cart.php page that permit the “remove all” object in the cart. This operation is already present through the remove flags, but these OSC options allow a remove of only one product and not of all products in the cars. I would want allow a unique button to empty the cart. To make this operation I think is necessary clean the TABLE_CUSTOMERS_BASKET and TABLE_CUSTOMERS_BASKET_ATTRIBUTES, through these delete command: delete from TABLE_CUSTOMERS_BASKET where customers_id = <customer_ID> and products_id = <products_ID>; delete from TABLE_CUSTOMERS_BASKET_ATTRIBUTES where customers_id = <customer_ID> and products_id = <products_ID>; … but I don’t know like insert these SQL instructions on the shopping_cart.php code and above all how take the customer_id & products_id variables. Is there someone that can help me? Thank a lot – Grazie ! Marco Quote
♥toyicebear Posted February 5, 2007 Posted February 5, 2007 Hi all,I would want to make a little customization on the OSC but I’m not a good programmer. My target is: insert of a new button in the shopping_cart.php page that permit the “remove all” object in the cart. This operation is already present through the remove flags, but these OSC options allow a remove of only one product and not of all products in the cars. I would want allow a unique button to empty the cart. To make this operation I think is necessary clean the TABLE_CUSTOMERS_BASKET and TABLE_CUSTOMERS_BASKET_ATTRIBUTES, through these delete command: delete from TABLE_CUSTOMERS_BASKET where customers_id = <customer_ID> and products_id = <products_ID>; delete from TABLE_CUSTOMERS_BASKET_ATTRIBUTES where customers_id = <customer_ID> and products_id = <products_ID>; … but I don’t know like insert these SQL instructions on the shopping_cart.php code and above all how take the customer_id & products_id variables. Is there someone that can help me? Thank a lot – Grazie ! Marco Clear Cart Button In Shopping Cart Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
Guest Posted February 5, 2007 Posted February 5, 2007 Clear Cart Button In Shopping Cart Thank you very very much !!! marco Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.