Conditional Product Attributes

Picture of Conditional Product Attributes
This plugin enables you to create n number of multiple conditions to act on all types of product attributes, at the same time, provided the conditions are not contrary to each other. The admin will be able to create conditions with operators Equal to, Not Equal To, Greater Than, Greater Than Equal To, Less Than, Less Than or Equal To, Contains.
- current rating is 0.00. Total reviews 0
Conditional Product Attributes
Supported Versions: 4.00 , 4.10
Created: 7 November 2018
Last updated: 7 November 2018
$400.00
Get extension You will be re-directed to the developer's website to download this plugin
Description

To explain the functionality of the plugin, we are taking an example as below:

- The plugin files have been uploaded to the Plugins directory on the website root. Once done, the plugin has been installed from the List of the Plugins that appear in the admin panel.

- We have added attributes to one of the products as Width (textbox), Height (textbox), Type (Dropdown -> A,B,C), Feature 1 (Dropdown -> A,B,C) and Feature 2 (Dropdown -> A,B,C).

- Now, we want to implement certain conditions as below to the above attributes been added. Lets suppose the conditions are:

Width > free input of number
Height > free input of number
Type > A, B, C
Feature 1 > A, B,C
Feature 2 > A, B, C


Front end:

If the width is wider than 2000 and Type = A
Feature 1 should only show options B and C (so hide/do not display A)
Feature 2 should be hidden totally

ADDING CONDITIONS ON ATTRIBUTE "FEATURE 1"

- We will have to go to Step by Step. First the conditions will be added to Attribute Feature 1, which is Hide A value, if Width > 2000, and Type = A. For this, we need to Edit the Attribute Feature 1. You will see an added field as Condition Effect. So basically you choose here, where you are adding conditions to make it visible to hide the attribute/its values. We choose Hide, as we need to hide its value A. Click on Save & Continue Edit.

- Now we go to the Conditions tab to add the conditions for this attribute.

Condition 1: Width > 2000

Click on Add New, and you will see a form appear. Where in you need to select:

a) Operator -> GreaterThan (Other options for Equal, Does Not Equal, Contains, Less Than, Greater Than Equal To, Greater Than Equal To will also be available)

b) Name -> Next we add the name for the condition for our reference. We have added the name as "Width is Greater than 2000"

c) Attribute -> Next you need to select the Attribute on effect of which the value A has to be hidden. So we select Width. d) Now you need to add the value to check greater condition on, in the text box below. So we have entered 2000.

Save it when done.

One Condition has been added.

Condition 2: Type = A

Click on Add New again, and fill in the below values in the form:

a) Operator -> Equal

b) Name -> Next we add the name for the condition for our reference. We have added the name as "Type is equal to A"

c) Attribute -> Next you need to select the Attribute on effect of which the value A has to be hidden. So we select Type.

d) Now you need to add the select the value for Type on which the effect should happen. We select A.

Save it when done.

Both the Conditions have now been added. They would show up as below, in the Condition tab:

ADDING EFFECT FOR CONDITIONS ON ATTRIBUTE "FEATURE 1"

Based on the above conditions, the Feature 1 attribute should not display value A, i.e A should be hidden.

We go to the Effects tab, click on Add New to add the Effect. You would see a form as below, and select/enter the values as:

a) Operator -> And (Two options are available for you to select whether you want the conditions to be checked in an AND or OR fashion, i.e the effect should happen when all the conditions are met or any one of the conditions are met)

b) Applied Conditions -> Now you need to add the conditions pertaining to this effect to take place. The Names of the conditions been added will show up in a multi-select dropdown. We add both the above conditions here.

c) Affected Values -> Since A need to be hidden, so you need to select A.

Save it once done.

ADDING CONDITIONS ON ATTRIBUTE "FEATURE 2"

- Moving to the next step, the conditions now will be added to Attribute Feature 2, which is Hide the attribute completely, if Width > 2000, and Type = A. For this, we need to Edit the Attribute Feature 2. You will see an added field as Condition Effect. So basically you choose here, where you are adding conditions to make it visible to hide the attribute/its values. We choose Hide, as we need to hide it completely. Click on Save & Continue Edit.

- Follow the exact same steps as above, and add the two conditions which will then show up, once added.

- Now go the Effects tab, and add the Effect here with all the values been entered as above. Instead, now since we need to hide the attribute completely, we do not have to select anything in the Affected Values dropdown.

Now we are all set.

Lets go the front end and check.

- All the attributes will show up by default, on the Product Detailed page.

- Now we add Width = 1500, Height = 1500, Type = B, so the conditions are FALSE, and this Feature 2 still shows up, with A value visible as well in Feature 1

- Now we add Width = 2500, Height = 1500, Type = A, so the conditions are TRUE, and this Feature 2 will not show up, and Feature 2 will not show A value at all.

Reviews