Problem/Motivation

Hi,

I was looking for a way to deduct the shipping price from the order total condition. I found the patch at https://www.drupal.org/project/commerce/issues/2938729 and I applied and it worked correctly. But I saw that it is missing that Amount per currency fieldset which this module adds.

Steps to reproduce

Proposed resolution

So, I went ahead and wrote the code for the condition plugin and alter the condition class to use my own class. I am attaching the patch here.

User interface changes

It will add the Amount per currency fieldset for the Adjusted current order total condition.

Comments

sorabh.v6 created an issue. See original summary.

sorabh.v6’s picture

Assigned: sorabh.v6 » Unassigned
Status: Active » Needs review
StatusFileSize
new875 bytes

Adding the patch. Please review.

This patch should be commited once https://www.drupal.org/project/commerce/issues/2938729 is closed.

sorabh.v6’s picture

Issue summary: View changes
sorabh.v6’s picture

StatusFileSize
new3.21 KB

Uploading correct patch, missed plugin class in the previous patch.

valic’s picture

Status: Needs review » Fixed

Tnx.

Will close it now. From version 2.x we do only set condition amount per currency, and everything else leave to core.

https://git.drupalcode.org/project/commerce_currency_resolver/-/blob/2.x...

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.