X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Add products for each product option in a single query (https://forum.x-cart.com/showthread.php?t=30772)

jeuseo 04-27-2007 11:04 AM

Add products for each product option in a single query
 
Need Help.
I need every quantity input box for each product options in each product page not products page so that customers can order products with each option in a single click.
I already made each option be shown in several rows not in pulldown menu and also made a checkbox for each option.
For example, there are s, m, l size options for a shirt.
Customers want to buy 2 items of each size.
How can it be done without going to cart and coming back to the product page.
Any Suggestion or help?

pauldodman 04-27-2007 12:02 PM

Re: Add products for each product option in a single query
 
Not too sure what it is you need, but I am guessing that this might help:
Add Multiple Products to Cart - Free X-cart Mod! #168
http://www.bcsengineering.com/store/customer/product.php?productid=168

jeuseo 04-27-2007 12:53 PM

Re: Add products for each product option in a single query
 
Thanks for your help.
But my concern is making connection between product options and the amount for each option when customers buy it.

inebriate 04-27-2007 02:46 PM

Re: Add products for each product option in a single query
 
i would think that you will need to edit cart.php's add to cart function to loop through the products, change all the inputs/selects to arrays in buy_now.tpl, ie: <input type="hidden" name="productid"> to <input type="hidden" name="productid[]">, and edit the customer_options.tpl to make each option be displayed rather than have it selected as well as have another form text input thats named appropiately, ie: <input type="text" name="amount[]"> (and remove the one from buy_now.tpl)

jeuseo 04-29-2007 11:16 PM

Re: Add products for each product option in a single query
 
thanks a lot

Rue 04-30-2007 03:42 PM

Re: Add products for each product option in a single query
 
Jeuseo, I have the same need for my product options. Cant believe I cant find an answer to this anywhere. It seems like it wouldnt be too complicated. Below is an example of what I'm looking for. Hope someone can help!
http://www.360tackle.com/images/order_multiple_options.jpg


All times are GMT -8. The time now is 04:31 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.