Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Add products for each product option in a single query

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-27-2007, 11:04 AM
 
jeuseo jeuseo is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 3
 

Default 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?
__________________
x-cart v 4.1.6
Reply With Quote
  #2  
Old 04-27-2007, 12:02 PM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,060
 

Default 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
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 04-27-2007, 12:53 PM
 
jeuseo jeuseo is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 3
 

Default 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.
__________________
x-cart v 4.1.6
Reply With Quote
  #4  
Old 04-27-2007, 02:46 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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)
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #5  
Old 04-29-2007, 11:16 PM
 
jeuseo jeuseo is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 3
 

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

thanks a lot
__________________
x-cart v 4.1.6
Reply With Quote
  #6  
Old 04-30-2007, 03:42 PM
 
Rue Rue is offline
 

Newbie
  
Join Date: Feb 2007
Posts: 1
 

Default 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
__________________
4.1.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:40 AM.

   

 
X-Cart forums © 2001-2020