Allow adding item to cart with variable price from url - Magento 2
$30-250 USD
Cancelled
Posted over 7 years ago
$30-250 USD
Paid on delivery
This is a 2 part project.
I would like to be able to add an item to the shopping cart via a simple GET url (not POST)
url:
/add_to_cart_u/{sku}
example:
/add_to_cart_u/1200-100
* so have to bypass the formkey when adding via the url
I would also like some items to be added and allow a dynamic price to be set in the url.
* Only items with the product attribute `allow_dynamic_price` can be allowed to be changed
url:
/cart/item/add_with_price/{sku}/{price}
example:
/cart/item/add_with_price/9413-01-001/6.00
please let me know if you have any questions.
thank you.