I've tried changing the value of the woocommerce quantity field from another field using gravityforms plugin with number field and calculations form, but didn't work. How to do it? Please help
In the Woocommerce product, if you have the WooCommerce Gravity Forms Product Add-Ons plugin activated, you can select the form you want to use, then in the Form Display at the bottom, you'll see advanced options. For Replace Modified Items? select Yes, for Quantity and Stock, select Yes, and then choose the field you want to populate the cart's quantity.
The advanced options will look for a number or quantity field to replace the woocommerce product quantity.
Related
I have a textbox in a form that I created.
I want to add an expression in the textbox's Control Source property. I also want to bind the textbox to a field in the table using Control Source propety of the textbox.
Is there any way I can add a field name and an expression in the control source property of a particular textbox?
The expression sums up the total amount a customer must pay based on the price and amount.
I tried solving this problem by looking at solutions on stackoverflow from people with the same problem but that didnt work for me either.
I know that storing calculated fields is bad, but I have to do it.
My product has 2 prices (discount price, old price). I want to add two buttons that add product with different price. How I can do it?
If you need to just show old/discounted price for a product use Specific Prices option in Prices tab of a prodct.
Or maybe you want to do that for a bunch of products.
The standard way to do that kind of things in Prestashop is by using price rules. In this case you may need to create a category like Sales/Offers. Assign all products you need to that category in their Association tab. Then go to Price Rules -> Catalog Price Rules + Add a new condition group (choose category here), create the price rule above based on your needs.
Here is the page: http://hawaiianoptics.com/visa
Customer can only select on product and then needs to select color of that product. Can only select one product and one color. What's the easiest way to do this?
Use a radio on all of the products then do separate validation on the dropdowns?
Thanks!
Am new to Magento. Am unable to sort the products in my shopping cart based on price and attribute name -- qty. My attribute values are 750 ml, 500ml, 200ml and they have their respective price. Sorting using only price is working but i dnt know how to sort using the attribute value. The below code displays the minimum price value. But i want to display the minimum price value of the minimum attribute value
echo $this->getPriceHtml($_product,true);
The easiest way is to edit you attribute (in Attribute management) to be shown in product listing and Used for Sorting in product listing
In this way you are sure that the attribute is selected in the collection and it's available from the catalog/product template pages.
I have downloaded the sample paypal IPN script using php and customised with the email for the buyout option and it has also some hidden paramaters such as amount, quantity,return_url, notify_url like this. My main idea is to do the buyout option for the product purchase in my website.The current calculation for the product purchase is as follows:
Item Price:$20
Quantity :10
Total amount $200
I need the calculation to some different way as our site have some static set of quantities and prices, so our point of calculation is as follows:
Item Price:$20
Quantity :10
Total amount:$20
So, the total amount needs to be the same for the given number of quantities.The IPN configuration doesn't allow me to change the quantity field by this way, please suggest some ideas to overcome this issue.
The item price is price per item, the quantity is of course multiplied by the item price. Your second example should have $2 as the --Item-- price. If you want to sell "10 items for $20", I think you will need to make a new item for that combo and just but the actual quantity in a custom field.
If you want to use the same item and paypal's quantity field, I think you need to look into calculating a discount and making that part of the parameters (discount_amount_cart or discount_amount_X for item X I think).