AbanteCart Community

eCommerce construction => Installation and Configuration => Topic started by: leonhard on November 11, 2020, 04:13:52 PM

Title: Product Image Linking
Post by: leonhard on November 11, 2020, 04:13:52 PM
So far this is one of the best shopping Carts I have found and have only run into this one problem.

I am dealing with 33000 + products and twice as many images and it need to be updated at least 4 times a year.

Currently I have all the product images in one root directory images/prod/.

The image names are the same as the model number ending with a _O _L _S to determine the size.

I usually have the shopping cart in it's own directory and a development cart in a different directory. With the images in it's own root directory I don't need thousands of duplicate copies in each shopping cart.

I would like to keep them there

I need to find a way to change the product image path to ../images/prod/ if possible.

If that will not work, then I would like go in and change the page link code to something like

Mydomain/images/prod/  $model_O.jpg

I'm sure I can eventually find where I need to do that. But would like to speed up the process by asking people that are already familiar with this Shopping Cart.

What pages should I be looking at?

I greatly appreciate any help that can be provided.
Title: Re: Product Image Linking
Post by: Basara on November 12, 2020, 12:17:54 AM
Hello.
You can do this with CSV export import but the backup database first
https://abantecart.atlassian.net/wiki/spaces/AD/pages/15007876/Import#Import-Example7:UpdateProduct(addimagestoproduct)
Title: Re: Product Image Linking
Post by: ixl on September 06, 2025, 04:41:15 AM
Hi Tim

Did you manage to resolve this at all?

I've been trying to do the same thing.  Even reviewing the customers preview of their order which actually shows the image against the product purchase line, but using this code so far hasnt worked...  yet.

Maybe someone has since sorted it but if this is known or could be shared it would be apprecaited.
Title: Re: Product Image Linking
Post by: Quistrace on September 30, 2025, 12:56:02 AM
Quote from: Basara on November 12, 2020, 12:17:54 AMHello.
You can do this with CSV export import but the backup database first
https://abantecart.atlassian.net/wiki/spaces/AD/pages/15007876/Import#Import-Example7:UpdateProduct(addimagestoproduct)
You don't need to duplicate all the images. You can update the image path in the template or config files to point directly to ../images/prod/ (or use the full URL like mydomain/images/prod/). Check the product display template (usually in the product info page) and any global config file that defines the image directory. That's where you'll want to adjust the path so it doesn't look only in the default cart image folder.