11 - Product Image Logic Addon
PILA (Product Image Login Add-on) New Powerful add-on
This new add-on called PILA is available in the beta test version for Woo Price Calculator PRO version. If you would like to take part in our beta test program, please contact us by our live chat. By this way, you will receive any detail about the downloading and installation procedure.
The Product Image Logic Addon lets you change the WooCommerce product image in real-time based on the field's value chosen by the customer.
The Product Image Logic is not included in WPC, but it's a separated addon.
1. Installation Requirements
- WooPrice Calculator Free or WooPrice Calculator Pro version equal or greater than 2.3.0. You can follow the instruction here how to install it.
2. Installation
- Go to "Plugins > Add new" in your WP-admin website
- Click on "Upload Plugin" then click on "Browse..." and select the file "awspc-product-image-logic.zip"
- After the plugin has been installed, click on "Activate"
If you have any problems, first check:
- If you have proper permissions/ownership of the folders and files inside "/wp-content/plugins/awspc-product-image-logic"
- If you have disabled the WP_DEBUG by setting define( 'WP_DEBUG', false ); in your "/wp-config.php" (more information available here)
2. Usage
You can add product images by following these steps:
- Click on the "Calculator" tab
- Click on the drop-down "Edit" button of your calculator where you want to apply the Product Image Logic
- Click on "Product Image Logic"
- In this page, you can add new images by clicking on "Add Rule". Each image has its own associated rule. If rule conditions are met the associated image will be shown to the customer.
- After clicking on "Add Rule" a popup window will be displayed where:
- Name: A descriptive name of the rule
- Image: The Wordpress Media Library will open by clicking on the image. Select the image you want to display.
- Rules: Create the rule that makes the image appear on the WooCommerce Product Page. The rules follow the same behavior of the Conditional Logic
- Click on "Save" to create the new rule
- You need to enable the Product Image Logic feature by clicking on "Enable Product Image Logic" on the Product Image Logic form. If you want to disable it, you need to click on "Disable Product Image Logic".
Note: If you set two or more non-strict rules only one image will be shown. For example:
- Rule 1: Set Image="Picture_1.png" when "Height >= 100"
- Rule 2: Set Image="Picture_2.png" when "Height >= 300"
- Rule 1: Set Image="Picture_1.png" when "Height >= 100 AND Height < 300"
- Rule 2: Set Image="Picture_2.png" when "Height >= 300"