Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product with attributes directly to cart


mendru

Recommended Posts

Hi.

I can't find the solution. May be you'll get it easy.

I'm treating to do a listing in allproducts contribution that shows all product options simultaneously.

You can see it in: http://www.mendrulandia.es/tienda/allprods.php

 

I’ve modified allprods.php file and creatin a new module named lista.php because I don’t want to change product_listing.php file. I would like it stay unchanged in the rest of the pages. Everything allright here.

 

The idea is you can click in the 3 last fields to buy directly the product in the required option and ths is the problem.

 

I thought I could do this making a form and passing values

<form name="cart_quantity" action="http://yoursite/catalog/product_info.php?products_id=product_number&action=add_product" method="post">

<select name="id[products_options_id]"><option value="products_options_values_id">

 

I've tryed to send it in a javascript function but it doesn't works.

 

¿Is there any way to do this?

 

 

Thanks in advance.

Link to comment
Share on other sites

I've solved.

I needed to include the post variable 'products_id' too.

 

Thanks.

 

 

You may get issues still as you have removed the sid by not using tep_href_link http://www.oscommerce.com/forums/index.php?showtopic=330479&hl

 

also do your attributes get passed?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...