Skip to content

How do I show colours and materials with a photo instead of their name?

A texture is the image of a colour, a type of fabric, a wool or a ceramic finish. With it, the shopper chooses by clicking a photo instead of reading ‘Blue border’ in a list. They are prepared in Digital channels → Online store, Colours and textures tab. The ERP publishes them to PrestaShop stores.

What do I need before I start?

To have set up the size and colour values you use, in Warehouse → Sizes and colours. The Colours and textures tab doesn’t create values: it only gives them an image.

You don’t need to have published anything yet. You can prepare the textures before publishing the first item that uses them.

What do I see in the Colours and textures tab?

Two columns.

On the left, Size and colour values as a tile grid: each value is a button with its swatch in view, its code and its description. What each button shows is exactly what the store would show:

The values are grouped by dimension —Size, Colour, Model…— and each group folds up when you click its title. The groups that aren’t colours start folded: hardly any size has an image. Above the grid there is a search box by key, code or description.

On the right, Texture: the gallery of the value you have selected.

How do I give a colour or a material its image?

  1. Click the value in the grid on the left.
  2. Drag the image onto the strip on the right, or click to choose it.

That’s it. The image becomes the cover, and the cover is the one that goes to the store: it is the button the buyer will see. It is also the one you will see in the grid.

You can upload several images to the same value —to have them to hand or to compare—, but only the cover is published. To change which one it is, click the star on the one you want.

The formats and the size are the same as in the rest of the catalogue: JPG, PNG, WebP, GIF and BMP, up to 8 MB. A BMP is converted to PNG when it is uploaded.

What if I remove a value’s texture?

Delete its image in the gallery on the right. In the next publication, the ERP removes it from the store too and gives the value back its colour, the one it has in Warehouse → Sizes and colours. If the value has no colour, the store shows its name.

The same happens with a texture you brought in from the store: if you remove it in the ERP, it is removed from the store.

If you delete the whole value in Sizes and colours, its texture stays in the store as it was.

What if my store already had its textures in place?

Bring them into the ERP with Bring from the store, the button at the top right of the grid. The ERP reads the textures the store has and puts each one on the ERP value that has the same name, ignoring capitals and accents: ‘BLUE BORDER’ in the store goes to ‘Blue border’ in the ERP.

When it finishes it tells you how many it has brought in and which ones it couldn’t place:

What was brought in isn’t sent back to the store: it already has it. It only goes again if you change the image in the ERP.

Today they can only be brought in from PrestaShop.

What if a value has no texture?

Nothing happens: the store keeps showing its name, or its colour if it has one assigned. Adding a texture is optional, value by value.

Which stores does it work with?

In PrestaShop, with the store’s FTP access. PrestaShop keeps the textures as files and doesn’t let them be uploaded through its connection with the ERP, so the ERP leaves them by FTP in the folder where PrestaShop looks for them. For that, in Digital channels → Online store → Settings, fill in FTP user and FTP password in the store credentials, and in the options the store folder if it isn’t the FTP root (in Plesk, "FtpCarpeta": "/httpdocs"). With that, the image is published on its own with the rest of the catalogue. If they are missing, the sync log says so and the store keeps showing the name or the colour.

In WooCommerce and Shopify, the swatches are set from the store itself. Shopify has its swatches on each product’s option values; WooCommerce provides them with a swatches plugin. In both, the image is uploaded there.

You can still prepare the textures in the ERP for those stores —they are saved and you see them in the grid—; the sync log says that they don’t go, and the store shows the value’s name or its colour.

When does the image reach the store?

In the next catalogue sync. You can force it with Publish changes, in the top bar.

Textures are sent before the categories and the products, because the items hang from them.

Changing a texture’s image republishes only that texture, not the whole catalogue. And if you don’t touch it, nothing is sent again.

When it publishes the texture, the ERP removes the colour that value had in PrestaShop. If a value has a colour and a texture at the same time, the store theme shows the colour and the image isn’t seen. With the texture in place, the colour is no longer needed.

If something goes wrong

What you seeWhat has happenedWhat to do
‘No size or colour values have been created.’You haven’t created any yetCreate them in Warehouse → Sizes and colours
‘The size or colour value does not exist.’It was deleted while you were workingReload the screen
In the log: ‘WooCommerce/Shopify has no textures…’In those stores the swatches are set from the store itselfUpload them there; otherwise the shop window will show the name or the colour
I upload the image and it doesn’t change in the storeUploading the image saves it in the ERP; it reaches the store in the next catalogue syncClick Publish changes or wait for the next cycle
The texture goes but the store still shows textThe PrestaShop theme doesn’t draw that attribute as a swatchCheck in PrestaShop that the attribute group is of type ‘Texture’

See also: Prepare the store catalogue · Connect my online store

More about Online shop