Hi,
Thanks for reaching out to me. I have released a new version 1.1.4 only for you.
To display “From” after the price, use the below snippet–
add_filter('vpd_prefix_min_price', '__return_false' );
add_filter('vpd_suffix_min_price', function(){
return __(' From', 'variation-price-display');
});
To display “UpTo” after the price, use the below snippet–
add_filter('vpd_prefix_max_price', '__return_false' );
add_filter('vpd_suffix_max_price', function(){
return __(' UpTo', 'variation-price-display');
});
Please place the above snippets inside your child theme’s functions.php. Before placing snippets, please don’t forget to update the version to 1.1.4.
If it helps and you like this plugin, please share your beautiful words here.
It will inspire me a lot.
Thanks in advance for your beautiful words. 🙂
Thanks for your support and new version.
I updated 1.1.4 and use your first snippet code in function.php. In single product page price range solved. It looks (price-from).
BUT in homepage and product category pages prices showing like this: (from-price) https://www.domirus.com/ or https://www.domirus.com/urunler/poster-ve-cerceveli-tablolar/sanatsal-seri/
Everything turned upside down. I think there is an error in the css codes of the template or something 🙁
Hi,
Maybe your theme or any plugin overrides the filter hook we use. Can you please try the below snippet-
add_filter('vpd_prefix_min_price', function($before_min_price){
if( is_product() ){
return false;
}
return $before_min_price;
}, 10, 1 );
add_filter('vpd_suffix_min_price', function($after_min_price){
if( is_product() ){
return __(' From', 'variation-price-display');
}
}, 10, 1);
Then let me know if it resolves your issue.
Hope to hear from you soon!
Thats it!
In a product listing and single product pages are OK. Only similar/related products showing (in single product pages bottom) ‘from-price’ now.
(When i clicked the clear link)
https://www.domirus.com/urun/linear-stain-2/
Thanks for your effort.
Hi,
The issue is coming from your theme. Please add the below CSS at Appearance > Customize > Additional CSS
.product-style-1 li.product:not(.elementor-style) .price {
flex-direction: row !important;
}
Then let me know. Hope to hear from you soon!
Thanks for this css.
I want to say ‘Now everthing ok.’ BUT 🙂
Every place is ok. But in product category pages turned reverse:
https://www.domirus.com/urunler/poster-ve-cerceveli-tablolar/sanatsal-seri/
I hope we win.
Hi,
From my side “From” is right after the price. Please check this screenshot.
Can you please clear your cache?
Hope to hear from you soon!
I clear cache, nothing has changed
https://prnt.sc/sEfRca0vhn4O
Hi,
You can do two things to fix this-
1. Add the below CSS at Appearance > Customize > Additional CSS
.archive.product-style-1 li.product:not(.elementor-style) .price {
flex-direction: row-reverse !important;
}
2. Or, replace the php snippet with the below one-
add_filter('vpd_prefix_min_price', '__return_false' );
add_filter('vpd_suffix_min_price', function(){
return __(' From', 'variation-price-display');
});
Please let me know if it resolves.
Thanks
I tried 1 and 2. First css solution is worked and everything is okey now.
Thanks for all 🙂
Hi,
Glad to know it helped. 🙂
If you found my support helpful and you like this plugin, please share your beautiful words here.
It will inspire me a lot.
Thanks