Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Populate 2.76 and Products Import from CSV File v2.0


Recommended Posts

Hello all :D I need some help to get Easy Populate 2.76 to import images via a web address like Products Import from CSV File v2.0 can. I have Easy Populate 2.76 working but I need it to get it's images via a http:// address when I put the web address in for the images in the the Easy Populate import file they don't appear like they do with Products Import from CSV File v2.0. With Products Import from CSV File v2.0 you put in the http://address and it puts the image in no problems. With Easy Populate 2.76 you put in the http://address and it puts the image don't work. Any ideas how to get this working?

Link to comment
Share on other sites

ok a bit of an update my so called friend said I only need to modify one of the 2 php files in the easy populate mod to get it to import url's as images and he said it's only one line of code but he won't tell me! Some friend hey? :lol: has anyone got any ideas of what line he's talking about?

Link to comment
Share on other sites

ok a bit of an update my so called friend said I only need to modify one of the 2 php files in the easy populate mod to get it to import url's as images and he said it's only one line of code but he won't tell me! Some friend hey? :lol: has anyone got any ideas of what line he's talking about?

 

Hi Matt,

 

Open the easypopulate.php file found in your admin folder of the module install files.

 

Look for this section here:

 

// ****************************************
// Froogle configuration variables
// Here are some links regarding Bulk uploads
// http://www.google.com/base/attributes.html
// http://www.google.com/base/help/custom-attributes.html
// ****************************************

// **** Froogle product info page path ****
// We can't use the tep functions to create the link, because the links will point to the 
// admin, since that's where we're at. So put the entire path to your product_info.php page here
define ('EP_FROOGLE_PRODUCT_INFO_PATH', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . "http://www.URL.com/product_info.php");

// **** Froogle product image path ****
// Set this to the path to your images directory
define ('EP_FROOGLE_IMAGE_PATH', HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . "http://www.URL.com/images/");

// **** Froogle - search engine friendly setting
// if your store has SEARCH ENGINE FRIENDLY URLS set, then turn this to true
// I did it this way because I'm having trouble with the code seeing the constants
// that are defined in other places.
define ('EP_FROOGLE_SEF_URLS', false);  // default is false

// **** Froogle Currency Setting
define ('EP_FROOGLE_CURRENCY', 'USD');  // default is 'USD'

// ****************************************
// End: Froogle configuration variables
// 

 

 

Change the two lines of code found at line 325 and 329 to point to the correct URL.

I had to add the ending at line 329 "http://www.URL.com/images/") for the code to work properly.

 

That should be all.

 

Let me know if it works out for you.

 

~Lucille

Link to comment
Share on other sites

Hi Matt,

 

Open the easypopulate.php file found in your admin folder of the module install files.

 

Look for this section here:

 

// ****************************************
// Froogle configuration variables
// Here are some links regarding Bulk uploads
// http://www.google.com/base/attributes.html
// http://www.google.com/base/help/custom-attributes.html
// ****************************************

// **** Froogle product info page path ****
// We can't use the tep functions to create the link, because the links will point to the 
// admin, since that's where we're at. So put the entire path to your product_info.php page here
define ('EP_FROOGLE_PRODUCT_INFO_PATH', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . "http://www.URL.com/product_info.php");

// **** Froogle product image path ****
// Set this to the path to your images directory
define ('EP_FROOGLE_IMAGE_PATH', HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . "http://www.URL.com/images/");

// **** Froogle - search engine friendly setting
// if your store has SEARCH ENGINE FRIENDLY URLS set, then turn this to true
// I did it this way because I'm having trouble with the code seeing the constants
// that are defined in other places.
define ('EP_FROOGLE_SEF_URLS', false);  // default is false

// **** Froogle Currency Setting
define ('EP_FROOGLE_CURRENCY', 'USD');  // default is 'USD'

// ****************************************
// End: Froogle configuration variables
// 

 

 

Change the two lines of code found at line 325 and 329 to point to the correct URL.

I had to add the ending at line 329 "http://www.URL.com/images/") for the code to work properly.

 

That should be all.

 

Let me know if it works out for you.

 

~Lucille

Getting better with mods but no programmer am I.

Link to comment
Share on other sites

  • 2 weeks later...

Hey, i am struggling with the same problem. I have followed your instructions on editing the easypopulate php file - there are just some things am unsure of

 

I copied your code example word for word but it hasn't worked. I guess I need to edit the added code to say 'fragrancex.com/images'??

 

I tried this except my image URL's dont follow the same format, there are many sub pages eg: fragrancex.com/***/****/images/***/***.jpg

 

I tried using this URL up to the last slash (/) before the image name but this failed also.

 

Also for the editing on line 325 is this necessary if my product info isn't sourced from a URL. its only my images.

 

Any help would be greatly appreciated.

 

Thanks

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