Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with adding product attributes


Andrew Cargill

Recommended Posts

Hi there,

 

I am currently in the process of creating a quick checkout form for my shop. The idea is that the user will insert the product id and a list of attributes will be shown.

I have been able to get the products to the basket without variables, by using the following:

 

$cart->add_cart($product1, $productQty1, $attributes, $notify = true);

 

But I am now having problems decoding the following:

 

$attributes = ($HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]]) ? $HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]] : '';

 

Can someone please break down what this is actually meant to look like with real values in?

 

Cheers,

 

Andy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...