Guest Posted February 16, 2006 Posted February 16, 2006 Is there anyway I can remove preview when adding new products to my store. I want to just click update and have the product entered rather than having to go via the preview screen first. Any help would be much appreciated..
Guest Posted February 16, 2006 Posted February 16, 2006 Repost the variables of the product's form and do a tep_redirect at the new_product_preview case in the catalog\admin\categories.php. so you could try to change this: case 'new_product_preview': // copy image only if modified $products_image = new upload('products_image'); $products_image->set_destination(DIR_FS_CATALOG_IMAGES); if ($products_image->parse() && $products_image->save()) { $products_image_name = $products_image->filename; } else { $products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : ''); } break; to this: case 'new_product_preview': // copy image only if modified $products_image = new upload('products_image'); $products_image->set_destination(DIR_FS_CATALOG_IMAGES); if ($products_image->parse() && $products_image->save()) { $products_image_name = $products_image->filename; } else { $products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : ''); } reset($HTTP_POST_VARS); while (list($key, $value) = each($HTTP_POST_VARS)) { if (!is_array($HTTP_POST_VARS[$key])) { echo tep_draw_hidden_field($key, htmlspecialchars(stripslashes($value))); } } tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $categories_id)); break; Havent tested the code of course so backup and try it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.