MennoWebdesign
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] extra costs each buyThanks Mike!
That worked for me.
Forum: Plugins
In reply to: [WooCommerce] extra costs each buyWhere do i have to put this code?
And how do i change the percentage to euro?
1,80 euro instead of the 1%
Thanks for the quick support Mike.
/**
* Add a 1% surcharge to your cart / checkout
* change the $percentage to set the surcharge to a value to suit
* Uses the WooCommerce fees API
*
* Add to theme functions.php
*/
add_action( ‘woocommerce_cart_calculate_fees’,’woocommerce_custom_surcharge’ );
function woocommerce_custom_surcharge() {
global $woocommerce;if ( is_admin() && ! defined( ‘DOING_AJAX’ ) )
return;$percentage = 0.01;
$surcharge = ( $woocommerce->cart->cart_contents_total + $woocommerce->cart->shipping_total ) * $percentage;
$woocommerce->cart->add_fee( ‘Surcharge’, $surcharge, true, ” );}
?
Forum: Themes and Templates
In reply to: No posts foundCan anyone take a look? Thanks in regards! 🙂
Forum: Themes and Templates
In reply to: [AccessPress Lite] Translate 'Older posts / Newer posts'@acces Keys, thank you for notice.
Forum: Themes and Templates
In reply to: [AccessPress Lite] Translate 'Older posts / Newer posts'Okeej thanks guys for the reply! Andrew, didnt knew there were translating plugins so you dont change the hard-code. I will use that in the future.
@access Keys, thanks alot accesspress-lite/inc/template-tags.php did work! 🙂 Thanks in regards.
@Kesentielu, what do you mean with the Acces keys?
Thanks guys!
Forum: Themes and Templates
In reply to: [AccessPress Lite] Translate 'Older posts / Newer posts'Anyone? Please, check it out… i really need to get it fixxed.