Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Displaying products_quantity from products table in shopping_cart.php


Guest

Recommended Posts

Posted

Hey Guys,

 

I have wrapped my brains and am giving up.

 

My client wants the quanity of each product to show up in shopping_cart.php, so say a customer ordered an item, where there where 10 in a pack, he needs this information to be displayed.

 

This i assume is where i need to add the information (below) then how do i display it?

 

I think my biggest confusion is the fact products_quantity is allready being used for the quantity allready in the cart.

 

Thanks in advance, my brain hurts becuase of this

 

Rob

 

----------------

 

$attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix

from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa

where pa.products_id = '" . $products[$i]['id'] . "'

and pa.options_id = '" . $option . "'

and pa.options_id = popt.products_options_id

and pa.options_values_id = '" . $value . "'

and pa.options_values_id = poval.products_options_values_id

and popt.language_id = '" . $languages_id . "'

and poval.language_id = '" . $languages_id . "'

");

 

$attributes_values = tep_db_fetch_array($attributes);

 

$products[$i][$option]['products_options_name'] = $attributes_values['products_options_name'];

$products[$i][$option]['options_values_id'] = $value;

$products[$i][$option]['products_options_values_name'] = $attributes_values['products_options_values_name'];

$products[$i][$option]['options_values_price'] = $attributes_values['options_values_price'];

$products[$i][$option]['price_prefix'] = $attributes_values['price_prefix'];

Archived

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

×
×
  • Create New...