Issue
- I create Payment Terms with Money Order and Pay Pal payment methods. The payment terms have different priorities. On the account, they set a payment term with a lower priority as the default payment term. After submitting an order, at the Payment method, when they select the Money Order on the next page, the default payment order is set. However, when changing to a different payment method and going back again to the Money Order, the payment term is changed to the one that has the highest priority ignoring the default one.
Reproduction Steps:
-
Create a minium site, open the main menu --> Control Panel --> Sites --> Sites
-
Create payment terms, go to Control Panel --> commerce --> terms and conditions, and add 4 payment terms and activate them as the following:
-
Money-1 (priority = 0),
-
Money-2 (priority = 1)
-
PP-1 (priority = 2)
-
Money-3 (priority = 3)
-
-
Create an account by going to Control Panel --> Accounts --> Accounts
-
Go to the account's "Channel Defaults" tab, and add Money-2 to "PAYMENT TERMS AND CONDITIONS" (All channels, overrige eligibility = no)
-
Go to Control Panel --> Commerce --> Channels --> minium channel, and configure payment methods:
-
Open the Money Order, activate it, and save. At the eligibility tab, configure payment terms, add all 3 Money-x terms to the list, and Save.
-
Open the PayPal, activate it, and save. At the eligibility tab, configure payment terms, and add PP-1 to terms to the list. Save.
-
-
Go to the minium site, add a product to the cart, and proceed to checkout.
-
Fill in addresses and at the payment method selection, select Money Order.
-
When you move to the next page, you see the payment term selection view and Money-2 as the selected term. This is expected as it is the default payment term.
-
Move back and select PayPal.
-
When you move to the next page, you will see the summary view and PP-1 as the selected term.
-
Move back, select the Money Order, go to the next page, and observe the selected payment term.
Expected Result: The payment term should be set to Money-2 as it is the default payment term.
Actual Result: The payment term is changed and set to Money-3. Probably because it has the highest priority.
Environment
- Liferay DXP 7.4 Quarterly Release 2024.q1.4
Resolution
- The issue has been fixed and resolved by LPD-33397. Please request a hotfix.