Make discount option visible for non logged in users

WPPizza – A Restaurant Plugin for WordPress Support Add-Ons Extensions Coupons and Discounts Support Make discount option visible for non logged in users

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16570
    Pascal
    Participant

      Hi,

      We currently are running the first discount with this plugin. We would like the coupon to be used only once per person. So I checked that option. But this does not display the coupon textbox because the users are not logged in.

      Would it be possible to still show the coupon textbox to everyone but if the user is not logged it would give a message that a user would have to create an account?

      Thanks

      #16572
      Olly
      Admin & Mod

        feel free to type whatever you want to type wherever you want to type it
        you could also selectively display your message with a conditional in an action/filter of some sort if the user is not logged in.
        something like

        
        <?php
        if ( !is_user_logged_in() ) {
        echo 'special discounts for registered users';/*or whatever you want to say */
        }
        ?>
        

        there are endless ways to do this really

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘Make discount option visible for non logged in users’ is closed to new replies.