Magento Checkbox for bundle products needs qty - php

With a bundled product in magento you can select various types of options - drop down for example adds a Qty box so you may choose the quantity of items from the drop down.
I am using Checkboxes instead as i need many choices and need a Qty box associated - how is this possible? I've spent hours trying to code this.

If you use a radio button you can allow user defined qty

Related

Magento 2 add custom option in cart without create

I have one virtual product in my backend. The flow is like user can purchase this product with different dynamic option. But I can not add that option in backend as custom option as those option is dynamic.
I want to add this product to cart with that option without create custom option in is it possible ?
For Example :
I have one virtual product that is Tour Package. User can purchase that package but with different duration and price and type. Tour type is dynamic admin can add this from backend. Tour type like golder, silver etc.
Duration is like 1 week, 2 week, 1 month this duration is also dynamic admin can add duration while create tour type.
Now I displayed this tour type in front-end page and added button to add to cart with that virtual product.
Now the issue is that if user purchase Gold tour then I want to pass "Gold" as addition option in cart. and if user select other tour at same time then that product should add to cart individually.
Please give me any solution.
David,
you can do it via Admin panel of Magento 2.
Go to Catalog > Add product. Choose Virtual product. Then edit it and add all information you need (such as name, price, category, etc). Once you are done with this settings scroll down to Configuration. At step 1 you should create and choose needed attributes, at step 2 you should select values from each attribute. You should go through all the steps and save them. Then put price and quantity.
We prepared some screenshots for you to help in this process.

Open cart multiple Quantities with different pricing

I was wondering if there was an easy way on opencart(2.0.x) to let a user buy a product in 3 different Quantity options. 3,6, or 12 quantity, with each quantity having a unique price. (I.E- QTY 3 would sell for 10, QTY 6, 8.50, then 12 pack for 7). I tried to use the options module, to create a few radio button options but that tacks on the option to the original set price. I want the only options available to be the 3 types of quantity options. so if i choose the 3 QTY option I only pay $10.
Thank you in advance
No modifications are needed for this.
Go to the product's edit page and look at the discounts tab. In here you can put different quantities and prices. Note that the price field is per item, so you just need to divide your total by the number of products.
You can leave the start and end dates empty if they aren't appropriate.
There is a demonstration of this functionality on the official demo site and (I think) the dummy data provided when you first install OpenCart.

Magento - How to create different weight-price drop down in products

How can I build a drop down list with different weights with prices for a product, which can be selected by user. Something like this
Example
When user selects his required weight from the drop down the price also changes.
You can manage this by creating Custom Option for the products in Magento

Jquery refresh select lists each second

I am working on an e-commerce project and I would like to set up 2 dropdown lists linked in ajax. The first list contains the products and the second one contains the quantity of each product.
There is a problem when a user selects a product and then a quantity, and, in the same time another user selects a product and then a quantity => the quantities are not correct. I will try to explain what I mean.
Imagine a first product named "A" with 2 quantities.
A first user choses this product and selects 1 quantity.
there is one quantity left for this product.
At this same very moment, if another user selects the same product, the quantities show "2" ! It is difficult to explain but I wonder if a timeout function should fix this.
You could use setTimeout to update the quantity drop down items every so often based on the product the user has currently selected however I think this a bit overkill.
You would also have to set and store on the server the quantity values every time the user changed their selection.
It is do-able but I would just re-validate the quantity the user has selected is still available once they submit the form.

Magento: Using one quantity field for all products options?

I'm trying to create a Bundled product in Magento with multiple options.
Each simple product I have is tiered in price.
Example;
Thank You Card Bundled Product ($0)
Dropdown Option 1: Colored Envelopes ($0.90-$0.50 Depending on
Quantity, color in dropdown)
Dropdown Option 2: Size of Card ($3-$2 Depending on Size chosen and
quantity)
Quantity = 0-100
But when you have multiple product options each one has a quantity field they need to fill out, I'd like to just have one field that would represent all the options so the customer doesn't have to fill out multiple boxes and we don't have a problem with people entering different numbers.
Any help would be greatly appreciated! Thanks!
If you have set the "User Defined Qty" to no on each of the associated products then these qty fields are useless anyway.
All you need to do in your current theme is apply a CSS rule to hide these fields. If you are using the default theme then you could apply -
.qty-holder { display: none; }
qty-holder is the class of the span the holds the label and input field for qty of each option.
The bundle itself still has a qty field to buy multiples of the same configuration however its field and qty have a separate class so won't be affected by this rule.

Categories