-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Open
Labels
Area: Cart & CheckoutComponent: CatalogIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedReported on 2.4.xIndicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Description
This issue is automatically created based on existing pull request: #39667: Meta Checkout URL Implementation
Meta Checkout URL Implementation
This PR adds support for Meta's checkout URL specification, allowing direct linking to the checkout page with pre-populated cart items and coupon codes.
What's Changed
- Added
AddToCartLinkV1
controller that processes URL parameters to populate the cart - Added layout XML file to render the checkout page with consistent user experience
- Implemented support for multiple products and coupon codes via URL parameters
How It Works
The controller accepts URL parameters in this format:
/checkout/cart/addtocartlinkv1?products=123:2,456:1&coupon=SAVE10
This will:
- Clear the existing cart (per Meta requirements)
- Add 2 units of product Performance problem & memory leak in Mage_Index_Model_Process #123 and 1 unit of product Bogus error message if mcrypt extension is not installed. #456
- Apply the "SAVE10" coupon code
- Display the checkout page
The implementation handles error cases gracefully, showing appropriate messages for invalid products or coupons.
Metadata
Metadata
Assignees
Labels
Area: Cart & CheckoutComponent: CatalogIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedReported on 2.4.xIndicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Type
Projects
Status
Pull Request in Progress