markchiu Posted July 13, 2004 Share Posted July 13, 2004 Hello, guys, sorry to ask this stupid question, but after i use easy populate and upload it back, i found that all of my product pictures are gone!!! Did i miss any configurations for easypopulate.php???? Any help is always appreciated ;) Quote OS-commerce is great, but with other magical contributions, that is just so "COOL"! Link to comment Share on other sites More sharing options...
markchiu Posted July 13, 2004 Author Share Posted July 13, 2004 (edited) is this true? I just searched the base and found out that if you use easy populate and download it then edit then upload it to your database.....except that your image name IS the same as the model name of that particular item....................otherwise when you upload the edited file...all images of products will be gone..and you would have to re do it one by one in admin categories... :o ...YOU MUST BE KIDDING ME! :( ...i SHOULD HAVE SEARCHED THIS BEFORE I INSTALLED EASY POPULATE... :unsure: Edited July 13, 2004 by markchiu Quote OS-commerce is great, but with other magical contributions, that is just so "COOL"! Link to comment Share on other sites More sharing options...
markchiu Posted July 13, 2004 Author Share Posted July 13, 2004 also why after i upload the edited file, then each of my products is double....sya, i have one called 123...then after upload the edited file, my 123 items is become 2-123s in my shop....why or did i set some configurations wrong????? Quote OS-commerce is great, but with other magical contributions, that is just so "COOL"! Link to comment Share on other sites More sharing options...
Guest Posted July 13, 2004 Share Posted July 13, 2004 Can you show some example of image name in original easypopulate file downloaded from and the one edited by you? Where are you uploading the products image file in your shop (directory name)? It is not necessary that image names must be after products_model names while using easypopulate. What product model numbers are you using? (example of products that gets doubled in your shop)? It happens if the product model number of already existing product in shop is 2, when you upload easypopulate file, a new product is added with model number as 20. You can try replacing $v_products_model in admin/easypopulate.php with trim($v_products_model). Quote Link to comment Share on other sites More sharing options...
markchiu Posted July 13, 2004 Author Share Posted July 13, 2004 Hello, phpgold, to answer your quesiton I upload my images by admin while i add new products, however, I believe all uploads to images (folder) directory oh, ;) i think so, because after i upload the edited file, some image names aren't the same as some products, but they somehow still show up with their products... all my products are using "YC" after with some numbers It happens if the product model number of already existing product in shop is 2, when you upload easypopulate file, a new product is added with model number as 20. You can try replacing $v_products_model in admin/easypopulate.php with trim($v_products_model). Is this the final answer can solve my problem??? ;) ......sorry just kidding, but is it really?? Thank you very much :rolleyes: Quote OS-commerce is great, but with other magical contributions, that is just so "COOL"! Link to comment Share on other sites More sharing options...
markchiu Posted July 13, 2004 Author Share Posted July 13, 2004 bump :unsure: Quote OS-commerce is great, but with other magical contributions, that is just so "COOL"! Link to comment Share on other sites More sharing options...
markchiu Posted July 13, 2004 Author Share Posted July 13, 2004 btw, is that all of $v_products_model needed to change to trim($v_products_model) ;) Quote OS-commerce is great, but with other magical contributions, that is just so "COOL"! Link to comment Share on other sites More sharing options...
Guest Posted July 13, 2004 Share Posted July 13, 2004 no bumping, for one for the other, if you would post in the support thread you would not be answering your own questions http://www.oscommerce.com/forums/index.php?showtopic=64945 Quote Link to comment Share on other sites More sharing options...
Guest Posted July 14, 2004 Share Posted July 14, 2004 Image file names are case sensitive, so they must match in your easypopulate file and on server. (*.JPG and *.jpg are different) I have changed the following instance of $v_products_model in my file: if ($v_products_model != "") { $v_products_model = trim($v_products_model); Quote Link to comment Share on other sites More sharing options...
markchiu Posted July 14, 2004 Author Share Posted July 14, 2004 hello, phpgold, thanks, now after i edit it like what you say,...and how do i check if it works fine....say won't double my each of my itmes.......i am really worried about if it would mess up my products again... :unsure: Quote OS-commerce is great, but with other magical contributions, that is just so "COOL"! Link to comment Share on other sites More sharing options...
Guest Posted July 14, 2004 Share Posted July 14, 2004 that is the reason for backing up your database immediately prior to running the ep file. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 14, 2004 Share Posted July 14, 2004 Right, Mibble! Backup of database before using EP is neccessary as a slight mistake in file may harm the entire database. I have also added the code in my easypopulate to delete the products from database, will be contributing the code shortly. However the code deletes all the products with same product id in the database, means if you have same product in different categories, it will deletes all the entries for that product from the database. It will also delete product image from the image directory, but won't delete it if the same image is attached with another product. Quote Link to comment Share on other sites More sharing options...
pcgigant24 Posted March 24, 2005 Share Posted March 24, 2005 hello phpgold. have you alredy posted the contribution? Quote Link to comment Share on other sites More sharing options...
pcgigant24 Posted March 24, 2005 Share Posted March 24, 2005 hello phpgold. have you alredy posted the contribution? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.