Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Hakik Zaman

    (@hakik)

    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. ??

    Thread Starter Mesut G

    (@mstgngr)

    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 ??

    Plugin Author Hakik Zaman

    (@hakik)

    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!

    Thread Starter Mesut G

    (@mstgngr)

    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.

    Plugin Author Hakik Zaman

    (@hakik)

    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!

    Thread Starter Mesut G

    (@mstgngr)

    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.

    Plugin Author Hakik Zaman

    (@hakik)

    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!

    Thread Starter Mesut G

    (@mstgngr)

    I clear cache, nothing has changed

    https://prnt.sc/sEfRca0vhn4O

    Plugin Author Hakik Zaman

    (@hakik)

    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

    Thread Starter Mesut G

    (@mstgngr)

    I tried 1 and 2. First css solution is worked and everything is okey now.

    Thanks for all ??

    Plugin Author Hakik Zaman

    (@hakik)

    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

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘‘From Location: ‘After or Before’ is closed to new replies.