PDA

View Full Version : Products options added to product edit page



michael_s
07-03-2007, 06:43 PM
in install step 3:
*** Step 3 ***
IN THIS SECTION:
if (USE_CACHE == 'true') {
tep_reset_cache_block('categories');
tep_reset_cache_block('also_purchased');
}

tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id));
}
break;
case 'copy_to_confirm':

....
REPLACE:
tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id));
WITH:
// commented and replaced for product attributes contrib
// tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id));
tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id . '&action=new_product'));
// end replacement
*** End Step 3 ***
when click update button it returns product edit page Skip step 3.

More... (http://www.oscommerce.com/community/contributions,1538)