pingy666 Posted November 3, 2006 Posted November 3, 2006 Hi, im using this "short product description" contrib http://www.oscommerce.com/community/contributions,1210 and it works great. thanks a lot. what i want (if possible) is a short descprtion in the shopping cart afte a customer have added an item. is this possible? i've been looking in shopping_cart.php but cant figure it out. newbie in php. anyone??
pyramids Posted November 3, 2006 Posted November 3, 2006 yes it can be done - here is a quick rough (I am sure I missed something) idea first you would need to update the catalog/include/classes/shopping_cart.php find the function "get_products" add " , pd.products_description" to the query add " 'description' => $products['products_description'], " to the $products_array[] array in catalog/shopping_cart.php (one idea for placement) replace: $products_name .= ' </td>' . ' </tr>' . '</table>'; with something like: if ($products[$i]['description']){ $products_name .= '<br>' . stripslashes($products[$i]['description']) . '</td></tr></table>'; }else{ $products_name .= '</td></tr></table>'; } I obviously haven't tested it, hope this helps....
Recommended Posts
Archived
This topic is now archived and is closed to further replies.