the current folder name is "product images" (yes, with a space) so the image link looks like this:
http://www.example.com/image/cache/data/product images/taco.jpg
I want to change it to "product-image" (with no space)
http://www.example.com/image/cache/data/product-images/taco.jpg
When I renamed the folder to include the dash, using the built-in tool to upload or select images, the name of the older changes, but the links to my product images do not.
Any thoughts on how I can fix it without having to re-establish all my product image links so they include the "-" now?
I tried clearing out the cache under system/cache but that didn't work.
Thank you.
product%20images due to the way your server and browser do handle a spave in a url.
you can try it with renaming the seo url of one off your products, replace your hypens with a space and check the url to that product.
Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com
I assume this is handled somehow in the database

Image folders are defined bij absulute path in config.php files and the actual file to the images on your server.
at this moment the path to the images for your products is set in the database, so opencart knows whre to find them.
if you would relocate the image path, youre product would end up without any images, as path in databse is different to actual path on server.
Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com
edit config.php in root and admin folder so it will point to your renamed image folder.
iether edit each product and reasign the corresponding picture to it, or much faster, edit your database and alter all image path in one go
Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com
Does "assigning" it withing opencart do something different? If it did, wouldn't it be listed in the database?
Thanks.
Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com
More information:
I found that the image URL's are located in 2 different tables in the database.
gtk_product
gtk_product_image
A question, I'm sure there's a way I can replace
data/product images/imagenamesthatvary.jpg
So it reads (with the dash):
data/product-images/imagenamesthatvary.jpg
Using some sort of command, like this in PHPAdmin?:
Code: Select all
update gtk_product set image = replace(image, 'data/product images/', 'data/product-images/');
Thoughts?
its possible to update a database field with a sql comand as described, it will update all field at once, saving loads off time.
Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com
Worked well, and the image URL's have changed from "data/product images/" to "data/product-images/" using the above referenced coding
Just in case someone needs this in the future... I went to the tables
gtk_product
gtk_product images
And changed the variables in red to match the table, fields that needed to be updated and what needed to be found and replaced with:
update gtk_product set image = replace(image, 'data/product images/', 'data/product-images/');
Thanks victorj for the help!
Users browsing this forum: No registered users and 85 guests