magento product qty as radio buttons - php

I am building a magento store that has a virtual product.
I would like to add radio buttons for some set product quantities. For example have 4 options on the page for 5 Qty, 10 Qty, 15 Qty and 20 Qty.
Then under this have an option to manually enter the qty.

Related

How to make Qty Attribute for Woocommerce

How can we make custom attributes as quantity.
I want to make quantity attributes so it would be easy for the customers buy in bulk with pre-defined options.
Example: X product with attributes 3,5,10 so when user select 3 and add to cart it gonna add X product 3 qty with showing total price for 3 or if they selected 5 then 5 qty it gonna add up with showing the price of 5 qty.
Something like this
Step 1: Select Product > Variable Product
Step 2: Create Attribute > Add Label as Quantity & Values 3, 5, 10 etc
Step 3: Create Variations > It will ask to create Variable Products using Attributes. Click Yes
Step 4: You can add Prices as per your Quantity in generated products after Step 3.
(You can also add images as per your quantities if you wish)

Woocommerce: Table specific product sales with metadata in front end

Ok so here is my aim:
I have a single product with no category. I have used the 'YITH Woocommerce Product Add-ons' to add a group of checkboxes to the product that accepts 4 selections. The order is raised and the product has the 4 selections of checkboxes listed in the cart/checkout pages and also on the order page in my account. So far so good! Now...
I wish to produce a table on the frontend that lists all the sales of the product with the order date, first and last name of the customer and the 4 selections the customer made when ordering the product. For example...
Product X Sales:
First Name | Last Name | Date | Select 1 | Select 2 | Select 3 | Select 4
I have looked at the plugin 'Product Customer List for WooCommerce', this has a shortcode for displaying a list of customers and date when the product was purchased however; I don't have a way of extracting the metadata stored by the YITH Product Add-on field attached to the product sale.
Any help would be appreciated either with or without the Product Customer List plugin. Looking for some code possibly to recall the data per product sale and list it correctly in a frontend table.
Thanks in advance!
This option is now available in the pro version of the plugin

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.

configurable product price does not change auto after select option from dropdown in magento

Magento configurable product does not change price as I select options from dropdown. I am using a custom theme.
for example : Parent Product has two sizes Size 1 and Size 2.
Size 1 is of $100,
Size 2 is of $200
As I select Size 2 the price on product detail page should changed to $200
What are the steps?
Add base price to the configurable product.
Under the associated tab where the list of simple product selected for the configurable product.
under the "Super product attributes configuration" specify the price difference in front of each simple product
for ex: Configurable product price is $20 and attributes are REd, Yellow
Product with Red attribute is of $22
Product with yellow attribute is of $24
So specify 2 for red attribute product and 4 for yellow attribute product

Cart items in magento

I want to display the cart items in magento. Currently it's display on the basis on product qty, but I want to display them on number of product added into the cart.
E.g. If I added 1 product of 1kg and other product of 0.500grms then in header displays 1.5 items, I want to display it as 2 items.
Any suggestions? My Magento version is 1.9.0.1
There are 2 functions available for Item count.
1) Mage::helper('checkout/cart')->getItemsCount() -- return shopping cart items count means how many sku add to shopping cart.
2) Mage::helper('checkout/cart')->getSummaryCount() -- return shopping cart items summary (suppose you add sku1 6 qty and sku2 3 qty = total 9 qty return)
You can use 1st function.
There is a config setting field under System > Configuration > Sales > Checkout > My Cart Link with two options: "Display number of items in cart" and "Display item quantities". Choose the second option and your displaying issue will be solved.
Documentation here:
app\code\core\Mage\Checkout\Block\Cart\Minicart.php
Points to a config setting in Magento admin:
admin/system_config/edit/section/checkout/
My cart link
For edge cases you may need to loop through the cart and quantify as desired yourself.

Categories