Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue] Meta Checkout URL Implementation #39700

Open
m2-assistant bot opened this issue Mar 4, 2025 · 5 comments · May be fixed by #39667
Open

[Issue] Meta Checkout URL Implementation #39700

m2-assistant bot opened this issue Mar 4, 2025 · 5 comments · May be fixed by #39667
Labels
Area: Cart & Checkout Component: Catalog Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reported on 2.4.x Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch

Comments

@m2-assistant
Copy link

m2-assistant bot commented Mar 4, 2025

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

Screenshot 2025-02-27 at 2 45 27 PM

This will:

  1. Clear the existing cart (per Meta requirements)
  2. 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
  3. Apply the "SAVE10" coupon code
  4. Display the checkout page

The implementation handles error cases gracefully, showing appropriate messages for invalid products or coupons.

@m2-assistant m2-assistant bot linked a pull request Mar 4, 2025 that will close this issue
1 task
@engcom-Bravo engcom-Bravo self-assigned this Mar 4, 2025
Copy link
Author

m2-assistant bot commented Mar 4, 2025

Hi @engcom-Bravo. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
  • 5. Add label Issue: Confirmed once verification is complete.
  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-Bravo engcom-Bravo added the Reported on 2.4.x Indicates original Magento version for the Issue report. label Mar 4, 2025
@engcom-Bravo
Copy link
Contributor

Hi @sol-loup,

Thanks for your reporting and collaboration.

To proceed further marking this as feature request.

Thanks.

@engcom-Bravo
Copy link
Contributor

Confirming the issue

@engcom-Bravo engcom-Bravo added Component: Catalog Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Area: Cart & Checkout and removed feature request labels Apr 2, 2025
@github-jira-sync-bot
Copy link

✅ Jira issue https://jira.corp.adobe.com/browse/AC-14358 is successfully created for this GitHub issue.

Copy link
Author

m2-assistant bot commented Apr 2, 2025

✅ Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Cart & Checkout Component: Catalog Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reported on 2.4.x Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch
Projects
Status: Pull Request in Progress
Development

Successfully merging a pull request may close this issue.

2 participants