$products_options->fields['products_options_values_name'] != ' ' is not the same as:
$products_options->fields['products_options_values_name'] != ''
You want to test when that field is blank and when blank show nothing ...
$products_options->fields['products_options_values_name'] != ' ' is not the same as:
$products_options->fields['products_options_values_name'] != ''
You want to test when that field is blank and when blank show nothing ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I'm understanding the logic but not the coding. This is what I have understood, but it's not working right.
// Read Only - just for display purposes
if (($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY) and ($products_options->fields['products_options_values_name'] != '')) {
$tmp_html .= $products_options_details . '<br />';
} else {
$zv_display_select_option ++;
}
What did I misunderstand?
If you look for the constant, I believe there are 2 places to reference in that file ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Linda,
What is the constant you're referring to? Is it PRODUCTS_OPTIONS_TYPE_READONLY?
If so, I did find two other references but I don't know what to do with them.
The constant is the:
PRODUCTS_OPTIONS_TYPE_READONLY
I forget off hand the code in 1.2.7 but it is similar ...
In the first location I change the code to:
In the next location I change the code:PHP Code:// Read Only - just for display purposes
if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY) {
// $tmp_html .= '<input type="hidden" name ="id[' . $products_options_names->fields['products_options_id'] . ']"' . '" value="' . stripslashes($products_options->fields['products_options_values_name']) . ' SELECTED' . '" /> ' . $products_options->fields['products_options_values_name'];
if (empty($products_options_details)) {
$tmp_html = '';
} else {
$tmp_html .= $products_options_details . '<br />';
}
} else {
$zv_display_select_option ++;
}
PHP Code:// READONLY
case ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY):
if (empty($tmp_html)) {
} else {
$options_name[] = $products_options_names->fields['products_options_name'];
$options_menu[] = $tmp_html . "\n";
$options_comment[] = $products_options_names->fields['products_options_comment'];
$options_comment_position[] = ($products_options_names->fields['products_options_comment_position'] == '1' ? '1' : '0');
}
break;
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Linda,
You are a dream! Thank you, thank you for not giving up on me. Now it works perfectly!
You are most welcome ...![]()
Keep in mind when you add vs edit ...
It will probably wipe out the Option Value on the edit if you add HTML code in there so keep a copy handy ...
This is a way to "cheat" on maintaining and updating common data on products ... it is not by any means perfected ...
Plain text is fine, but get into the fancy stuff and it makes messies on the edit ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!