Englishen
Your cart: 0
Cart Subtotal: €0.00

Adobe Commerce (Magento 2.x)
Add product to cart with url

Availability: In stock

Regular Price: €120.00

Special Price €90.00

Lowest price in last 30 days: €90.00

The Magento 2 module allows adding products to the shopping cart with ease using a URL. The user can specify the product's SKU (code), quantity, and optionally a discount code in the URL. The module processes these parameters and adds the product to the customer's shopping cart, taking into account the selected quantity and any applicable discounts.

-25%

Regular Price: €120.00

Special Price €90.00

Lowest price in last 30 days: €90.00

Availability: In stock

* Required Fields

Regular Price: €120.00

Special Price €90.00

Lowest price in last 30 days: €90.00
Ask a question about Add product to cart with url
  • Description

    Features:

    1. Dynamic Product add to cart: The module allows adding multiple of products to the shopping cart, eliminating the need for users to manually navigate through the online store and click on the add-to-cart button.

    2. Parameters in the URL: Users can specify the following parameters in the URL:

      • sku: SKU of the product to be added to the shopping cart.
      • qty (optional): The quantity of the product to be added to the shopping cart (default is 1).
      • coupon (optional): A discount code that can be applied when adding the product to the shopping cart.
    3. Product Validity Check: The module verifies whether the product's SKU is valid and available in the store's catalog. If it's not valid, an exception is triggered.

    4. Support for Discount Codes: If the coupon parameter is provided, the discount code is applied when adding the product to the shopping cart.

    5. Security and Caution: The module is designed to handle any exceptions and errors and informs the customer of successful or unsuccessful product additions to the shopping cart.

    6. Redirect to Shopping Cart: After processing the request, the user is redirected to the shopping cart page, where they can proceed with the ordering process.

    The module is useful for enhancing the user experience and allows for quick addition of products to the shopping cart based on simple URLs. It also enables the use of discount codes to save money on orders.

  • Additional Information
    Platform Adobe Commerce (Magento 2.x)
  • Installation instructions

    Copy the contents of the zip file to the App/Code/Magelan directory, then execute the following commands via the console:

    php bin/magento module:enable Magelan_AddToCartByUrl
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy
    php bin/magento cache:clean

    Description of URL Parameters:

    • sku: SKU (Stock Keeping Unit) of the product you want to add to the shopping cart.
    • qty: Quantity of the product to be added to the shopping cart. This parameter is optional; if not provided, it defaults to 1.
    • coupon: Discount code that can be applied when adding the product to the shopping cart. This parameter is also optional.

    Instructions for Generating the URL:

    1. Specify the Product SKU: First, you need to specify the SKU of the product you want to add to the shopping cart. Each product in your store has a unique SKU.

    2. Select Quantity (optional): If you want to specify the quantity of the product, include it in the URL. If not, it will default to 1.

    3. Enter the Discount Code (optional): If you want to use a discount code, include it in the URL. If not, this parameter is optional.

    4. Compose the URL: Assemble the URL by combining all the parameters. For example, if you want to add a product with SKU "A034," a quantity of 5, and a discount code "test," your URL would be as follows:

      https://www.yourdomain.com/quickcart/addtocart/add/?sku=A034&qty=5&coupon=test
    5. Check the Validity of the URL: Verify that your URL is correct and that the parameters are properly formatted.

    6. Using the URL: You can use the final URL in various ways, such as in links on your website, in marketing emails, or anywhere else you want to enable customers to quickly add a product to the shopping cart.

    It's important to ensure that your online store supports this functionality or customize it accordingly using programming if necessary. Additionally, make sure to adhere to security guidelines and privacy policies when using such URLs.

Stop browsing. Start selling. Contact me now at anze@degriz.net.

My name is Anže, and I am a Magento certified expert in solutions and a creator of multiple award-winning online stores.

I am the architect behind all Degriz projects. You will surely come across me if we collaborate. Even though the phone keeps ringing, you can always tap me on the shoulder if you need advice regarding online stores and their functioning.

I specialize in building custom online stores and I am a master of unique techniques to enhance conversion on your website.

© 2010 - 2024 Degriz. All rights reserved.