How can I add a checkbox option to shopping cart in Magento?

To add a checkbox option to the shopping cart in Magento, you can follow these steps:

  1. Login to the admin panel of your Magento store.
  2. Go to the product edit page of the product for which you want to add the checkbox option.
  3. Click on the “Custom Options” tab.
  4. Click on the “Add New Option” button.
  5. In the “Option Title” field, enter the title for the checkbox option (e.g. “Gift wrapping”).
  6. In the “Input Type” field, select “Checkbox” from the dropdown menu.
  7. Set the “Price” for the checkbox option, if applicable.
  8. Save the product.

Now, when a customer adds this product to their cart, they will see the checkbox option and can select it if they wish.

If you want to add the checkbox option to all products, you can do so by following these steps:

  1. Go to the admin panel of your Magento store.
  2. Click on “Stores” in the main menu and select “Configuration”.
  3. Click on “Sales” in the left sidebar and select “Checkout”.
  4. Expand the “Shopping Cart” section.
  5. In the “After Adding a Product Redirect to Shopping Cart” field, select “No”.
  6. Save the configuration.
  7. Go to “Stores” > “Product” and select “Custom Options”.
  8. Follow steps 4-7 from the previous section to add the checkbox option to all products.

This will add the checkbox option to all products in your store, and customers will be able to select it if they wish.