RE: Easy Populate and Image Mods
interbikes <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.contributions |
|---|---|
| Message-ID | <463de0177b28f40a69c13cb6f62d7dc0@osCommerce-Forums> |
This message was sent from: Contributions http://forums.oscommerce.com/viewtopic.php?p=226659#226659 ---------------------------------------------------------------- I am having the same problem. I use the sm / med / lrg images contribution, and within the database the tables are not called "mimage" and "bimage" but rather "mediumimage" and "largeimage" so I have made that alteration within the script... So I began by altering the following to suite my needs: [code]global $default_these; $default_these = array( 'v_products_image', 'v_products_mediumimage', 'v_products_largeimage', #'v_products_subimage1', #'v_products_bsubimage1', #'v_products_subimage2', #'v_products_bsubimage2', #'v_products_subimage3', #'v_products_bsubimage3', 'v_categories_id', 'v_products_price', 'v_products_quantity', 'v_products_weight', 'v_date_avail', 'v_instock', 'v_tax_class_title', 'v_manufacturers_name', 'v_manufacturers_id', 'v_products_dim_type', 'v_products_length', 'v_products_width', 'v_products_height' );[/code] I have removed the "." from like 1625(ish) aswell as the comments that need removing: [code] // unmcomment these lines if you are running the image mods $query .= $v_products_mediumimage . '", "' . $v_products_largeimage . '", "' #. $v_products_subimage1 . '", "' #. $v_products_bsubimage1 . '", "' #. $v_products_subimage2 . '", "' #. $v_products_bsubimage2 . '", "' #. $v_products_subimage3 . '", "' #. $v_products_bsubimage3 . '", "' [/code] and [code]// uncomment these lines if you are running the image mods $query .= '" ,products_mediumimage="'.$v_products_mediumimage. '" ,products_largeimage="'.$v_products_largeimage; #'" ,products_subimage1="'.$v_products_subimage1. #'" ,products_bsubimage1="'.$v_products_bsubimage1. #'" ,products_subimage2="'.$v_products_subimage2. #'" ,products_bsubimage2="'.$v_products_bsubimage2. #'" ,products_subimage3="'.$v_products_subimage3. #'" ,products_bsubimage3="'.$v_products_bsubimage3;[/code][/code] [b] But it still wont work[/b]