|
27 | 27 | </createData> |
28 | 28 | <createData entity="Simple_US_Customer_CA" stepKey="simpleCustomer"/> |
29 | 29 | <!-- Step 1&2: Disable payment method one of "Check/Money Order" and "Zero Subtotal Checkout" --> |
30 | | - <magentoCLI command="config:set payment/checkmo/active 0" stepKey="disabledCheckMoneyOrderValue"/> |
| 30 | + <actionGroup ref="CliDisableCheckMoneyOrderPaymentMethodActionGroup" stepKey="disableCheckMoneyOrderValue"/> |
31 | 31 | <magentoCLI command="config:set {{DisableZeroSubtotalCheckoutConfigData.path}} {{DisableZeroSubtotalCheckoutConfigData.value}}" stepKey="disabledZeroSubtotalCheckoutOrderValue"/> |
32 | 32 | <!-- Step 3: Enable CashOnDelivery --> |
33 | 33 | <createData entity="CashOnDeliveryPaymentMethodDefault" stepKey="enableCashOnDeliveryPaymentMethod"/> |
34 | 34 | <!-- Step 4: Set the Maximum Order Total and Maximum Order Total CashOnDelivery --> |
35 | | - <magentoCLI command="config:set payment/cashondelivery/max_order_total 100" stepKey="cashOnDeliveryMaximumOrderTotalConfigData"/> |
36 | | - <magentoCLI command="config:set payment/cashondelivery/min_order_total 1" stepKey="cashOnDeliveryMinimumOrderTotalConfigData"/> |
37 | | - <actionGroup ref="CliIndexerReindexActionGroup" stepKey="runCronReindex"> |
38 | | - <argument name="indices" value=""/> |
39 | | - </actionGroup> |
| 35 | + <magentoCLI command="config:set {{cashOnDeliveryMaximumOrderTotalOrderPayment.path}} {{cashOnDeliveryMaximumOrderTotalOrderPayment.value}}" stepKey="cashOnDeliveryMaximumOrderTotalConfigData"/> |
| 36 | + <magentoCLI command="config:set {{cashOnDeliveryMinimumOrderTotalOrderPayment.path}} {{cashOnDeliveryMinimumOrderTotalOrderPayment.value}}" stepKey="cashOnDeliveryMinimumOrderTotalOrderPayment"/> |
| 37 | + <magentoCLI command="config:set {{cashOnDeliveryMinimumOrderTotalOrderPayment.path}} {{cashOnDeliveryMinimumOrderTotalOrderPayment.value}}" stepKey="cashOnDeliveryMinimumOrderTotalOrderPayment"/> |
40 | 38 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
41 | 39 | </before> |
42 | 40 | <after> |
|
45 | 43 | <deleteData createDataKey="simpleCustomer" stepKey="deleteCustomer"/> |
46 | 44 | <!-- Restore original payment method configurations --> |
47 | 45 | <magentoCLI command="config:set {{EnableCheckMoneyOrderPaymentMethod.path}} {{EnableCheckMoneyOrderPaymentMethod.value}}" stepKey="enableCheckMoneyOrderPaymentMethod"/> |
48 | | - <magentoCLI command="config:set payment/cashondelivery/active 0" stepKey="restoreCOD"/> |
| 46 | + <magentoCLI command="config:set {{disabledCashOnDeliveryPayment.label}} {{disabledCashOnDeliveryPayment.value}}" stepKey="restoreCOD"/> |
49 | 47 | <!-- Clear cache and logout --> |
50 | 48 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> |
51 | 49 | </after> |
|
0 commit comments