Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding two products to the cart


RB

Recommended Posts

I am looking to add one product to the cart more than once, but display the entries on separate lines, rather than as one product with a higher quantity.

 

I would like to display the product along with a couple of extra variables which the user selects from another page.

 

Can anyone suggest how to amend the code to achieve this?

 

I cannot amend the attributes of the product as everything is identical, the differences I have are the two extra variables tagged on to the product.

 

I use a button to add the product, which loads a new page from which the user selects another option, and then continue to the checkout. Problem is I can't display the options against the product as the second product overwrites the options of the first.

Link to comment
Share on other sites

I should have been more specific.

 

My scenario is this:

My 'products' are competitions, so the user selects the competition and is then shown a picture of a sports game whereby they play 'Spot the Ball' which generates a set of coordinates where they think the ball is. These coordinates are tagged to the 'product' and added to the cart to be displayed alongside the name.

 

The problem I have is if they want to play again. The quantity is incremented, so I get one record for two guesses at the same competition and cannot allow them to remove just one of their guesses.

 

What I want to do is display each entry as a separate line item, with quantity always showing as 1.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...