Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


pingy666

Recommended Posts

Posted

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

Archived

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

×
×
  • Create New...