stephde123
Forum Replies Created
-
Forum: Plugins
In reply to: [WPC Share Cart for WooCommerce] Coupon, discount + final priceUnfortunately they don’t have a github site to create a pull request, but I wrote a small snippet that adds the discount codes which were applied before. Just add this to your functions.php of your child-theme.
add_action( 'wp', 'shared_cart', 100 ); public function shared_cart() { if ( isset( $_POST['wpcss-action'], $_POST['wpcss-key'], $_POST['wpcss-nonce'] ) ) { if ( ! wp_verify_nonce( sanitize_key( $_POST['wpcss-nonce'] ), 'wpcss_add_products' ) ) { print 'Permissions check failed.'; exit; } } $saved_cart = get_option( 'wpcss_cart_' . sanitize_key( $_POST['wpcss-key'] ) ); if ( empty( $saved_cart['coupons'] ) ) { return; } foreach ( $saved_cart['coupons'] as $coupon ) { WC()->cart->add_discount( $coupon ); } }
Forum: Plugins
In reply to: [GenerateBlocks] Get rendered CSS for a single blockHi Tom,
yes that helped a lot. Thank you very much.
Worked, thanks
Thanks for your fast reply.
Forum: Plugins
In reply to: [WooCommerce Google Feed Manager] product_detail attributeYes it worked. Thanks a lot for your support.
Forum: Plugins
In reply to: [WooCommerce Google Feed Manager] product_detail attributeOk perfect. Then I wait for the update. Thanks for your efforts.
Forum: Plugins
In reply to: [WooCommerce Google Feed Manager] product_detail attributeYes sure. Take your time. Thanks.
I’m using 1.24.0. Do you think I can easily update to 1.25.0 and overwrite the method again? Couldn’t find a changelog for 1.25.0
Forum: Plugins
In reply to: [WooCommerce Google Feed Manager] product_detail attributeUnfortunately not. I had to overwrite the method make_xml_string_row in wppfm-feed-processing-support.php which makes my solution not updateable.
It works for now, but I can’t update the plugin at the moment, therefore it would be great if you can supply an official solution.
Forum: Plugins
In reply to: [WooCommerce Google Feed Manager] product_detail attributeIn addition: I used the wppfm_feed_item_value filter and my code explodes the coma-separated list and adds the data to the attributes list as you can see below:
$array = []; foreach ( explode( ', ', $attributes['product_detail'] ) as $ingredient ) { $array[] = [ 'section_name' => 'General', 'attribute_name' => 'Ingredients', 'attribute_value' => trim( str_replace( '.', '', $ingredient ) ), ]; } $attributes['product_detail'] = $array; return $attributes;
- This reply was modified 4 years, 5 months ago by stephde123.
- This reply was modified 4 years, 5 months ago by stephde123.
Forum: Plugins
In reply to: [LazyLoad Plugin – Lazy Load Images, Videos, and Iframes] WebP + Lazy Loadit does not work in combination with Shortpixel plugin and the activated “picture”-markup.
If you use this setting in shortpixel plugin there will rendered a html-picture element with webp images inside.
And this webp images aren’t loading via lazy loadingHi,
my WPML version is 3.0.2
But I cannot update WPML at the moment because free updates are expired.
Do you think the outdated wpml version is causing this error?