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

Ohh, you are right. This package contains constant (currency id) that is specific to my setup only. I will need to come up with some better package installation process -- ask user for information and use it to replace hardcoded values.

Meanwhile, I've uploaded new version of this particular package that depends on currency with id 1. That one is more likely to exist that currency with id 3.

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)

Looks nice!

I had a bit trouble getting started. You have a link to a test shop but I couldn't find username and password. An install under 1.07 failed ("controller not found"). It is a testshop so maybe these was something broken by me. On my 1.08 test shop it then worked ok. 

What I would like the module for is follow up discounts. I sell individual plugins and I sell a package that contains all the plugins. When a customer first buys an individual plugin and then the package I want to give him a discount related to the price of what he bought previously. I had such a thing under PS 1.6.0 but it didn't work under TB and I never came to building an alternative. As far as I can see I will need to build my own sql. However, it is not clear to me how I can include the prices of the products.

One suggestion for improvement. When I click on "Select Action" I would like to go back to a list of all the possible actions. Now I stay within my selection (execute custom sql).

Edited by musicmaster

Share this post


Link to post
Share on other sites
Posted (edited)

What is the best workflow rule for sending email to customer after change his default group from other rule?

maybe the best is add new future "trigger after/before rule nr .."
_

Edited by lutek

Share this post


Link to post
Share on other sites
1 hour ago, lutek said:

maybe the best is add new future "trigger after/before rule nr .."

Good idea, that would nicely allow rules chaining. Thanks for the suggestions

  • Like 1

Share this post


Link to post
Share on other sites

New version 0.5.0 released:

FEATURES:

  • New trigger: After conseqs rule - executed immediately after another rule. This allows you to chain your rules and create more sophisticated flows
  • New trigger: Product purchased - this trigger is executed when your customer purchase specific product
  • Recognise id_cart_rule columns as CartRule objects
  • Added baseDir to context variables

BUGFIXES:

  • fixed annoying bug with saving 0 value inside number parameter
  • fixed problems with loading / displaying rules with invalid settings
  • Thanks 2

Share this post


Link to post
Share on other sites

New version 0.6.0 has just been released with following new actions you can use to create your rules:

  • Remove customer from group
  • Associate product with category
  • Remove product from category

You can now create rules like

  • add product to Featured category when its price is > $100
  • remove product from category Featured when it is sold out
  • When customer purchase product Club membership then add customer into group Premium,and remove customer from group Customer
  • Thanks 1

Share this post


Link to post
Share on other sites

A couple of questions

1) When a customer opens an account they get a welcome email. When we create an account for the customer in the back office they don't. Can Conseq send the welcome email for accounts created in the back office?

2) Tried to install on TB 1.10 and get a 500 error every time. Nothing in browser console, nothing after switching on debug mode. The only thing I can find in the server logs is this: 

[04-Nov-2019 20:50:55 Europe/London] PHP Fatal error:  Cannot declare class SearchCore, because the name is already in use in /home/uboltsrus/public_html/classes/Search.php on line 94

 

Share this post


Link to post
Share on other sites
8 hours ago, haylau said:

A couple of questions

1) When a customer opens an account they get a welcome email. When we create an account for the customer in the back office they don't. Can Conseq send the welcome email for accounts created in the back office?

Yes, it's possible. And quite simple, actually. The only 'problem' is to determine if the account was created from back office or from front office. To do that, you can create condition for Employee -- for example Employee:ID > 0

8 hours ago, haylau said:

2) Tried to install on TB 1.10 and get a 500 error every time. Nothing in browser console, nothing after switching on debug mode. The only thing I can find in the server logs is this: 


[04-Nov-2019 20:50:55 Europe/London] PHP Fatal error:  Cannot declare class SearchCore, because the name is already in use in /home/uboltsrus/public_html/classes/Search.php on line 94

 

During initialization, conseqs loads *all* php files in classes directory in order to find all existing Object Models in the system (product, customer, order, address, ...). Looks like you have two php files in this directory that declares class SearchCore. One of these files is the standard classes/Search.php. You need to find the other one, and delete it. It shouldn't be there in the first place. Maybe you created it as a backup (Search.back.php) or unintentionally copied it do some other subdirectory,... 

 

  • Like 1

Share this post


Link to post
Share on other sites
7 hours ago, datakick said:

Yes, it's possible. And quite simple, actually. The only 'problem' is to determine if the account was created from back office or from front office. To do that, you can create condition for Employee -- for example Employee:ID > 0

During initialization, conseqs loads *all* php files in classes directory in order to find all existing Object Models in the system (product, customer, order, address, ...). Looks like you have two php files in this directory that declares class SearchCore. One of these files is the standard classes/Search.php. You need to find the other one, and delete it. It shouldn't be there in the first place. Maybe you created it as a backup (Search.back.php) or unintentionally copied it do some other subdirectory,... 

 

Excellent, thanks. It was indeed an old backup of search.php (because the newer versions of search.php do not work with our set up so I need to keep swapping back to an old PS version

Share this post


Link to post
Share on other sites
28 minutes ago, veganline said:

Is there somewhere I can teach myself about triggers and whether they include form validation stuff like https://www.w3schools.com/js/js_validation.asp ?

I want to remind people not to order a product called "choose", which would be the default size of a range of clothing.

I think you are talking about front-end interaction. Conseqs is not the right tool for that -- it's a tool that let you automate your business processes. Triggers are events in the system like new order creation, product was updated, stock increase, email is about to be sent,...

  • Like 1

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...