Recharge WorkFlow is not trigging.

ahmed-webdev
New Member
12 0 0

I integrated Shopify ReCharge App.

And I create Workflow like this.

https://prnt.sc/uyvur3

When I add item to cart, I set custom property line.

data = {
        "id": variant_id,
        "form_type":"product",
        "quantity": qty,
        "purchase_type":"autodeliver",
        "properties": {
          "trial":"1",
          "shipping_interval_frequency": frequency,
          "shipping_interval_unit_type": unit_type,
        }
      }

 

 

"trial": 1 ( I tried with both 1 and "1").

 

When I go to checkout in preview mode, workflow wasn't triggered.

Can anyone help me please?

0 Likes
achieveapplabs
Shopify Partner
470 36 74

@ahmed-webdev ,

 

Take it you want to setup a subscription trial. The tutorials use the product title as a condition in the workflow.


Here are some things you can try:

* Replace 1 with true or false 

* Use a string value like "plan_mode" : "free_trial"


Just curious are you a merchant or partner? ReCharge has pretty amazing support. 

 

Best Regards,

Achieve Team

 

 

 

 

Install Approovly to create and track order approvals | We want to hear from you hello@achieveapplabs.com | Follow us on Twitter @achieveapplabs | Custom Shopify Apps achieveapplabs.com
0 Likes
ahmed-webdev
New Member
12 0 0

@achieveapplabs 

Thank you for your reply.

 

I changed.

"trial":"enabled"

 

But that didn't work as well.

 

Probably "subscription.recurring_price set to 0" seems not working?

I tried like this too.

 

condition: subscription.quantity equal or high than 1

search & actions: subscription.quantity equal or high than 1

Actions: subscription.recurring_price set to 0.

 

This didn't work too.

 

Here is message from recharge support.

---------------------------------------------------

Ah I see - thank you for that clarification!

That sort of button would be possible with custom coding for sure. You can look at our help doc on adding an item to the cart with AJAX to reference.

Essentially you could custom code three buttons:

  1. A button to purchase a One-Time Product (regular).
  2. A button to purchase the Free Subscription (pass a recurring price of $0 for this selection and optionally also add a custom line item property that can be used as a search and condition parameter in a Workflow. Alternatively, you can just set the Workflow to trigger if the subscription contains this particular product and the price is at 0.

    Another option for this is to custom code a discount to be automatically applied at checkout with the 100% discount code having a limit of 1 charge, so it only applies to the first charge).
  3. A button to purchase the Subscription regularly (pass all the regular line item properties to the cart to create a regular subscription). 
  4. Alternatively: you could do the reverse of the above if you would prefer to set the Auto-Renew version's price at $0. 


Because these buttons would be custom coded, you wouldn't need to create separate products for each option. You would just have the original product and the auto-renew product, but use custom coding to pass specific properties at the cart.

Let me know if you have any other questions about this at all

Cheers,
-------------------------------------------------

 

Thanks

0 Likes
ahmed-webdev
New Member
12 0 0

@achieveapplabs 

I tried with "product_title contain xxx" as condition but that didn't work as well.

maybe do I need to contact support? 

0 Likes
achieveapplabs
Shopify Partner
470 36 74

Hi @ahmed-webdev ,

 

Could be with preview mode:

When I go to checkout in preview mode, workflow wasn't triggered.

I would give them a shout if you're following the guides and still not working. We can't see your workflows and haven't had the best luck with them. 

 

Best,

Achieve Team

Install Approovly to create and track order approvals | We want to hear from you hello@achieveapplabs.com | Follow us on Twitter @achieveapplabs | Custom Shopify Apps achieveapplabs.com
0 Likes