Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need help with 2 small issues(displaying weight & removing items from cart)


TEF

Recommended Posts

sup everyone, i have finished my install, and have added payment methhods and products, but i'm having 2 small issues and i hope some one here can help...

 

first issue is once i get items in the cart i cant remove them, i try by cliking the remove box, and updating cart, but product remains there.

 

second issue is i'm trying to get the weight to be displayed on the "product info box contents"(this is the box on the right side inside the admin area. i hav been trying to to use the sme format as whats there already, but i just cant get it to work...

 

here is the original code(no weight display)

 

// product info box contents
		$heading[] = array('text' => '<b>' . tep_get_products_name($pInfo->products_id, $languages_id) . '</b>');

		$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=new_product') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=delete_product') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=move_product') . '">' . tep_image_button('button_move.gif', IMAGE_MOVE) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=copy_to') . '">' . tep_image_button('button_copy_to.gif', IMAGE_COPY_TO) . '</a>');
		$contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($pInfo->products_date_added));
		if (tep_not_null($pInfo->products_last_modified)) $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($pInfo->products_last_modified));
		if (date('Y-m-d') < $pInfo->products_date_available) $contents[] = array('text' => TEXT_DATE_AVAILABLE . ' ' . tep_date_short($pInfo->products_date_available));
		$contents[] = array('text' => '<br>' . tep_info_image($pInfo->products_image, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br>' . $pInfo->products_image);
		$contents[] = array('text' => '<br>' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($pInfo->products_price) . '<br>' . TEXT_PRODUCTS_QUANTITY_INFO . ' ' . $pInfo->products_quantity);
					$contents[] = array('text' => '<br>' . TEXT_PRODUCTS_AVERAGE_RATING . ' ' . number_format($pInfo->average_rating, 2) . '%');
	  }
	} else {

 

and i tryed adding this line to it, but although the text shows, the weight does not...

 

$contents[] = array('text' => '<br>' . TEXT_PRODUCTS_WEIGHT . ' ' . $pInfo->products_weight);

 

what am i doing wrong here? please help me out...

 

thank you

 

E

Link to comment
Share on other sites

ok my first problem with deleting products was solved by using "Remove Product From Cart Button" contrib :) but still could really use some help with this product weight issue...be much apreciated...

 

thank you

E

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...