Issue
- Require the following with the virtual product:
- No need for user personal data and would like to remove it for checkout.
- The order status should moved to completed status directly after the payment.
Environment
- Liferay DXP 7.4
- Commerce 4.0
Resolution
NOTE: The following resolution requires customization and should only be implemented at the discretion of your team. Liferay Support will not be able to assist with designing or implementing customizations.
- Use the type Virtual to create the products in regards to these. Tax calculation can be ignored by enabling 'Tax Exempt', please navigate to Control Panel → Products → Click on your product → go to Configuration Tab and disable it.
- The 'Shippable' field in the same Tab can also be disabled.
- Disable the shipping address checkout step. This is possible by disabling Shippable the product. (This is automatically done for virtual products)
- Disable the Billing Address Checkout step if the product is virtual.
- Accept the order and put it to Completed right away as soon as the order is placed for this product.
- Regarding the complete status of the products: this might be feasible with an object action, but it is not recommended because there are many validations in the back-end when transitioning order statuses in Liferay commerce: Implementing a Custom Order Status
Additional Information
- Refer to this: Configuring Virtual Products
"When you set up a virtual product you decide when you want it to be activated (activation status in the base information section of the virtual tab of the product settings) " - Net price / gross price can be set in both channels and price lists: Creating-a-price-list