Pixel - User must sign in to download

Posted In Pixel
  • dave-armstrong 6 months ago
    Hi there - Just wondering what the easiest way would be to only allow the download of a product if the user is signed in? 
    
    Ideally, would love to be able to offer some products for free (behind sign in) and other paid. Baby steps though.
    
    Thanks

    Hi there - Just wondering what the easiest way would be to only allow the download of a product if the user is signed in?

    Ideally, would love to be able to offer some products for free (behind sign in) and other paid. Baby steps though.

    Thanks

  • andrewo0 6 months ago
    Hi @dave-armstrong
    
    pixel uses the default laravel login so you could add this around you download button
    
    >  @if (Auth::guest())
    >  
    >  blablabla you need to login to download
    >  
    >  @else
     
     your download button
     
     @endif

    Hi @dave-armstrong

    pixel uses the default laravel login so you could add this around you download button

    @if (Auth::guest())

    blablabla you need to login to download

    @else

    your download button

    @endif

  • pankaj-kumar-1 6 months ago
    can you please help me.
    
    my images are not showing on the website: http://www.freedownloadgraphics.com/

    can you please help me.

    my images are not showing on the website: http://www.freedownloadgraphics.com/

  • andrewo0 6 months ago
    Hi @pankaj-kumar
    
    on line 59 in resource -> themes -> default- download -> read.blade.php
    
    you can find the button. Around that you need to add the code above

    Hi @pankaj-kumar

    on line 59 in resource -> themes -> default- download -> read.blade.php

    you can find the button. Around that you need to add the code above

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
Want to create your own SAAS?

I can teach you to create your own Software as a Service. Click here to learn more!

Visit SAAS Adventure!