Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(js-sdk, medusa): Allow users to change their mind during the checkout process #10671

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

damianr13
Copy link

…and update the payment collection accordingly

  • refresh the payment collection on every POST request in the API (makes use of the pre-existing workflow that only creates a new collection if the existing one is out of sync with the cart)
  • change the frontend library to request a check of the payment collection everytime before initializing a payment session

Addresses #10670

…te the payment collection accordingly

- refresh the payment collection on every POST request in the API (makes use of the pre-existing workflow that only creates a new collection if the existing one is out of sync with the cart)
- change the frontend library to request a check of the payment collection everytime before initializing a payment session
@damianr13 damianr13 requested a review from a team as a code owner December 19, 2024 13:03
Copy link

changeset-bot bot commented Dec 19, 2024

⚠️ No Changeset found

Latest commit: 3138879

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Dec 19, 2024

@damianr13 is attempting to deploy a commit to the medusajs Team on Vercel.

A member of the Team first needs to authorize it.

@riqwan
Copy link
Contributor

riqwan commented Dec 19, 2024

Thanks @damianr13, let me get back to you on this. 🤞🏻

Comment on lines +967 to +975
await this.client.fetch<HttpTypes.StorePaymentCollectionResponse>(
`/store/payment-collections`,
{
method: "POST",
headers,
body: collectionBody,
}
)
).payment_collection.id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sugg: you can return this function directly and remove the Get from underneath

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are they equivalent though? One is a payment collection the other is a payment session.

Before my changes they were still called together but only when the payment collection id was not defined.

await refreshPaymentCollectionForCartWorkflow(req.scope).run({
input: { cart_id },
})
paymentCollection = await getPaymentCollectionForCart(req)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sugg: can you remove this function here and add this on line 48 instead:

const paymentCollection = await refetchEntity(
    "payment_collection",
    cartCollectionRelation?.payment_collection?.id,
    req.scope,
    req.remoteQueryConfig.fields
  )

@docloulou
Copy link
Contributor

docloulou commented Dec 26, 2024

@damianr13 i have a similar issue when customer choose shipping method for his cart and change his mind.
adding quantity is ok but adding new item in cart triggers error. if customer come back in the shop i have to include deleteShippingMethods as workaround :

    await cartModuleService.deleteShippingMethods(cart?.shipping_methods?.map((method) => method.id) || []);

    await addToCartWorkflow(req.scope).run({
        input: workflowInputWhenQtygtZero,
    });

Here the error triggered when add NEW item in the cart :

 select "price"."id" as "id", "ps"."id" as "price_set_id", "price"."amount" as "amount", "price"."raw_amount" as "raw_amount", "price"."min_quantity" as "min_quantity", "price"."max_quantity" as "max_quantity", "price"."currency_code" as "currency_code", "price"."rules_count" as "rules_count", "price"."pl_rules_count" as "pl_rules_count", "price"."pl_type" as "price_list_type", "price"."price_list_id" as "price_list_id", COALESCE(price.rules_count, 0) + COALESCE(price.pl_rules_count, 0) as "all_rules_count" from "price_set" as "ps" inner join (select "price"."id" as "id", "price"."amount" as "amount", "price"."raw_amount" as "raw_amount", "price"."min_quantity" as "min_quantity", "price"."max_quantity" as "max_quantity", "price"."currency_code" as "currency_code", "price"."price_set_id" as "price_set_id", "price"."rules_count" as "rules_count", "price"."price_list_id" as "price_list_id", "pl"."rules_count" as "pl_rules_count", "pl"."type" as "pl_type", case when price.price_list_id IS NULL then False else True end as "has_price_list" from "price" as "price" left join "price_rule" as "pr" on "pr"."price_id" = "price"."id" left join "price_list" as "pl" on "pl"."id" = "price"."price_list_id" and "pl"."status" = $1 left join "price_list_rule" as "plr" on "plr"."price_list_id" = "pl"."id" where ("price"."price_list_id" is null and (("pr"."attribute" = $2 and "pr"."value" in ($3)) or ("pr"."attribute" = $4 and "pr"."value" in ($5)) or ("pr"."attribute" = $6 and "pr"."value" in ($7)) or ("pr"."attribute" = $8 and ("pr"."operator" = $9 and $10 >= pr.value::numeric) or ("pr"."operator" = $11 and $12 > pr.value::numeric) or ("pr"."operator" = $13 and $14 < pr.value::numeric) or ("pr"."operator" = $15 and $16 <= pr.value::numeric) or ("pr"."operator" = $17 and $18 = pr.value::numeric)) or ("pr"."attribute" = $19 and ("pr"."operator" = $20 and $21 >= pr.value::numeric) or ("pr"."operator" = $22 and $23 > pr.value::numeric) or ("pr"."operator" = $24 and $25 < pr.value::numeric) or ("pr"."operator" = $26 and $27 <= pr.value::numeric) or ("pr"."operator" = $28 and $29 = pr.value::numeric)) or ("pr"."attribute" = $30 and "pr"."value" in ($31)) or ("pr"."attribute" = $32 and "pr"."value" in ($33)) or ("pr"."attribute" = $34 and "pr"."value" in ($35)) or ("pr"."attribute" = $36 and "pr"."value" in ($37)) or ("pr"."attribute" = $38 and "pr"."value" in ($39)) or ("pr"."attribute" = $40 and "pr"."value" in ($41)) or ("pr"."attribute" = $42 and "pr"."value" in ($43)) or ("pr"."attribute" = $44 and "pr"."value" in ($45)) or ("pr"."attribute" = $46 and "pr"."value" in ($47)) or ("pr"."attribute" = $48 and "pr"."value" in ($49)) or ("pr"."attribute" = $50 and "pr"."value" in ($51)) or ("pr"."attribute" = $52 and "pr"."value" in ($53)) or ("pr"."attribute" = $54 and "pr"."value" in ($55)) or ("pr"."attribute" = $56 and "pr"."value" in ($57, $58)) or ("pr"."attribute" = $59 and "pr"."value" in ($60, $61)) or ("pr"."attribute" = $62 and "pr"."value" in ($63, $64)) or ("pr"."attribute" = $65 and "pr"."value" in ($66, $67)) or ("pr"."attribute" = $68 and "pr"."value" in ($69, $70)) or ("pr"."attribute" = $71 and "pr"."value" in ($72, $73)) or ("pr"."attribute" = $74 and "pr"."value" in ($75, $76)) or ("pr"."attribute" = $77 and "pr"."value" in ($78, $79)) or ("pr"."attribute" = $80 and "pr"."value" in ($81, $82)) or ("pr"."attribute" = $83 and "pr"."value" in ($84, $85)) or ("pr"."attribute" = $86 and "pr"."value" in ($87, $88)) or ("pr"."attribute" = $89 and "pr"."value" in ($90, $91)) or ("pr"."attribute" = $92 and "pr"."value" in ($93, $94)) or ("pr"."attribute" = $95 and "pr"."value" in ($96, $97)) or ("pr"."attribute" = $98 and "pr"."value" in ($99, $100)) or ("pr"."attribute" = $101 and "pr"."value" in ($102, $103)) or ("pr"."attribute" = $104 and "pr"."value" in ($105, $106)) or ("pr"."attribute" = $107 and "pr"."value" in ($108, $109)) or ("pr"."attribute" = $110 and "pr"."value" in ($111, $112)) or ("pr"."attribute" = $113 and "pr"."value" in ($114, $115)) or ("pr"."attribute" = $116 and "pr"."value" in ($117, $118)) or ("pr"."attribute" = $119 and "pr"."value" in ($120, $121)) or ("pr"."attribute" = $122 and "pr"."value" in ($123, $124)) or ("pr"."attribute" = $125 and "pr"."value" in ($126, $127)) or ("pr"."attribute" = $128 and "pr"."value" in ($129, $130)) or ("pr"."attribute" = $131 and "pr"."value" in ($132, $133)) or ("pr"."attribute" = $134 and "pr"."value" in ($135, $136)) or ("pr"."attribute" = $137 and "pr"."value" in ($138, $139)) or ("pr"."attribute" = $140 and "pr"."value" in ($141, $142)) or ("pr"."attribute" = $143 and "pr"."value" in (($144), ())) or ("pr"."attribute" = $145 and "pr"."value" in ($146, $147)) or ("pr"."attribute" = $148 and "pr"."value" in ($149, $150)) or ("pr"."attribute" = $151 and "pr"."value" in ($152, $153)) or ("pr"."attribute" = $154 and "pr"."value" in ($155, $156)) or ("pr"."attribute" = $157 and "pr"."value" in ($158, $159)) or ("pr"."attribute" = $160 and "pr"."value" in ($161, $162)) or ("pr"."attribute" = $163 and "pr"."value" in ($164, $165)) or ("pr"."attribute" = $166 and "pr"."value" in ($167, $168)) or ("pr"."attribute" = $169 and "pr"."value" in ($170, $171)) or ("pr"."attribute" = $172 and "pr"."value" in ($173, $174)) or ("pr"."attribute" = $175 and "pr"."value" in ($176, $177)) or ("pr"."attribute" = $178 and "pr"."value" in ($179, $180)) or ("pr"."attribute" = $181 and "pr"."value" in ($182, $183)) or ("pr"."attribute" = $184 and "pr"."value" in ($185, $186)) or ("pr"."attribute" = $187 and "pr"."value" in ($188, $189)) or ("pr"."attribute" = $190 and "pr"."value" in ($191, $192)) or ("pr"."attribute" = $193 and "pr"."value" in ($194, $195)) or ("pr"."attribute" = $196 and "pr"."value" in ($197, $198)) or ("pr"."attribute" = $199 and "pr"."value" in ($200, $201)) or ("pr"."attribute" = $202 and "pr"."value" in ($203, $204)) or ("pr"."attribute" = $205 and "pr"."value" in ($206, $207)) or ("pr"."attribute" = $208 and "pr"."value" in ($209, $210)) or ("pr"."attribute" = $211 and "pr"."value" in ($212, $213)) or ("pr"."attribute" = $214 and "pr"."value" in ($215, $216)) or ("pr"."attribute" = $217 and "pr"."value" in ($218, $219)) or ("pr"."attribute" = $220 and "pr"."value" in ($221, $222)) or ("pr"."attribute" = $223 and "pr"."value" in ($224, $225)) or ("pr"."attribute" = $226 and "pr"."value" in ($227, $228)) or ("pr"."attribute" = $229 and "pr"."value" in ($230, $231)) or ("pr"."attribute" = $232 and "pr"."value" in ($233, $234)) or ("pr"."attribute" = $235 and "pr"."value" in ($236, $237)) or ("pr"."attribute" = $238 and "pr"."value" in ($239, $240)) or ("pr"."attribute" = $241 and "pr"."value" in ($242, $243)) or ("pr"."attribute" = $244 and "pr"."value" in ($245, $246)) or ("pr"."attribute" = $247 and "pr"."value" in ($248, $249)) or ("pr"."attribute" = $250 and "pr"."value" in ($251, $252)) or ("pr"."attribute" = $253 and "pr"."value" in (($254), ($255))) or "price"."rules_count" = $256)) or ("price"."price_list_id" is not null and "pl"."deleted_at" is null and ("pl"."starts_at" is null or "pl"."starts_at" <= CURRENT_TIMESTAMP) and ("pl"."ends_at" is null or "pl"."ends_at" >= CURRENT_TIMESTAMP) and ((("plr"."attribute" = $257) and "plr"."value" @> $258 or ("plr"."attribute" = $259) and "plr"."value" @> $260 or ("plr"."attribute" = $261) and "plr"."value" @> $262 or ("plr"."attribute" = $263) and "plr"."value" @> $264 or ("plr"."attribute" = $265) and "plr"."value" @> $266 or ("plr"."attribute" = $267) and "plr"."value" @> $268 or ("plr"."attribute" = $269) and "plr"."value" @> $270 or ("plr"."attribute" = $271) and "plr"."value" @> $272 or ("plr"."attribute" = $273) and "plr"."value" @> $274 or ("plr"."attribute" = $275) and "plr"."value" @> $276 or ("plr"."attribute" = $277) and "plr"."value" @> $278 or ("plr"."attribute" = $279) and "plr"."value" @> $280 or ("plr"."attribute" = $281) and "plr"."value" @> $282 or ("plr"."attribute" = $283) and "plr"."value" @> $284 or ("plr"."attribute" = $285) and "plr"."value" @> $286 or ("plr"."attribute" = $287) and "plr"."value" @> $288 or ("plr"."attribute" = $289) and "plr"."value" @> $290 or ("plr"."attribute" = $291) and "plr"."value" @> $292 or ("plr"."attribute" = $293) and "plr"."value" @> $294 or ("plr"."attribute" = $295) and "plr"."value" @> $296 or ("plr"."attribute" = $297) and "plr"."value" @> $298 or ("plr"."attribute" = $299) and "plr"."value" @> $300 or ("plr"."attribute" = $301) and "plr"."value" @> $302 or ("plr"."attribute" = $303) and "plr"."value" @> $304 or ("plr"."attribute" = $305) and "plr"."value" @> $306 or ("plr"."attribute" = $307) and "plr"."value" @> $308 or ("plr"."attribute" = $309) and "plr"."value" @> $310 or ("plr"."attribute" = $311) and "plr"."value" @> $312 or ("plr"."attribute" = $313) and "plr"."value" @> $314 or ("plr"."attribute" = $315) and "plr"."value" @> $316 or ("plr"."attribute" = $317) and "plr"."value" @> $318 or ("plr"."attribute" = $319) and "plr"."value" @> $320 or ("plr"."attribute" = $321) and "plr"."value" @> $322 or ("plr"."attribute" = $323) and "plr"."value" @> $324 or ("plr"."attribute" = $325) and "plr"."value" @> $326 or ("plr"."attribute" = $327) and "plr"."value" @> $328 or ("plr"."attribute" = $329) and "plr"."value" @> $330 or ("plr"."attribute" = $331) and "plr"."value" @> $332 or ("plr"."attribute" = $333) and "plr"."value" @> $334 or ("plr"."attribute" = $335) and "plr"."value" @> $336 or ("plr"."attribute" = $337) and "plr"."value" @> $338 or ("plr"."attribute" = $339) and "plr"."value" @> $340 or ("plr"."attribute" = $341) and "plr"."value" @> $342 or ("plr"."attribute" = $343) and "plr"."value" @> $344 or ("plr"."attribute" = $345) and "plr"."value" @> $346 or ("plr"."attribute" = $347) and "plr"."value" @> $348 or ("plr"."attribute" = $349) and "plr"."value" @> $350 or ("plr"."attribute" = $351) and "plr"."value" @> $352 or ("plr"."attribute" = $353) and "plr"."value" @> $354 or ("plr"."attribute" = $355) and "plr"."value" @> $356 or ("plr"."attribute" = $357) and "plr"."value" @> $358 or ("plr"."attribute" = $359) and "plr"."value" @> $360 or ("plr"."attribute" = $361) and "plr"."value" @> $362 or ("plr"."attribute" = $363) and "plr"."value" @> $364 or ("plr"."attribute" = $365) and "plr"."value" @> $366 or ("plr"."attribute" = $367) and "plr"."value" @> $368 or ("plr"."attribute" = $369) and "plr"."value" @> $370 or ("plr"."attribute" = $371) and "plr"."value" @> $372 or ("plr"."attribute" = $373) and "plr"."value" @> $374 or ("plr"."attribute" = $375) and "plr"."value" @> $376 or ("plr"."attribute" = $377) and "plr"."value" @> $378 or ("plr"."attribute" = $379) and "plr"."value" @> $380 or ("plr"."attribute" = $381) and "plr"."value" @> $382 or ("plr"."attribute" = $383) and "plr"."value" @> $384 or ("plr"."attribute" = $385) and "plr"."value" @> $386 or ("plr"."attribute" = $387) and "plr"."value" @> $388 or ("plr"."attribute" = $389) and "plr"."value" @> $390 or ("plr"."attribute" = $391) and "plr"."value" @> $392 or ("plr"."attribute" = $393) and "plr"."value" @> $394 or ("plr"."attribute" = $395) and "plr"."value" @> $396 or ("plr"."attribute" = $397) and "plr"."value" @> $398 or ("plr"."attribute" = $399) and "plr"."value" @> $400 or ("plr"."attribute" = $401) and "plr"."value" @> $402 or ("plr"."attribute" = $403) and "plr"."value" @> $404 or ("plr"."attribute" = $405) and "plr"."value" @> $406 or ("plr"."attribute" = $407) and "plr"."value" @> $408 or ("plr"."attribute" = $409) and "plr"."value" @> $410 or ("plr"."attribute" = $411) and "plr"."value" @> $412 or ("plr"."attribute" = $413) and "plr"."value" @> $414 or ("plr"."attribute" = $415) and "plr"."value" @> $416 or ("plr"."attribute" = $417) and "plr"."value" @> $418 or ("plr"."attribute" = $419) and "plr"."value" @> $420 or ("plr"."attribute" = $421) and "plr"."value" @> $422 or ("plr"."attribute" = $423) and "plr"."value" @> $424 or ("plr"."attribute" = $425) and "plr"."value" @> $426 or "pl"."rules_count" = $427) and ((("pr"."attribute" = $428 and "pr"."value" in ($429)) or ("pr"."attribute" = $430 and "pr"."value" in ($431)) or ("pr"."attribute" = $432 and "pr"."value" in ($433)) or ("pr"."attribute" = $434 and ("pr"."operator" = $435 and $436 >= pr.value::numeric) or ("pr"."operator" = $437 and $438 > pr.value::numeric) or ("pr"."operator" = $439 and $440 < pr.value::numeric) or ("pr"."operator" = $441 and $442 <= pr.value::numeric) or ("pr"."operator" = $443 and $444 = pr.value::numeric)) or ("pr"."attribute" = $445 and ("pr"."operator" = $446 and $447 >= pr.value::numeric) or ("pr"."operator" = $448 and $449 > pr.value::numeric) or ("pr"."operator" = $450 and $451 < pr.value::numeric) or ("pr"."operator" = $452 and $453 <= pr.value::numeric) or ("pr"."operator" = $454 and $455 = pr.value::numeric)) or ("pr"."attribute" = $456 and "pr"."value" in ($457)) or ("pr"."attribute" = $458 and "pr"."value" in ($459)) or ("pr"."attribute" = $460 and "pr"."value" in ($461)) or ("pr"."attribute" = $462 and "pr"."value" in ($463)) or ("pr"."attribute" = $464 and "pr"."value" in ($465)) or ("pr"."attribute" = $466 and "pr"."value" in ($467)) or ("pr"."attribute" = $468 and "pr"."value" in ($469)) or ("pr"."attribute" = $470 and "pr"."value" in ($471)) or ("pr"."attribute" = $472 and "pr"."value" in ($473)) or ("pr"."attribute" = $474 and "pr"."value" in ($475)) or ("pr"."attribute" = $476 and "pr"."value" in ($477)) or ("pr"."attribute" = $478 and "pr"."value" in ($479)) or ("pr"."attribute" = $480 and "pr"."value" in ($481)) or ("pr"."attribute" = $482 and "pr"."value" in ($483, $484)) or ("pr"."attribute" = $485 and "pr"."value" in ($486, $487)) or ("pr"."attribute" = $488 and "pr"."value" in ($489, $490)) or ("pr"."attribute" = $491 and "pr"."value" in ($492, $493)) or ("pr"."attribute" = $494 and "pr"."value" in ($495, $496)) or ("pr"."attribute" = $497 and "pr"."value" in ($498, $499)) or ("pr"."attribute" = $500 and "pr"."value" in ($501, $502)) or ("pr"."attribute" = $503 and "pr"."value" in ($504, $505)) or ("pr"."attribute" = $506 and "pr"."value" in ($507, $508)) or ("pr"."attribute" = $509 and "pr"."value" in ($510, $511)) or ("pr"."attribute" = $512 and "pr"."value" in ($513, $514)) or ("pr"."attribute" = $515 and "pr"."value" in ($516, $517)) or ("pr"."attribute" = $518 and "pr"."value" in ($519, $520)) or ("pr"."attribute" = $521 and "pr"."value" in ($522, $523)) or ("pr"."attribute" = $524 and "pr"."value" in ($525, $526)) or ("pr"."attribute" = $527 and "pr"."value" in ($528, $529)) or ("pr"."attribute" = $530 and "pr"."value" in ($531, $532)) or ("pr"."attribute" = $533 and "pr"."value" in ($534, $535)) or ("pr"."attribute" = $536 and "pr"."value" in ($537, $538)) or ("pr"."attribute" = $539 and "pr"."value" in ($540, $541)) or ("pr"."attribute" = $542 and "pr"."value" in ($543, $544)) or ("pr"."attribute" = $545 and "pr"."value" in ($546, $547)) or ("pr"."attribute" = $548 and "pr"."value" in ($549, $550)) or ("pr"."attribute" = $551 and "pr"."value" in ($552, $553)) or ("pr"."attribute" = $554 and "pr"."value" in ($555, $556)) or ("pr"."attribute" = $557 and "pr"."value" in ($558, $559)) or ("pr"."attribute" = $560 and "pr"."value" in ($561, $562)) or ("pr"."attribute" = $563 and "pr"."value" in ($564, $565)) or ("pr"."attribute" = $566 and "pr"."value" in ($567, $568)) or ("pr"."attribute" = $569 and "pr"."value" in (($570), ())) or ("pr"."attribute" = $571 and "pr"."value" in ($572, $573)) or ("pr"."attribute" = $574 and "pr"."value" in ($575, $576)) or ("pr"."attribute" = $577 and "pr"."value" in ($578, $579)) or ("pr"."attribute" = $580 and "pr"."value" in ($581, $582)) or ("pr"."attribute" = $583 and "pr"."value" in ($584, $585)) or ("pr"."attribute" = $586 and "pr"."value" in ($587, $588)) or ("pr"."attribute" = $589 and "pr"."value" in ($590, $591)) or ("pr"."attribute" = $592 and "pr"."value" in ($593, $594)) or ("pr"."attribute" = $595 and "pr"."value" in ($596, $597)) or ("pr"."attribute" = $598 and "pr"."value" in ($599, $600)) or ("pr"."attribute" = $601 and "pr"."value" in ($602, $603)) or ("pr"."attribute" = $604 and "pr"."value" in ($605, $606)) or ("pr"."attribute" = $607 and "pr"."value" in ($608, $609)) or ("pr"."attribute" = $610 and "pr"."value" in ($611, $612)) or ("pr"."attribute" = $613 and "pr"."value" in ($614, $615)) or ("pr"."attribute" = $616 and "pr"."value" in ($617, $618)) or ("pr"."attribute" = $619 and "pr"."value" in ($620, $621)) or ("pr"."attribute" = $622 and "pr"."value" in ($623, $624)) or ("pr"."attribute" = $625 and "pr"."value" in ($626, $627)) or ("pr"."attribute" = $628 and "pr"."value" in ($629, $630)) or ("pr"."attribute" = $631 and "pr"."value" in ($632, $633)) or ("pr"."attribute" = $634 and "pr"."value" in ($635, $636)) or ("pr"."attribute" = $637 and "pr"."value" in ($638, $639)) or ("pr"."attribute" = $640 and "pr"."value" in ($641, $642)) or ("pr"."attribute" = $643 and "pr"."value" in ($644, $645)) or ("pr"."attribute" = $646 and "pr"."value" in ($647, $648)) or ("pr"."attribute" = $649 and "pr"."value" in ($650, $651)) or ("pr"."attribute" = $652 and "pr"."value" in ($653, $654)) or ("pr"."attribute" = $655 and "pr"."value" in ($656, $657)) or ("pr"."attribute" = $658 and "pr"."value" in ($659, $660)) or ("pr"."attribute" = $661 and "pr"."value" in ($662, $663)) or ("pr"."attribute" = $664 and "pr"."value" in ($665, $666)) or ("pr"."attribute" = $667 and "pr"."value" in ($668, $669)) or ("pr"."attribute" = $670 and "pr"."value" in ($671, $672)) or ("pr"."attribute" = $673 and "pr"."value" in ($674, $675)) or ("pr"."attribute" = $676 and "pr"."value" in ($677, $678)) or ("pr"."attribute" = $679 and "pr"."value" in (($680), ($681))) and "price"."rules_count" > $682) or "price"."rules_count" = $683))) group by "price"."id", "pl"."id" having count(pr.attribute) = price.rules_count AND price.price_list_id IS NULL or count(DISTINCT plr.attribute) = pl.rules_count AND price.price_list_id IS NOT NULL) as "price" on "price"."price_set_id" = "ps"."id" where "ps"."id" in ($684) and "price"."currency_code" = $685 and ("price"."min_quantity" <= $686 or "price"."min_quantity" is null) order by "price"."has_price_list" asc, "all_rules_count" desc, "amount" asc - syntax error at or near ")"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants