Discount

This topic contains 10 replies, has 3 voices, and was last updated by  Stiofan O’Connor 6 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #390333

    memorex13
    Expired Member
    Post count: 540

    By default, nothing is set to 0%. I need you to not put anything. It is possible that if the user does not put 3%, 5%, 10% nothing comes out.
    Thank you
    View photo

    #390362

    Kor
    Moderator
    Post count: 16516

    Hi memorex13,

    Just checked the screenshot and I think I know what you needed there. Unfortunately, this requires customization but I’ll forward this to a developer for a second opinion.

    Thanks!

    #390365

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You can filter the custom field to stop it outputting if 0% but i am not sure what field exactly that is.

    Stiofan

    #390461

    memorex13
    Expired Member
    Post count: 540

    I do not know where to change, I tried to modify the css but it does not work. Waiting for a solution, if there is one.
    Thank you

    #390517

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You might be able to do it via CSS, i would need to see your site.
    If not i can provide a code snippet example.
    Please provide wp-admin details in a private reply and i will take a look.

    Thanks,

    Stiofan

    #390609

    memorex13
    Expired Member
    Post count: 540
    This reply has been marked as private.
    #390697

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I added this code snippet:

    
    
    function _my_remove_zero_values($html,$location,$cf){
    	global $post;
    	if (isset($post->{$cf['htmlvar_name']}) && $post->{$cf['htmlvar_name']} == '0' ){
    		$html = "<!-- zero value removed -->";
    	}
    	return $html;
    }
    add_filter('geodir_custom_field_output_text_key_text','_my_remove_zero_values',10,3);

    Please check now.

    Stiofan

    #390718

    memorex13
    Expired Member
    Post count: 540

    If the user logs in the 0% disappears, but for the visitors does not register if 0% still

    #390719

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Sounds like caching, please clear any caching and check.

    Stiofan

    #390725

    memorex13
    Expired Member
    Post count: 540

    Yes sir, I deleted the cache and everything ok, thanks Stiofan

    #390729

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Great! 🙂

Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket