Hi all
I am new to this game, so pls stay with me!
I am trying to upload ADDITIONAL images to my products..
When up loading additional images for the products, it does not keep existing images, it discards the old ones. You have to add the links to every image each time you want to add an image. is this correct or am I missing a trick?
Stu
I am new to this game, so pls stay with me!
I am trying to upload ADDITIONAL images to my products..
When up loading additional images for the products, it does not keep existing images, it discards the old ones. You have to add the links to every image each time you want to add an image. is this correct or am I missing a trick?
Stu
thanks, found the difference:
if (isset($this->request->post['product_image'])) {
$data['product_image'] = array_merge($data['product_image'], $this->request->post['product_image']);
}
...
daniel, is there a way to use something like:
http://fisheye.freeswitch.org/browse/Fr ... 4&r2=14575
where we could tell all the changes?
thanks
if (isset($this->request->post['product_image'])) {
$data['product_image'] = array_merge($data['product_image'], $this->request->post['product_image']);
}
...
daniel, is there a way to use something like:
http://fisheye.freeswitch.org/browse/Fr ... 4&r2=14575
where we could tell all the changes?
thanks
thanks, i just noticed it. that's why i came on to write that it didn't work 
it actually still doesn't work for me:
if (isset($data['product_image']) && isset($this->request->post['product_image'])) {
$data['product_image'] = array_merge($data['product_image'], $this->request->post['product_image']);
}

it actually still doesn't work for me:
if (isset($data['product_image']) && isset($this->request->post['product_image'])) {
$data['product_image'] = array_merge($data['product_image'], $this->request->post['product_image']);
}
411729 Query INSERT INTO product_image SET product_id = '74', image = '1.jpg'
that's when i upload 1.jpg into a product
i go again to the product - > image and add image, select 2.jpg
i get this in the log
411736 Query INSERT INTO product_image SET product_id = '74', image = '2.jpg'
that's when i upload 1.jpg into a product
i go again to the product - > image and add image, select 2.jpg
i get this in the log
411736 Query INSERT INTO product_image SET product_id = '74', image = '2.jpg'
Will there be a patch for this bug because I can't keep uploading the whole release each time because I make many changes 

http://www.virusclothing.co.uk / http://www.viruselectronics.co.uk
theses are not errorssmallpox wrote:411729 Query INSERT INTO product_image SET product_id = '74', image = '1.jpg'
that's when i upload 1.jpg into a product
i go again to the product - > image and add image, select 2.jpg
i get this in the log
411736 Query INSERT INTO product_image SET product_id = '74', image = '2.jpg'
they are just sql queries.
OpenCart®
Project Owner & Developer.
daniel, i understand.. but when comparing to 1.2.8, 1.2.8 adds the filenames through sql queries, your latest patched 1.3.2 still does not work. i've patched and tried it on a new installation...
i'm just showing you that if you look at http://forum.opencart.com/viewtopic.php?f=20&t=5793 you can see what 1.2.8 does and you can see what 1.3.2 does through sql queries (i'm sure you already know)
i'm just showing you that if you look at http://forum.opencart.com/viewtopic.php?f=20&t=5793 you can see what 1.2.8 does and you can see what 1.3.2 does through sql queries (i'm sure you already know)
the problem is you have 2 types of image data.
one is the files and the other is the post data.
files have to used to upload new images and post data stores the files names of the images already being used.
so the fix should be to merge both sets of data.
i'll keep looking into this.
I think I have an idea how to fix it.
one is the files and the other is the post data.
files have to used to upload new images and post data stores the files names of the images already being used.
so the fix should be to merge both sets of data.
i'll keep looking into this.
I think I have an idea how to fix it.
OpenCart®
Project Owner & Developer.
Who is online
Users browsing this forum: No registered users and 73 guests