Great work
-
Great plugin!
I have made some minor modifications to include sales price and regular price and wpml support.
I hope it helps! Thanks!
Georgefunction getRssProductPrice() { global $post; $product = new WC_Product( $post->ID ); $theproductprice = $product->regular_price; return $theproductprice; } function getRssProductSalePrice() { global $post; $product = new WC_Product( $post->ID ); $thesaleprice = $product->sale_price; return $thesaleprice; } function wcbfeedAddImageToContent($content) { $wcbfeed_rss_image_size = get_option('wcbfeed_rss_image_size'); global $post; if(get_option('wcbfeed_rss_export_image')==1) { if ( has_post_thumbnail( $post->ID ) ){ $content = '' . get_the_post_thumbnail( $post->ID, $wcbfeed_rss_image_size, array( 'style' => 'float:left; margin:0 15px 15px 0;' ) ) . '' . $content; } } if(get_option('wcbfeed_rss_export_price')==1) { $content = $content . '<p>' . __('From: ', 'woocommerce-better-feeds') . '<del>' . getRssProductPrice() . '</del><br><strong>' . __('Only: ', 'woocommerce-better-feeds') . getRssProductSalePrice() . '€ </strong></p>'; } return $content; }
https://www.ads-software.com/plugins/woocommerce-better-feeds/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Great work’ is closed to new replies.