This is a discussion on Problem with products attributes within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello, I have got a problem with products attributes. In OSC it's very easy to create sth like that: product ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hello, I have got a problem with products attributes. In OSC it's very easy to create sth like that: product prize: 10.00$ products attributes (size): medium small (-2.00$) large (+2.00$) And it works fine (small costs 8$, medium 10$ and large 12$) Now, I would like to get sth like that: product prize: 10.00$ products attributes (size): small (8.00$) medium (10.00$) large (12.00$) Is it possible to do that in OSC (I just want to avoid prefixes)?? Greetz, markospl |
|
#2
| |||
| |||
| Hi Markospl, First thing to do is backup, backup and backup! open product_info.php and locate this code approx line 137; Code: if ($products_options['options_values_price'] != '0') {
$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
}
Code: //here is the edited code
if ($products_options['price_prefix'] == '+'){
$real_price = ($product_info['products_price']) + ($products_options['options_values_price']);
$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $currencies->display_price($real_price, tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
}else{
$real_price = ($product_info['products_price']) - ($products_options['options_values_price']);
$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $currencies->display_price($real_price, tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
}
// end of code
Hope it helps, Paul |
|
#3
| |||
| |||
| Quote:
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Products / Attributes and Inventory Controll | stevel | osCMax v1.7 Discussion | 1 | 01-11-2005 07:18 PM |
| Products Attributes - drop-down menu for product selection | SuperPickle | osCommerce 2.2 Modification Help | 0 | 10-11-2004 09:24 PM |
| Lots of Products all with the same attributes. | JGofGFS | osCommerce 2.2 Modification Help | 0 | 05-04-2004 08:55 AM |
| Problems with Adding Products and Attributes | mafunk | osCommerce 2.2 Modification Help | 1 | 11-03-2003 08:16 PM |
| Products with multiple attributes - one depends on the other | geoff-uklinux | osCommerce 2.2 Modification Help | 2 | 10-24-2003 05:00 AM |