Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

716
 
718
 
718
 
update-20060817.txt
_> 1414 Resize Images To Round Numbers
  1515 Use The Correct Country Name Value When Formatting Addresses
  1616 Prevent The Session ID Being Passed In Tell-A-Friend E-Mails
<>  17+Properly Remove Deleted Products That Exist In Shopping Carts
1718 
  1819 ## Update 051113 (13th November 2005)
  1920 
     
 !
305306 
  306307 $email_body .= sprintf(TEXT_EMAIL_LINK, tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'], 'NONSSL', false)) . "\n\n" .
  307308 
<>  309+------------------------------------------------------------------------------
   310+Properly Remove Deleted Products That Exist In Shopping Carts
   311+http://www.oscommerce.com/community/bugs,3193
   312+http://svn.oscommerce.com/trac/changeset/717
   313+------------------------------------------------------------------------------
   314+
   315+Problem:
   316+
   317+Deleting products via the Administration Tool would not successfully remove the product from customers shopping carts if the product had attributes.
   318+
   319+Solution:
   320+
   321+The following lines must be replaced in catalog/admin/includes/functions/general.php:
   322+
   323+Lines 900-901, from:
   324+
   325+tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where products_id = '" . (int)$product_id . "'");
   326+tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where products_id = '" . (int)$product_id . "'");
   327+
   328+to:
   329+
   330+tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where products_id = '" . (int)$product_id . "' or products_id like '" . (int)$product_id . "{'");
   331+tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where products_id = '" . (int)$product_id . "' or products_id like '" . (int)$product_id . "{'");
   332+
<_ 308333 ###########################
  309334 ###### Update 051113 ######
  310335 ###########################