jamajamajaaama
Forum Replies Created
-
Forum: Plugins
In reply to: [WC Fields Factory] Error on product rulesMore information. Interestingly the message requiring the client to chose something from the field is being displayed, but the field is not shown because of the error.
Forum: Reviews
In reply to: [DPD Baltic Shipping] Cannot print labels without shipping addressOnly workaround in this situation is to edit plugin files directly to change the data from shipping address to billing address sent to their api. Afaik, the plan to release a new version of plugin without timeline know where this will be solved.
I scratched my head and did it:
add_filter( 'woocommerce_package_rates', 'custom_shipping_rates', 100, 2 ); function custom_shipping_rates( $rates, $package ) { $shipping_class = 506; // HERE set the shipping class ID $found = false; $productsincart = count($package['contents']); foreach( $package['contents'] as $cart_item ) { if ($productsincart == 1 && $cart_item['data'];->get_shipping_class_id() == $shipping_class){ $found = true; } } if ( $found ) { return false; // If not found we exit }else { return $rates; } }Just don’t forget to assign the same shipping class to all variations of that product.
A little correction. I would like to hide shipping at all if the cart contains ONLY products with certain class. (products, who has shipment included in price like magazine subscriptions).
If the cart contains also other products beside this particular class products, then the shipping options should be shown.Forum: Plugins
In reply to: [Polylang] polylang breaks jetpack gallery functionalityUnfortunately, no solution. Get rid if the jetpack i would say.
Forum: Plugins
In reply to: [Polylang] polylang breaks jetpack gallery functionalityOnly workaround is to disable polylang or jetpack or use wpml or other plugin for gallery modals
Forum: Plugins
In reply to: [Polylang] polylang breaks jetpack gallery functionalityNobody in polylang team is not interested into this issue?
Yes indeed, unfortunately, it is polylang. After disabling everything and reenabling polylang, the error comes again.
This bug still persists on a newest version too! Cannot update any option and also create new one.When i try to create and click the save settings button then it showing no changes found using version 12.8.1
- This reply was modified 7 years, 11 months ago by jamajamajaaama.
Forum: Plugins
In reply to: [Taxonomy Images] please update media library/upload modalYes. this is a must! The modal is old and sluggish.
Forum: Themes and Templates
In reply to: Multiple attribute values for shortcodesBump
Forum: Fixing WordPress
In reply to: Get post category outside the loopHoly cow! That is why you should not continue to work a on one function if you canot solve something 😀
Thank MichalelH!Forum: Fixing WordPress
In reply to: Get id of the parents parentSome workaround – lame one
$parent1 = $post->post_parent;
$parent2 = $wpdb->get_var(“SELECT post_parent FROM $wpdb->posts WHERE ID=$parent1”);if (!($parent1==’318’||$parent2==’318′)){
include “news.php”;
} ?>
Forum: Fixing WordPress
In reply to: Blog page URLActually that problem arises again. How to get page slug parameter from URL, with the $_GET ???
Please help, this is the latest problem I have.Forum: Fixing WordPress
In reply to: post /page slugAnybody? Please!