chris2201
Forum Replies Created
-
@aamiribsf updated it yesterday and it is working perfectly. Thank you.
Forum: Plugins
In reply to: [WooCommerce] Advanced flat rate shipping setupUnfortunately this is not possible out of the box. You can’t combine those commands.
Here’s a snippet to limit shipping costs:add_filter('woocommerce_package_rates', 'cap_shipping_costs', 10, 2);
function cap_shipping_costs($rates, $package) {
$max_shipping_cost = 4; // Set the maximum shipping cost in euros
foreach ($rates as $rate_id => $rate) {
if ($rate->cost > $max_shipping_cost) {
$rates[$rate_id]->cost = $max_shipping_cost;
}
// Adjust taxes if any, based on the new capped shipping cost
if (isset($rates[$rate_id]->taxes) && is_array($rates[$rate_id]->taxes)) {
foreach ($rates[$rate_id]->taxes as $tax_id => $tax) {
$tax_rate = $tax / $rate->cost;
$rates[$rate_id]->taxes[$tax_id] = $tax_rate * $max_shipping_cost;
}
}
}
return $rates;
}- This reply was modified 1 week, 3 days ago by chris2201.
Forum: Plugins
In reply to: [WooCommerce] ‘502 Bad Gateway’ error always keeptry setting php max_input_time to 240.
Forum: Plugins
In reply to: [WooCommerce] shipping price for specific productYes. But you have do define “free shipping” manually.
E.g. Create a shipping option “free shipping”, amount 0,-
Than you create a class, e.g. “nonfree”. You’ll find “nonfree” now under the “free shipping” option.
Set an amount for this class and assign it to the product.Forum: Plugins
In reply to: [WooCommerce] shipping price for specific productGenerate a shippin class and assign it to the product.
Forum: Plugins
In reply to: [WooCommerce] Showing two products per line on a smartphoneYou can realize this with css.
https://www.w3schools.com/cssref/css3_pr_mediaquery.phpForum: Plugins
In reply to: [WooCommerce] Change default sorting dropdown in woocommerceCheck the “woocommerce_catalog_orderby” documentation.
E.G.add_filter('woocommerce_catalog_orderby','remove_unwanted_orderby_options'); function remove_unwanted_orderby_options($sortby){unset($sortby['popularity']);
return $sortby; }
Forum: Plugins
In reply to: [WooCommerce] donation with split payment woocommerceThis should be possible with a lot of custom work.
Setting up two payment gateways and routing “normal” and “donation” products should do the trick.
But as mentioned above, this is a lot of custom work.Forum: Plugins
In reply to: [WooCommerce] UK VAT ISSUERight. But this is not what you want.
Some maths:
which base amount (x) + 20% (x*0.2) equals 10?
x + x*0.2= 10
1.2x=10
x=10/1.2
x=8.33333
Calculating taxes is always: price without tax + price without tax multiplied with taxrate equals price including taxes. pwt + pwt*tr/100 = pit
Your product is 8,- without taxes. Taxrate is 20% (10/100 = 0.2) from 8.-. This is 1.6 So your price incl. tax is 9.6
Or: 8*1.2Forum: Plugins
In reply to: [WooCommerce] Custom ‘Add To Basket’ URL Button Not Workinghttps://theworkingmumsclub.co.uk/basket/?add-to-cart=2250&quantity=2
You need to use “cart” instead of “basket”
- This reply was modified 2 weeks, 6 days ago by chris2201.
Just use the cart description and set a significant font color.
Forum: Plugins
In reply to: [WooCommerce] UK VAT ISSUEYou are calculating wrong.
10 / 1.20 = 8.333 period.
So taxes from 20 are 1.66 period, rounded 1.67- This reply was modified 2 weeks, 6 days ago by chris2201.
Forum: Plugins
In reply to: [WooCommerce] free shipping & couponsTake a look at “Conditional Shipping for WooCommerce” Plugin.
Forum: Plugins
In reply to: [WooCommerce] Discount productsPS: cooles Projekt. Aber die Beschreibung ist fehlerhaft. Da fehlt mindestens ein Wort. ??
“?Lifimu Cycle“ ist ein sozialer Onlineshop, das hei?t, die Preise sind Empf?ngerinnen und Empf?nger von Bürgergeld, Wohngeld und Grundsicherung reduziert.”Forum: Plugins
In reply to: [WooCommerce] Discount productsHey, versuch mal die Startseite mit Blocks aufzubauen. “Handverlesene Produkte”.
Dann sollte es mit den Informationen klappen.