Plugin: WooCommerce
I have a client selling large batteries.
With each battery he sells, he needs an "installation fee" automatically added to the shopping cart.
For ordering 1-16 batteries, installation fee is flat rate of $1,500
For over 16 batteries, there is flat rate of $1,500, plus an additional $75 per each module.
I need someone to show me how to do this in WooCommerce settings.
This is not for all products, but only for some.
Thank you !
Matt
John Cotton answers:
Sounds like a bit of custom code is required -you need is too specialised to be met properly by a plugin.
Use one of the hooks (woocommerce_add_to_cart or woocommerce_before_calculate_totals or woocommerce_calculate_totals or another one) and just add the $1500 + the $75 * X to the totals).
king2244 comments:
Thanks John!
Is this something that would be added into the PHP files?
Do you know which ones?
Thanks
John Cotton comments:
In your functions.php probably - but it doesn't really matter which file it goes in so long as the file is included at some point during the load.
king2244 comments:
I see.
Would you recommend a child theme be in place then?
Also, how does WP questions work. Do you guys automatically get paid, or do I have to pay you guys ?
Thanks !
Matt
John Cotton comments:
If you've got your answer, close the question and vote!
king2244 comments:
I did. Thanks !
Balanean Corneliu answers:
Try this plugin its free.
http://wordpress.org/plugins/woocommerce-extra-fee-option/
For add extra fee
Balanean Corneliu comments:
This one can be useful to for your job to http://wordpress.org/plugins/add-tip-woocommerce/
king2244 comments:
Neither one of these will work.
The extra fee needs to be added to certain products.
The customer will not select this.
We need it automatically added if they choose a certain product.
Again, if they order 1-16 batteries, there is a fee of $1,500.
If they order more than 16 batters, there is a fee of $1,500 plus $75/each additional battery.
Thanks :)
phppoet answers:
download and install this plugin
http://wordpress.org/plugins/woocommerce-add-extra-charges-option-to-payment-gateways/
after activating this you need to go to your woocommerce settings -> payment gateways-> cheque
there you will see an extra field for extra charges.
king2244 comments:
I don't need the fee attached to a payment gateway...
Rather, I need the fee attached to specific products. Please see my initial question.
Thanks :)