#1
Posted 21 April 2012 - 01:25 PM
How could I tell OSC 2.3.1 when I create new products that their images are there?
Thanks.
#2
Posted 21 April 2012 - 01:43 PM
Ken
over 20 years of computer programming experience.
#3
Posted 21 April 2012 - 02:41 PM
GemRock, on 21 April 2012 - 01:43 PM, said:
Ken
I also want to edit the products, since there are other fields need to fill out. So, how should I tell osc that the image is there?
#4
Posted 21 April 2012 - 03:35 PM
Ken
Edited by GemRock, 21 April 2012 - 03:42 PM.
over 20 years of computer programming experience.
#5
Posted 21 April 2012 - 03:52 PM
#6
Posted 21 April 2012 - 04:10 PM
Ken
over 20 years of computer programming experience.
#7
Posted 21 April 2012 - 11:39 PM
GemRock, on 21 April 2012 - 04:10 PM, said:
Ken
COMMENT OUT? sure, that is easy, i know how to do it. (You can actually leave it there.) But how to tell the system the file is there? That is my question.
#8
Posted 22 April 2012 - 12:04 PM
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
Auto Backup your Database, Easy way
Multi Images with Fancy Pop-ups, Easy way
Products in columns with multi buy etc etc
Disable any Category or Product, Easy way
Secure & Improve your account pages et al.
#9
Posted 22 April 2012 - 02:06 PM
xvoyance, on 21 April 2012 - 11:39 PM, said:
Ken
over 20 years of computer programming experience.
#10
Posted 23 April 2012 - 12:07 PM
spooks, on 22 April 2012 - 12:04 PM, said:
Could Easy Polulate support in-line input data
i.e. put my input data in the http command line like
http://www.mysite.com/catalog/easypopulate.php?product_model=1111&product_name="aasdsa"....
instead of file upload?
#11
Posted 23 April 2012 - 12:14 PM
Caution: pure use of the query string to pass data to the dBase is an invite to hackers
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
Auto Backup your Database, Easy way
Multi Images with Fancy Pop-ups, Easy way
Products in columns with multi buy etc etc
Disable any Category or Product, Easy way
Secure & Improve your account pages et al.
#12
Posted 24 April 2012 - 11:02 PM
GemRock, on 21 April 2012 - 01:43 PM, said:
Ken
Could you please tell me how to insert directly into the db? Thanks.
#13
Posted 25 April 2012 - 07:37 AM
if the image files are named in such a way that it uses the product name or model or product id, all of which are unique, then you can write a few lines of php code to insert product image name programmatically. the code can be saved as a php file and re-used every time after you FTP'ing images to server. it can be run is this way: http://www.yoursite.com/write_images_to_db.php. thats how i do it.
Ken
Edited by GemRock, 25 April 2012 - 07:37 AM.
over 20 years of computer programming experience.
#14
Posted 25 April 2012 - 11:44 PM
GemRock, on 25 April 2012 - 07:37 AM, said:
if the image files are named in such a way that it uses the product name or model or product id, all of which are unique, then you can write a few lines of php code to insert product image name programmatically. the code can be saved as a php file and re-used every time after you FTP'ing images to server. it can be run is this way: http://www.yoursite.com/write_images_to_db.php. thats how i do it.
Ken
Sure, I know all what you said. I am trying the second way, i.e. writing a PHP to insert it directly into the DB.
But my question is how to write that code?
Can you write that line directly?
#15
Posted 26 April 2012 - 01:02 AM
But why all these scripts to populate the database with product info & image details?
Either use osC's admin panel or the Easy Populate contribution.
Just sounds to me like you're trying to reinvent the wheel.
- My Toolbox ~ Adobe Web Bundle & WinMerge | Install ~ osCommerce
- Not 4 Hire ~ Please DO NOT PM me for help. I really do not have a clue what I am doing! -
- Working on a new 2.3.3 install -
#16
Posted 26 April 2012 - 01:23 AM
jhande, on 26 April 2012 - 01:02 AM, said:
But why all these scripts to populate the database with product info & image details?
Either use osC's admin panel or the Easy Populate contribution.
Just sounds to me like you're trying to reinvent the wheel.
Have you seen in a supermarket or a bookstore, which I am going to built, they use barcode scanner to scan the products and the products goes immediately into their computers, which is called "realtime".
EP is a batch processing.....People today have forgot what is "batch processing"
OSC admin panel could not retrieve the products information from libraries, such as google books or ISBNDB or OPENLIBRARY, not either their images. Furthermore, I do not want to fill out the form for 100000 books with possibility to make mistakes. 100000 books is only a mini (a scale less than nano, presumably you all know what is nano but not batch) book store!
Edited by xvoyance, 26 April 2012 - 01:33 AM.
#17
Posted 26 April 2012 - 01:54 AM
- My Toolbox ~ Adobe Web Bundle & WinMerge | Install ~ osCommerce
- Not 4 Hire ~ Please DO NOT PM me for help. I really do not have a clue what I am doing! -
- Working on a new 2.3.3 install -
#18
Posted 26 April 2012 - 02:06 AM
jhande, on 26 April 2012 - 01:54 AM, said:
I have actually finished everything, i.e. fill out the form automatically, except the last step for image, which need to insert into DB directly.
I f you can help you I can achieve that quicker.
#19
Posted 26 April 2012 - 12:41 PM
Ken
over 20 years of computer programming experience.
#20
Posted 26 April 2012 - 03:39 PM
Edited by xvoyance, 26 April 2012 - 03:44 PM.









