Simon Frntic
Forum Replies Created
-
Forum: Plugins
In reply to: [Points and Rewards for WooCommerce] Points deduction and taxJust for info, above code isn’t ok, because it add’s discount on every product, so don’t use it.
Forum: Plugins
In reply to: [Points and Rewards for WooCommerce] Points deduction and taxTax setting didn’t help. But I found this code which does this:
/**
* Apply coupon discount after tax calculation in WooCommerce.
*/
add_filter(‘woocommerce_coupon_get_discount_amount’, ‘apply_coupon_after_tax’, 10, 5);function apply_coupon_after_tax($discount, $discounting_amount, $cart_item, $single, $coupon) {
// Calculate the discount on the price after tax
if ( $coupon->get_discount_type() == ‘percent’ ) {
$discount = ($cart_item[‘line_total’] + $cart_item[‘line_tax’]) * ($coupon->get_amount() / 100);
}
elseif ( $coupon->get_discount_type() == ‘fixed_cart’ || $coupon->get_discount_type() == ‘fixed_product’ ) {
// Ensure discount is applied to total price including tax
$discount = min( $discounting_amount + $cart_item[‘line_tax’], $coupon->get_amount() );
}
return $discount;
}But problem is that Point and rewards add discount on price before discount coupon is applied. So it can give you more discount points than you are entitled.
Forum: Plugins
In reply to: [Points and Rewards for WooCommerce] Points deduction and taxI see so discount is calculated before tax as in woocommerce coupons.
Do you know how can I change this. I tried to google it but didn’t find solution yet.Other options is, plugin is set to rewarded points on whole sum. So is it possible to change rewarded points to price without tax?
Regards
Forum: Plugins
In reply to: [Timeline Express] Layout change in other languagesHello,
when I put site on online server it started working ok.And yes I also think there’s a problem with no-icons plugin. I use version No-icon 1.1.1. and Timeline 1.4.2
When I use icons I don’t have this problem. Well at least for now on online server problem doesn’t appear any more and online is where it matters. So I hope it won’t show up again.Thank you for your reply.
Forum: Plugins
In reply to: [CMB2] taxonomy select variable format in DBThis makes sense and that’s was what i needed. Thank you for answer.
Forum: Plugins
In reply to: [Mailchimp List Subscribe Form] Slovenian translationHi Gunter, I found file and looked in it. But I still don’t know how to set it up. In file there isn’t for example “First name”. I know where to put language file, edit, use them ect.
How do I setup below code to get it translated. I see you have variable {language}, does this have anything to do with it.
Can you change below code in correct way to use it in two languages.<p> <label>First Name:</label> <input placeholder="Your first name" name="FNAME" type="text"> </p>Forum: Reviews
In reply to: [WP Migrate Lite - Migration Made Easy] Great pluginNo, they were on same domain, but it didn’t changed it. Well i fiex it and on other sites it worked ok.
Forum: Fixing WordPress
In reply to: youtube embeded video disappears on MacWell, this is a new feature in wp 3.9 and I didn’t realize it. Thanks for feedback.
I’ll try it on my client computer.
Forum: Themes and Templates
In reply to: Gallery modificationThank you. This option with pseudo class worked exactly as I needed.
Did you tried to update permalinks? I had similar problems last week and it helped.