Delay capturing data from checkout cart in shopify?

Status: Closed · Asked by Hani on · 0 views

Hani — Question ·

I have a flow that triggers when a new checkout is created in shopify with the end result is creating a shopify draft order (see below). The issue I'm having is that when the customer checks out, we have an app "Automatic Discount and Gifts" that adds items to the cart and applies 100% discount to these items. It seems like the flow is not capturing the discount so when it creates the draft order, the item shows up in the draft order at full price; it is not discounted (see below).

The items shows up like this:

It should show up like this:

Pabblymember11 — Reply ·

Hey @Hani

It appears that the App which you are trying is not offering any discount in the automation and not reflecting on your Shopify.

Kindly check your application once.

Further, try passing the discount fields in the Shopify action step.

Hani — Reply ·

Thank you. I checked, the automatic discount app is running correctly and creates the discount. The app actually creates a draft order when it applies the automatic discount so I can see 2 draft orders. One draft order created by Pabbly that does not show the discount and another draft order created by the discount app that has the discount (see example below of 2 draft orders created at the same time with different total amount). I'm wondering if I can delay capturing the data by few seconds, if Pabbly then will capture the discount or if it is possible to create a trigger at the next step, meaning when the customer clicks on Continue to Payment (see below), instead of when checking out.

Example of 2 draft orders (one created by Pabbly ($490) and one created by the automaic discount app ($436)

Pabblymember11 — Reply ·
try passing the discount fields in the Shopify action step.

[IMG width="535px" alt="1671799807431.png"]https://forum.pabbly.com/attachments/1671799807431-png.19543/[/IMG]


Have you tried using the Discount field in the Shopify action step?

Regarding your concern to get the discounted details of the order after some time then you can try the Delay action step with "Get Order by Id" action steps.

Hani — Reply ·

The delay solution did not work, the discount is still not getting reflected. I don't think the line itemizer is capturing the discount; I don't see an option where I can apply the discount.

Hani — Reply ·

I can't find the discount value

Pabblymember11 — Reply ·

Hey @Hani

Please check the following screenshot on how you can get the multiple line items on Discount value here -

Hani — Reply ·

Thank you, the discount is still not being reflected on the draft order. Below are the settings I have applied.

Pabblymember11 — Reply ·

Hey @Hani

Kindly contact the Shopify support team regarding the same, since the action step of Shopify was built according to their API documentation.

Back to all forum threads · Log in to reply