Contributions

Features (Category Index)
Search: 

remove preview categories.php

Hello,

This will allow you not to go through the page "Product Preview" before you create or edit a product: a huge time saver for large shopping!

I have grouped the pieces of code that I found on the French forum: http://www.oscommerce-fr.info/forum/index.php?showtopic=47954

The credit goes to Shoprun Gnidhal and only!
I just want to share it with everyone.

Warning: This addon only works for MS2.2 virgin or little changed.
If you use modules like UltraPics or another thank you to bring your code to benefit everyone ...

Personally I use:
product_tabs
Manufacturers 2
new field everywhere
FCKeditor 2.0
Header Tags Seo

and it works

Only a txt file

Expand All / Collapse All

for Big Image 9 Dec 2010

If you use Big Image :

----------------------
just below this :
----------------------

// Image champ -> products_image
if (isset($_FILES['products_image']['name']) && !empty($_FILES['products_image']['name'])) {
$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;
//
$sql_data_array['products_image'] = $products_image_name;
}
}

----------------------
add this :
----------------------

// Image champ -> products_bimage
if (isset($_FILES['products_bimage']['name']) && !empty($_FILES['products_bimage']['name'])) {
$products_bimage = new upload('products_bimage');
$products_bimage->set_destination(DIR_FS_CATALOG_IMAGES);
if ($products_bimage->parse() && $products_bimage->save()) {
$products_bimage_name = $products_bimage->filename;
//
$sql_data_array['products_bimage'] = $products_bimage_name;
}
}

----------------------

No more file in attachment.

Enjoy !

remove preview categories.php 9 Dec 2010

Note: Contributions are used at own risk.