You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm using a fixed amount price for some of my product's customization, but the paypal checkout it's not working anymore.
I think it's because of the price on the custom option, i'm having an amount mismatch.
I'm using the version 2.16.1.
Hey thanks for reporting this bug. Currently we haven't looked into supporting the paypal plugin of Sylius explicitly and I have no idea where Sylius is taking the individual prices from. We are using the adjustment mechanic of Sylius, which means that it should just add the customer option prices to the total before submitting them to paypal.
From the response debug output I take is that Sylius is trying to add all of those
It looks like the item total of the order is missing the customer options. As I said I don't know how the paypal plugin works.
However it looks like you might need to add a functions to your OrderItem class:
/** * Overriding sylius' total calculation to also take customer options into account. */publicfunctiongetSubtotal(): int
{
returnparent::getSubtotal() + $this->getAdjustmentsTotalRecursively(CustomerOptionRecalculator::CUSTOMER_OPTION_ADJUSTMENT);
}
I hope this helps other than that, you'd have to see if there is anything you can do to fix the prices when exporting them to paypal.
Hi,
i'm using a fixed amount price for some of my product's customization, but the paypal checkout it's not working anymore.
I think it's because of the price on the custom option, i'm having an amount mismatch.
I'm using the version 2.16.1.
Attached the paypal log:
The text was updated successfully, but these errors were encountered: