Deceased
- Join Date:
- Nov 2005
- Location:
- Colorado Springs, CO USA
- Posts:
- 7,017
- Plugin Contributions:
- 12
Improved Attributes Controller (now built-in to v1.3.9)
LRS:
I just now installed it with version 1.3.7.1 and it does the same thing for me. No matter how many option values I select, it sets them all to option value id 1 regardless of which option / option value combination I select.
try this fix and see if it helps:
open admin/attributes_controller.php and find the following section of code:
// *************** start modification for improved attributes controller
for ($i=0; $i<sizeof($_POST['values_id']); $i++) {
$check_duplicate = $db->Execute("select * from " . TABLE_PRODUCTS_ATTRIBUTES . "
where products_id ='" . $_POST['products_id'] . "'
and options_id = '" . $_POST['options_id'] . "'
and options_values_id = '" . $_POST['values_id'][i] . "'");
if ($check_duplicate->RecordCount() > 0) {
// do not add duplicates give a warning
$messageStack->add_session(ATTRIBUTE_WARNING_DUPLICATE . ' - ' . zen_options_name($_POST['options_id']) . ' : ' . zen_values_name($_POST['values_id'][i]), 'error');
} else {
// Validate options_id and options_value_id
Make the highlighted changes.
I think that should solve the problem.
NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.