This is a discussion on Quantity Price Breaks Per Product within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; in the install.html it says ... Open: catalogadmincategories.php ... After (around line 384): } elseif (tep_not_null($HTTP_POST_VARS)) { $pInfo->objectInfo($HTTP_POST_VARS); Replace with: ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| ... Open: catalogadmincategories.php ... After (around line 384): } elseif (tep_not_null($HTTP_POST_VARS)) { $pInfo->objectInfo($HTTP_POST_VARS); Replace with: // BOF qpbpp $price_breaks_array = array(); for ($count = 0; $count $HTTP_POST_VARS['products_price' . $count], 'products_qty' => $HTTP_POST_VARS['products_qty' . $count], 'products_delete' => (isset($HTTP_POST_VARS['products_delete' . $count]) && tep_not_null($HTTP_POST_VARS['products_delete' . $count]))); } } // EOF qpbpp acutally it should be // BOF qpbpp } elseif (tep_not_null($HTTP_POST_VARS)) { $price_breaks_array = array(); for ($count = 0; $count $HTTP_POST_VARS['products_price' . $count], 'products_qty' => $HTTP_POST_VARS['products_qty' . $count], 'products_delete' => (isset($HTTP_POST_VARS['products_delete' . $count]) && tep_not_null($HTTP_POST_VARS['products_delete' . $count]))); } } // EOF qpbpp that is, the following line should not be delete } elseif (tep_not_null($HTTP_POST_VARS)) { otherwise when you EDIT an existing product with price break, the existing price break will be gone :) More...
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Quantity Price Breaks Per Product | michael_s | New osCommerce Contributions | 0 | 02-07-2008 07:12 PM |
| Quantity Price Breaks Per Product Price Table Formatter | michael_s | New osCommerce Contributions | 0 | 12-01-2007 04:10 PM |
| Quantity Price Breaks Per Product Price Table Formatter | michael_s | New osCommerce Contributions | 0 | 06-22-2007 05:37 PM |
| Quantity Price Breaks Per Product Price Table Formatter | michael_s | New osCommerce Contributions | 0 | 03-22-2007 01:00 PM |
| Quantity Price Breaks Per Product Price Table Formatter | michael_s | New osCommerce Contributions | 0 | 03-20-2007 11:02 PM |