Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Select Product Image Directory & Instant Update For Products


spooks

Recommended Posts

Hi guys,

 

 

I installed this great addon & it works well, thanks for sharing it.

 

I just have a question about the default images folder.

I think that all productimages has to been stored in 1 directory with subdirectories & not all in images.

Therefore I create a folder "products" in /images/.

To avoid mistake I would like that the default folder is that folder.

Could somebody help me to fix that?

 

/* BOF  Select Product Image Directory */
  $images_dir = DIR_WS_IMAGES; // default catalog images folder;
  $exclude_folders = array("banners","default","icons","mail","infobox","js","card_acceptance","slideshow","social_bookmarks","thumbs"); // folders to exclude from adding new images
 $root_images_dir = DIR_FS_CATALOG .  $images_dir;
/* EOF  Select Product Image Directory */
 
thanks in advance for help
 
regards
Camella
Link to comment
Share on other sites

  • 2 years later...

Hi.

Thanks for the great addon, i had installed the newest version on osc 234.1 version and it works perfectly.

It can create the image subfolders, is there a way that i can delete from the admin section if i need to delete the subfolder, instead of login the file manager?

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

@spooks

Thank you for the great addon! I installed it on 234.1 and 234.1CE (BS) version.

Repeat the question + new questions:

1. Can add delete functions to be able to delete  the folder created and whatever images saved within the folder? how to add the code?

2. Found that the new made folder it will save under images folder, which works great, however, it doesn't seems saved on database, not sure the reason...so how to make it also save into database?

Link to comment
Share on other sites

  • 11 months later...

Hi having trouble getting this to work under frozen BS php7
It all appears to be working but won't put the image in to the directory I choose or a new one
I change
$images_dir = DIR_WS_IMAGES;  to $images_dir = 'images/';
changed all the post and get to 
$_POST and $_GET
The instruction regards the below don't make much sense as I can't find that line but found $products_image = new upload but there is a huge amount of code down to the next break;

Find(366)
case 'new_product_preview':

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...