I am working with Magento bundle products that contain hidden bundle options that need to have the quantity updated programmatically. A problem arises when the bundle quantity is edited from the shopping cart. I have a button set up to submit the bundle quote item to an updateLineItemAction() method in my own CartController to handle the update of the hidden bundle option.
The updateLineItemAction() method locates the hidden bundle option and assigns the updated quantity to the "selection_qty_X" and "product_qty_X" properties, where X is the ID of the bundle option. Values in the "info_buyRequest" are also updated. After saving the quote item, there's a redirect to the cart to show the updated cart values.
The updated quantity is displayed correctly in the cart, and the hidden bundle option has the correct quantity assigned. The problem is that the bundle item price has not updated to reflect the updated quantity on the hidden bundle option. I did something similar to this in Magento 1.1.x and it worked fine. Doing this now in 1.4.1.2, the price is not automatically updated when the quote item is saved. I've tried saving the quote and the cart again after updating the item, but that doesn't seem to have any effect.
What is the proper way to recalculate the price for a quote item when subitems have had the quantity changed? Is there a better way to change the quantity of a quote item bundle option so that the price of the bundle item is updated correctly?
The solution for my case was to update the quantity values of the selections as noted in my original post, and also to adjust the quantity assigned to the bundle item associated with the hidden bundle option. This last step was not necessary in versions prior to Magento 1.4.
Related
I have a selected date when I choose a carrier.
I try to reset this date to zero if I modify my cart.
I tried with ActionCartSave() hook but it does not take place when I add or remove an item from my cart, but just before the validation of this one.
Try to work with this hook:
actionBeforeCartUpdateQty
this hook is located in Cart::updateQty and it's fired before adding, updating and deleting product.
Wordpress 4.9.4, WooCommerce 3.3.4 and Product Bundles 5.7.7.
When I add bundled item into cart, cart is filled with the bundle.
All i want is that i can remove some products from the bundle, like minimum=0 or add an remove button.
The problem is, when i fill in Minimum Quantity of zero in the bundle plugin, add the Bundle to the cart and haven't increased the quantity of the zero-quantity bundled items, then they do not show up in the cart.
The standard woocommerce code is:
only products with quantity greater than zero can display in the cart.
Is there any solution to allow a minimum of zero in the cart?
Or just remove a bundled product with a button?
I will be very direct..
Reference Ecommerce Website
There is a custom stitching options menu on the product description page.
1. Unstitched
2. Standard Measurements
3. Custom measurements
On standard and custom measurements, drop downs and a popup opens respectively, whose details goes on further with the added product.
How can i implement the same product options menu in magento ?
it's easy the reference site is a magento, an that are a bundle product
the only thing you need create a new product with the options.
UPDATE for #Enigmativity
in the official webside of Magento say:
"A bundle is a “build your own,” customizable product. Each item in a bundle can be based on one of the following product types:
Simple Product
Virtual Product
OpenStep 1: Create the Bundle Product
On the Admin menu, select Catalog > Manage Products. Then, click the Add Product button.
In the Create Product Settings section, select the Attribute Set for the product.
In the Create Product Settings section, do the following:
a. Accept the “default” Attribute Set, or select another.
b. Set Product Type to “Bundle Product.” Then, click the Continue button.
Step 2: Complete the Product Information
Complete the product information as you would for a simple product, with the exception of the following:
a. On the General tab, set both the SKU and Weight fields to one of the following:
Dynamic
Fixed
If using a fixed SKU or Weight, enter the actual value in the field to the right.
Dynamic SKU and Weight
b. On the Prices tab, set Price to one of the following:
Dynamic
Fixed
If using a fixed price, enter the actual value in the field to the right.
Minimum Advertised Price (MAP) is not available for Bundle products with dynamic pricing.
Dynamic Price
c. Then, set Price View to one of the following:
As Low as
Price Range
Click the Save and Continue Edit button.
Step 3: Add Bundle Items
In the Product Information panel on the left, select the last option, Bundle Items.
Then in the Shipment section, set Ship Bundle Items to one of the following:
Together
Separately
Shipment
In the Bundle Items section, click the Add New Option button.
In the Default Title box, enter a label for the bundle item, as you want it to appear on the Customize Product page. Then, do the following:
Bundle Items
a. Set Input Type to one of the following:
Drop-down
Radio Buttons
Checkbox
Multiple Select
b. Set Is Required as needed.
c. In the Position field, enter the order that you want this item listed in relation to other items included in the bundle.
Click the Add Selection button. Then, do the following:
Select Products
a. Click the Reset Filter button to display the unfiltered list of products.
b. Select the checkbox of each product that you want to include in this item.
c. In the Qty to Add column, enter the quantity of each item to be included.
Click the Add Selected Product(s) to Option button. When the items appear in the Bundle Items list, do the following:
a. Set User Defined Qty to one of the following:
Yes
Displays an input box so the customer can change the quantity.
No
Prevents the customer from changing the default quantity.
b. Enter a number in the Position column of each item to determine its place in relation to other items.
c. To make an item the default selection, select the Default option of the item to be pre-selected in the form.
Bundle Items
7. Repeat steps 3-7 for each bundle item you want to include.
8. When complete, click the Save button to save the bundle product.
"
reference : http://merch.docs.magento.com/ce/user_guide/catalog/product-bundle.html
I have managed to make a csv which imports my products using magmi into my magento store. All works well but the buy now buttons don't appear unless I go to the product and click save. I've tried reindexing or clearing the cache but nothing seems to work. Any further ideas. The same happens when i send an update import.
I'm using the up to date magento/magmi.
Hi,
I'm using this sample. I've already tried to update an randomly attribute of many products, to act like an "mass save", but it won't works too.
The 'add to cart' button will disappear if you let Magento manage stock / when the item is out of stock. Did you define is_in_stock and manage_stock in your header?
Try this:
In Catalog > Manage products. Select all or the ones you want. Action : Modify attributes.
Set
Catalog-> Manage Products-> X product-> Design-> Display Product Options In: to Product Info Column
Worked for me
Is it possible to have a bundle product that when added to the cart adds each of the bundle items as individual line items.
I want to allow my customers to configure their product (let’s say it’s a computer) and then in the shopping cart, remove an item they don't want - or change their mind about - from that bundle. They might then choose to add a new item instead - or a bunch of other (non-bundle stuff, just normal shopping).
The idea being that they have a fast method of adding most of the stuff they want in this bundle, but they can then edit their cart to add something that wasn’t available as an option to them when configuring the bundle.
I don’t want to overload the user with too many options in the bundle product page.
I might have missed an option in Magento, but currently it adds all the bundle items into the caret as a single line item, making it uneditable in the way I want.
Any suggestions please?
This behavior in Magento is intentional, as you may not want to let a customer order a PC without a CPU or memory. In your case, this assumption appears not to be the case, but that remains the method for using bundled products.
There are a few options open to you to avoid this situation. Firstly, you could use some product type other than bundle, and actually add simple products to your cart rather than the bundled ones. This would allow customers to add options at will, but would not preserve any promotional pricing on the products, as Magento checks those prices/discounts on every page load, and would kick out any changes you set manually.
The other option would be to allow customers an easier path to changing the bundle product that they have chosen. When rendering the bundle product, you could render a little X button (or whatever you find appropriate), which would lead to an action you specify, whose job it is to change the bundle options, resave the cart item, and redirect the user back to the cart. This is probably the cleanest solution to the problem.
Hope that helps!
Thanks,
Joe