Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webservice: enable color attribute image texture upload #14704

Open
Tracked by #10069
muten84 opened this issue Jul 17, 2019 · 2 comments
Open
Tracked by #10069

Webservice: enable color attribute image texture upload #14704

muten84 opened this issue Jul 17, 2019 · 2 comments
Labels
Attributes Label: Which BO under menu is concerned Feature Type: New Feature Image Label: Which BO under menu is concerned Needs Specs Status: issue needs to be specified Waiting for PM Status: action required, waiting for product feedback WS Category: Web Service

Comments

@muten84
Copy link

muten84 commented Jul 17, 2019

I'm using webservice API to upload images on Prestahop. I can upload many types of images except the color attribute texture image.

I think the WebserviceSpecificManagementImagesCore class could be extended to include this kind of images too.

The only way to upload these types of image is to manually upload them from AdminController dedicated section.

@khouloudbelguith
Copy link
Contributor

Hi @muten84,

Thanks for your report.
In PS1.7 & PS1.6, Several types of images are available.

  • General shop images
  • Product images
  • Category images
  • Customization images
  • Manufacturer images
  • Supplier images
  • Store images

They can be reach using the following links:

  • /api/images/general
  • /api/images/products
  • /api/images/categories
  • /api/images/customizations
  • /api/images/manufacturers
  • /api/images/suppliers
  • /api/images/stores

As you can see in our documentation: http://doc.prestashop.com/display/PS16/Chapter+9+-+Image+management
But the color attribute texture image doesn't exist.
Ping @marionf @colinegin can we add this type of image?

Thanks!

@khouloudbelguith khouloudbelguith added Image Label: Which BO under menu is concerned Needs Specs Status: issue needs to be specified Waiting for PM Status: action required, waiting for product feedback WS Category: Web Service Improvement Type: Improvement labels Jul 17, 2019
@LouiseBonnard LouiseBonnard assigned ghost Aug 6, 2019
@sam-pires sam-pires assigned sam-pires and unassigned ghost Nov 17, 2019
@ouday-lzr
Copy link

ouday-lzr commented Jul 19, 2021

Hi @muten84
you can get the color attribute texture image , it's not really elegant, but that work :
URL : {{base_URL}}/img/co/{{id_product_option_values}}.jpg
EXAMPLE : https://example.com//img/co/1.jpg

@marionf marionf added Feature Type: New Feature and removed Improvement Type: Improvement labels Dec 28, 2021
@MatShir MatShir added the Attributes Label: Which BO under menu is concerned label Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Attributes Label: Which BO under menu is concerned Feature Type: New Feature Image Label: Which BO under menu is concerned Needs Specs Status: issue needs to be specified Waiting for PM Status: action required, waiting for product feedback WS Category: Web Service
Projects
None yet
Development

No branches or pull requests

6 participants