I am using Woocommerce with WordPress. How do I calculate pricing based on number of attributes selected as shown in the image. E.g. the current order should amount to Rs. 9100 as there are 9 attributes priced at Rs. 1000 each and Rs. 100 for the product base price.
Overall quantity for the product always is one.
I was able to solve the problem by using Gravity forms and Gravity forms addon for woocommerce.
Next I created added multiple product fields which automatically come with quantity field and finished with the total field.
Next I created a product with and integrated it with gravity form I just created.. voila..
Edit: if you guys have any other creative of doing this. Please answer below.
You need to setup product attributes and connect variations so 1 product can have multiple options which all influence the price. It is explained here:
http://wcdocs.woothemes.com/user-guide/product-variations/
Related
I'm using Flexible Checkout Fields plugin with wooCommerce. I have a select field where the user selects a number of attendees and 1, 2, or 3 team players. Each player option has a price. IF the user has a membership I want to override the player price and set it to 0. I was trying to do this with FCF Field validation with no luck. If you're wondering, the product in question has a base price everyone is charged, so using membership discounts won't work in the product. I thought about changing it to a variable product, but that started getting really messy as a user may have 3 attending, but only 1 or 2 playing. The simplest approach seemed to be just to validate the player fee based on membership and number chosen.
FCF validation number filter.
Looking for help, I have an online shop, and I would like to adjust shipping methods depending on the product the customer chooses. The shop is located in Portugal.
Basically, I would like to create a set of rules:
Products from brands A and B can be shipped everywhere, from brand C only to Portugal.
Product rules: If the product's stock count is more than 0 - local pick-up is available if it's "in stock," there is another method with local pick-up in 5-6 days.
An additional rule for Brand C - If the product's stock count is more than 0 - local pick-up is available, and shipping is available everywhere if it's "in stock," there is another method with local pick-up in 5-6 days and shipping available in a long time.
I'm using flexible shipping ( basic version, can upgrade if needed), and Perfect Brands for WooCommerce.
Do you guys think it can be done by PHP? Or should I mix some kind of coding with other plugins?
I want to set custom price per product based on selected payment gateway. For an example:
Cash price - 1000
Visa Master - 1100
PayPal - 1250
Likewise I want to show different price based on selected payment gateway. Also, I want to show lowest price as starting price for particular product when browsing the website.
Currently I have define the upper limit price and giving discount based on the selected payment method. But I don't like that way because when browsing it is showing the upper limit price instead of lowest price for users who are browsing. As this this example it is showing 1250 for user's who are browsing the website. Instead 1250 I want to show starting at 1000.
Hope you can help me out on this.
Thanks in advance
Use woo discount rules, with product adjusment
I would like to add conditional pricing to the woocommerce cart.
I have business card products priced at 65.00 for 250 and 85 for 500. I would like it so when a user adds two product items in the cart at the individual price of 65.00 the cart total is not 130 but rather a value I specify.
I know some of the woothemes plugins could do this but I don't want to pay as I know somewhere out there is a simple enough solution.
Any help much appreciated.
Thanks
You can just create a woocommerce coupon in Wordpress that will discount the desired products(s)/cart total by a specific percentage amount.
You can set various "Usage Restriction" settings that will make the coupon only be applicable under certain circumstances (such as minimum spend, products, expiration date). Users can then be provided with a a coupon code to enter at the cart checkout.
This will be the easiest and fastest the solution that doesn't involve creating code for Dynamic Pricing.
The following link will help you to set up a Coupon:
WooCommerce 101 Coupons
For more specific pricing needs you will have to create a function that hooks into the Woocommerce shopping cart in the functions.php file. The logic for the function should be something like this:
Get the cart contents.
Check that the number of items in the cart are equal to 2 (or more if you want).
if $cart_count == 2 then $cart_total - $x_amount.
This Question will help you understand how to write a simple function to achieve this.
Best of luck! :)
I've been handed over a woocommerce website and a majority of the products are missing a sku number.
What would be the best way to go about updating products without a sku number?
Also keeping the skus unique?
Best practice for SKU's is to use small, (mostly) meaningless codes with a uniform fixed length and pattern.
So suppose you sell less than 1000 products, take a code of 5 characters. And assign the codes automatically using a script:
10001 first product
10002 second product
etc
How these codes should be generated depends on you (business) domain model / woocommerce configuration (using variants yes/no). For inspiration see this project: https://github.com/tamarazuk/woocommerce-product-sku-generator