Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Esay populate question


Guest

Recommended Posts

Hi,

I have installed EP and got it work fine. Every things works fine for me.

I have one question regarding setting the image directory for the products.

 

Currently the default EP image directory is /catalog/images/.

Now in my case i would have made directories under /catalog/images/ based on my catergory names e.g.

My directories are:

/catalog/images/caterory1/ ----> this holds all the images for caterory1 products

/catalog/images/caterory2/ etc etc....

 

All the directories are created manually by me at the moment and matches the exact catergory name

 

Now is it possible to include in the existing EP script so that the images directory variable is updated on the fly. i.e i want all the products in catergory1 to have their images stored in /catalog/images/caterory1/ directory....

 

so the code should look somtething like this

 

image_dir=/catalog/images/$caterory_name/ this is value that is stored in the database for field labeled as products_image.....

 

 

I have been looking at the EP code does any one where abouts in the existing can i add this...

Can you please provide some suggestions....i am o.k to add the code myself....

 

Thanks for you help

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.
Note: Your post will require moderator approval before it will be visible.

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...