ok, I am in the process of installing the OTF v2.02 manual installation and have run into a problem in the instructions.
Using the "option_type_feature-v2.0.2_manual_installation(-new-).txt" instructions we find this for the catalog/includes/class/shopping_cart.php file:
FIND: (around line 105)
$this->contents[$products_id]['attributes'][$option] = $value;
REPLACE with
// OTF contrib begins
//$this->contents[$products_id]['attributes'][$option] = $value;
$attr_value = NULL;
$blank_value = FALSE;
if (strstr($option, TEXT_PREFIX)) {
if (trim($value) == NULL)
{
$blank_value = TRUE;
} else {
$option = substr($option, strlen(TEXT_PREFIX));
$attr_value = htmlspecialchars(stripslashes($value), ENT_QUOTES);
$value = PRODUCTS_OPTIONS_VALUE_TEXT_ID;
$this->contents[$products_id]['attributes_values'][$option] = $attr_value;
}
}
if (!$blank_value)
{
$this->contents[$products_id]['attributes'][$option] = $value;
// OTF contrib ends
Ok, here is my problem, the actual code in that area is this:
if (is_array($attributes)) {
reset($attributes);
while (list($option, $value) = each($attributes)) {
$this->contents[$products_id_string]['attributes'][$option] = $value;
So what am I looking for?
[$products_id]
or
[$products_id_string]
Everything else in the instructions are exactly as the instructions tell me. So what do I do?