How to Add Dynamic Price in Magento for Vegetables - php

How to add dynamic pricing in magento when we select the available quantity from the drop down menu.
here is an Example
So, by default what i want is that it should display the price of 1 kg and then when we select other options from the quantity it will alter the prices.
So, by default it must show the price of 1 kg and then when modify it will show the altered prices.
Follow the example above.

For this you can create a custom option for that product with dropdown type and provide the price for each value.
Hope this will help.

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 different prices based in weight

It is posible in woocommerce to create different prices based in weight to display in a select dropdown?
For example:
food for dogs:
5k = $20
10k = $40
20k = $60
It is possible in WooCommerce to create different prices based on weight -
In Variable products in WooCommerce that lets you offer a set of variations on a product, with control over prices, stock, image and more for each variation.
Step 1- Set the product type
Go to: WooCommerce > Products.
Select the Add Product button or Edit an existing product. The Product Data displays.
Select Variable product from the Product Data dropdown.
Step 2- Add attribute.
Go to : Products > Attributes
Then give name attribute.
Save.
Then select on weight attribute.
Add sub-attribute in weight attribute (5k,10k,15k).
Step 3- Add attributes to use for variations
Go to : Products
Then select product you set as variable product in step 1
Select Attributes then select Custom product attribute(that is weight), and Add.
In weight select sub-attribute.
Then Select check box used for variation.
Save attribute.
Step 4. Add variations
Goto:Variations Select Add variation from the drop-down menu, and click Go
Select attributes for your variation. To change additional data, click the triangle icon to expand the variation.
Edit Price for each attribute.
Save Changes.
Read more: https://docs.woocommerce.com/document/variable-product/
Watch this Video- https://www.youtube.com/watch?v=iUcAf89LfCc
https://www.youtube.com/watch?v=aen8ieJuB88
Step 1: Go to product edit page, for which you like to set prices based on weight.
Step 2: Select Product Type as a variable product, see the image below. Create product attribute, save the attribute. I named the attribute weight .
See the image below:
Step 3: Now we need to add product variation, see the image below:
Step 4: For each of these variation, u can set any prices you want, see the image below
Step 5: update the product, that's it.

Magento Product "Custom Options" Percentage

My Magento store is running 1.9.1.0. All of the products within my store have a default price of $0.00 because the price is determined from "custom options" that are selected within a product's page.
Although, one of my "custom options" for a product is based from 15% of the entire product's price. For some reason, it does not work. I am assuming that it does not work because the default product's price is $0.00 and it does not take the price after all of the custom options have been selected into consideration.
I would like some guidance on how I can make it so that the "custom option" for 15% takes into account the full amount after all custom options have been selected.
Thank you for your help in advance.
here is two way to do this work
Way : 1
If your Product Price is $0.00 and you want to change the Price 15% as per the option
then you can try the Group Product in Magento
here you have the base Product Price is depend on the Selected Products Price
Way : 2
You can create a attribute based on the Price like : tmp_price and put the product Price here and calculate the 15% of the Price of the option using the customization
let me know if can help more in this task

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: 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