Chybne prepocitavani meny
-
Dobry den,
u tohoto pluginu se spatne prepocitava mena:
https://www.ads-software.com/plugins/woocommerce-multilingual/Misto cca 5 euro, je cena prepoctena na 2000 euro ??
U toho pluginu se muze manualne nastavit cena pro jednotlive meny ve woocommerce nastaveni -> doprava -> ceska republika -> ceska posta (napriklad) nastaveni. Jenze u zasilkovny chybí prave to nastaveni, je tam jen moznost vymazat. Z toho duvodu pak nejde manualne upravit cena pro jinou menu a je tam ten automaticky divny prepocet.
Jde s tim neco udelat?
Zatim jsem ty ceny vyresil pres php hook:
add_filter( 'woocommerce_package_rates', 'change_zasilkovna_price', 10, 2 ); function change_zasilkovna_price( $rates, $package ) { //shipping ID $shipping_rate_id = 'packetery_shipping_method:packetery_carrier_zpointcz'; //zjisti castku v kosiku global $woocommerce; $amount = $woocommerce->cart->cart_contents_total+$woocommerce->cart->tax_total; // Pokud je jazyk anglictina a pod 40 euro if ( array_key_exists( $shipping_rate_id, $rates ) && ICL_LANGUAGE_CODE == 'en' && $amount <= 40) { $rates[$shipping_rate_id]->cost = 0.75; } //nad 40 euro elseif ( array_key_exists( $shipping_rate_id, $rates ) && ICL_LANGUAGE_CODE == 'en' && $amount > 40) { $rates[$shipping_rate_id]->cost = 0; } return $rates; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Chybne prepocitavani meny’ is closed to new replies.