Unable to create the product with the provided default image
Written By
Pooja Bhambani
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
-
Steps to reproduce:
1. Start Liferay DXP 7.4
2. Navigate to Document and Media.
3. Upload an image.
4. Get the fileEntryId of the image.
5. Navigate to system settings > Catalog (in the first block Commerce).
7. Choose > Default Catalog Image.
8. Provide fileEntryId from step 3 and save.
9. Navigate to commerce > Products and create a new product and save.
Actual Result: Product created with default Liferay logo in image icon.
Expected Result: The product must use the uploaded image as the default image.
Environment
- Liferay DXP 7.4
- Commerce 4.0
Resolution
-
In order to set the product's default image, the user must follow the steps stated below.
1. Click the Applications Menu.
2. Click the Catalogs option on the Commerce tab.
3. Choose the Catalog user want to set the default product image.
4. In 'Default Catalog Image', select an image and press Save.
Results: When the product is created without any image, it'll pick up the image automatically defined in the specified catalog.
Did this article resolve your issue ?