Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

datakick

[Free Module]Conseqs - execute custom action when something interesting happens

Recommended Posts

image.thumb.png.980ed09bbc3af9076b362cc85f67f35c.pngHi @datakick

What's the difference between 'bind, 'constant', and 'interpolate' for values? 
I'd just like to change the order status from 1 to 2. 

Thanks!

Share this post


Link to post
Share on other sites
56 minutes ago, 30knees said:

Hi @datakick

What's the difference between 'bind, 'constant', and 'interpolate' for values? 
I'd just like to change the order status from 1 to 2. 

Thanks!

Every action have some parameters, and you need to somehow provide values for these parameters.

The easiest way is to use Constant value - every time the action run it will pass this value as action parameter.

Sometimes, you need to provide dynamic data. For this, you can use Bind -- you will bind parameter value to some information provided by Trigger (Every trigger provide different set of information). For example, trigger 'Stock quantity changed' provides information about 'new quantity', and you can use this information in action.

Interpolation is something between Constant and Bind - you provide constant text, but part of this text will be replaced with dynamic values from (possibly multiple) action variables. This is useful for example if you want to construct email subject like "Hello {{firstname}}, your order {{order.reference}} has been shipped"

Note that when you writing value for Interpolation, you need to pres @  and then select the variable to be inserted.

And that's all. Simple.

  • Like 1

Share this post


Link to post
Share on other sites

Hello! How could I add a minimum order amount to the discount coupon you create when you approve a review?

Share this post


Link to post
Share on other sites
Hello, I hope you are well and congrats for your modules and work in prestashop.
 
I have a problem, i try to explain because is a custom problem in prestashop
 
I have 4 different products:
PRODUCT A
PRODUCT B
PRODUCT C
PRODUCT D
 
And a pack (PRODUCT Z) with contains 4 attributes with a select:
Option 1: PRODUCT 1 / PRODUCT 2 / PRODUCT 3 / PRODUCT 4
Option 2: PRODUCT 1 / PRODUCT 2 / PRODUCT 3 / PRODUCT 4
Option 3: PRODUCT 1 / PRODUCT 2 / PRODUCT 3 / PRODUCT 4
Option 4: PRODUCT 1 / PRODUCT 2 / PRODUCT 3 / PRODUCT 4
 
Product Z will be, for example: option 1: product 1 / option 2: product 1 / option 3: product 3 / option 4: product 2
 
How can i parse this?
When a PRODUCT Z is sold, decrease the quantity of A, B, C, D according to the customer selection...
 
Following the sample, it will be:
Product 1: decrease 2 units
Product 2: decrease 1 unit
Product 3: decrease 1 unit
 
 
Is it possible with CONSEQS?
 
Thanks in advance!
 
 
--
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...