Jump to content
VJ

Easy Populate & Products Attributes

Recommended Posts

make sure there are no spaces in the name of the file you uploaded, and you must use exact spelling, etc, if you have a cap letter it must be entered asa cap letter, etc


John Oligario

 

Knowledge Base Contributions

Share this post


Link to post
Share on other sites

ok now that you gave me the store name, in your easypopulate.php file you posted you need to add /catalog in front of /temp/ in the top area of the file.


John Oligario

 

Knowledge Base Contributions

Share this post


Link to post
Share on other sites

Here is the error that I get when i add catalog to /temp/.

 

Filename: WorldofProducts.txt

 

Warning: file(): Unable to access /home/content/t/a/m/tamekalawrence/html/catalogcatalog/temp/WorldofProducts.txt in /home/content/t/a/m/tamekalawrence/html/catalog/admin/easypopulate.php on line 672

 

Warning: file(/home/content/t/a/m/tamekalawrence/html/catalogcatalog/temp/WorldofProducts.txt): failed to open stream: No such file or directory in /home/content/t/a/m/tamekalawrence/html/catalog/admin/easypopulate.php on line 672

 

Warning: Invalid argument supplied for foreach() in /home/content/t/a/m/tamekalawrence/html/catalog/admin/easypopulate.php on line 677

Share this post


Link to post
Share on other sites

how is your configure.php file setup? you are getting two catalogs and should only get one here. easy populate is very tempermental and needs things setup properly.


John Oligario

 

Knowledge Base Contributions

Share this post


Link to post
Share on other sites

Found it, here it is:

 

<?php

/*

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://www.warminspirations.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.warminspirations.com');

define('HTTPS_CATALOG_SERVER', 'XXXXX');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/content/t/a/m/tamekalawrence/html/catalog'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', '/home/content/t/a/m/tamekalawrence/html/catalog/admin/');

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', '/home/content/t/a/m/tamekalawrence/html/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', 'XXXXX');

define('DB_SERVER_USERNAME', 'XXXXX');

define('DB_SERVER_PASSWORD', 'XXXXX');

define('DB_DATABASE', 'XXXX');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Share this post


Link to post
Share on other sites

this is what is in server info

 

Server Host: () Database Host: mysql7.secureserver.net (10.0.6.9)

Server OS: Database: MySQL 4.0.20-max-log

Server Date: 06/15/2004 17:56:07 Datebase Date: 06/15/2004 17:54:49

Server Up Time:

 

HTTP Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2634 mod_ssl/2.8.16 OpenSSL/0.9.7a

PHP Version: 4.3.2 (Zend: )

Share this post


Link to post
Share on other sites

you have to do a search for document_root, once you have that up, do an edit/find and search for document_root

 

reason for this, is you getting the double catalog


John Oligario

 

Knowledge Base Contributions

Share this post


Link to post
Share on other sites
this is what is in server info

 

Server Host: () Database Host: mysql7.secureserver.net (10.0.6.9)

Server OS: Database: MySQL 4.0.20-max-log

Server Date: 06/15/2004 17:56:07 Datebase Date: 06/15/2004 17:54:49

Server Up Time:

 

HTTP Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2634 mod_ssl/2.8.16 OpenSSL/0.9.7a

PHP Version: 4.3.2 (Zend: )

This is everything on the server info page. I don't need to search, because there is not alot of info on the page.

Share this post


Link to post
Share on other sites

it should actually be about 2 or 3 pages long.

 

actually i found it, in your admin configure.php

 

define('DIR_FS_DOCUMENT_ROOT', '/home/content/t/a/m/tamekalawrence/html/catalog');

 

needs to be:

 

define('DIR_FS_DOCUMENT_ROOT', '/home/content/t/a/m/tamekalawrence/html/');

 

then in your easy populate put in /catalog/temp/

Edited by Mibble

John Oligario

 

Knowledge Base Contributions

Share this post


Link to post
Share on other sites
if you browse back to about page 10 or so, you will find my easy populate php script which has additional fields, you can use that as a reference to yours and modify it respectively.

Mibble,

 

I was wondering if you or some other knowledgable person could assist me to get the EP working with the downloads problem I'm having?

 

I had a look at your code and spent two days trying to figure it out.:o I don't know my PHP/SQL well enough to figure out what I need to do. :(

 

To break it down I need to have EP recognise (download and upload) the appropriate info from the table - products_attributes_download.

 

products_attributes_filename - the filename of the download eg: ambience.zip

products_attributes_maxdays - max days download is available eg: 2

products_attributes_maxcount - max number of downloads eg: 4

 

Would you (or someone) be able to help me out please?

 

- Simon

Share this post


Link to post
Share on other sites

adding an attribute via ep is not the easiest thing to do, how many attributes do you have to add?

 

have you modified the code to reflect the download option?

 

yes, that one you had was a needle in the haystack


John Oligario

 

Knowledge Base Contributions

Share this post


Link to post
Share on other sites

Sorry Tameka, that is meant for Castle. For yours I am waiting to see how many attributes you have. there is EP-GNA, however I ran into a field limitation with it.


John Oligario

 

Knowledge Base Contributions

Share this post


Link to post
Share on other sites

No problem at all...is the attributes info something that I give you or are you looking elsewhere in something that I have previously given? What is a field limitation, and how can I help?

Share this post


Link to post
Share on other sites

I have to close my eyes. I have been working on this for almost 12 hours without a good break. I will revisit this tomorrow. I will try to post to you then, if you are around. Thank you soooo much for your help. It is really appreciated. Please inform if there is something that I can do for you.

 

Tameka in MD

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×