Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

possible to have a "short description" in shopping cart?


pingy666

Recommended Posts

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??

Link to comment
Share on other sites

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....

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...