thedesignbank
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce RRP] Change the Product Price Text for multiple product IDsHi Brad,
Many thanks for this!
This second piece of code you sent has worked perfectly for products with one variation (https://bulletbuildingproducts.co.uk/test/product/coxdome-flat-glass-electric-open/)however if they have more than one variation: (https://bulletbuildingproducts.co.uk/test/product/coxdome-trade-range-fixed/)
It crosses off the text, but doesn’t replace it with the return
‘new text’;
.Is there anything else I would need to add to this?
Many thanks,
MeganForum: Plugins
In reply to: [WooCommerce RRP] Change the Product Price Text for multiple product IDsHi Brad,
Thanks for your reply. I’d like to change this for 8 products only.
I’ve used the code below:function change_before_regular_price( $woo_rrp_before_price ) {
global $post;
if ( ’96’ == $post->ID ) :
return ‘Your new Product Price Text’;
else :
return $woo_rrp_before_price;
endif;
}
add_filter( ‘woo_rrp_before_price’, ‘change_before_regular_price’ );This has worked perfectly for one product. However, I’m not sure how I can go about adding more than one product ID to this list. I have tried this for example:
function change_before_regular_price( $woo_rrp_before_price ) {
global $post;
if ( ’96, 97, 98, 99, 100′ == $post->ID ) :
return ‘Your new Product Price Text’;
else :
return $woo_rrp_before_price;
endif;
}
add_filter( ‘woo_rrp_before_price’, ‘change_before_regular_price’ );However, this didn’t seem to work.
Any further pointers would be much appreciated!
Many thanks,
MeganForum: Plugins
In reply to: [WooCommerce RRP] Change the Product Price Text for multiple product IDsHi,
I’d be grateful if someone could please provide any help at all, as I still haven’t managed to resolve this?
Thanks.Just an update on the situation, I noticed my theme wasn’t Woocommerce ready, so I added woocommerce.php into my themes includes folder, and the relevant code to my functions.php file, and this has resolved the issue as the filter now filters my products as it should.
Hi,
This is the exact link: https://lifterz.designbankdevelopment.co.uk/wp/ the shortcode is just below the header slider.
The theme I am currently using is: https://foundationize.com/wordpress.
I believe this could be a compatibility issue with this particular theme. Would it be possible to make the plugin so that it is compatible with this theme?
I’ll also mention that all plugins have been disabled and enabled again, and I’ve tested this on a clean testing site on the Foundationize theme with no other plugins apart from the plugins required to make this plugin work.
Forum: Plugins
In reply to: [Max Mega Menu] Nav Links Don’t Work in ChromeBrilliant, this has worked for me!
Many thanks!