Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need installation assist for Add-On: Color Swatches


Kona Bean

Recommended Posts

Hello,

 

Anyone using this add-on? I got to step H in the readme.txt, "find this line:-" does not exist:

 

H. /admin/products_attributes.php:-

 

1)=============================================

 

find this line:-

 

tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "')");

 

 

replace this with :

 

//tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "')");

//Color Swatches

tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . tep_db_input($value_price) . "','', '" . tep_db_input($price_prefix) . "','')");

//Color Swatches

 

Thanks in advance.

Link to comment
Share on other sites

Hello,

 

Anyone using this add-on? I got to step H in the readme.txt, "find this line:-" does not exist:

 

H. /admin/products_attributes.php:-

 

1)=============================================

 

find this line:-

 

tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "')");

 

 

replace this with :

 

//tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "')");

//Color Swatches

tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . tep_db_input($value_price) . "','', '" . tep_db_input($price_prefix) . "','')");

//Color Swatches

 

Thanks in advance.

You might not have the exact same code, look at when the add on was written.

 

An ounce of suck and see works wonders.

 

BTW, the add on works but you lose the ability to view larger image.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...