Question By
Unsolved

Pixel - User must sign in to download

dave-armstrong ・

Mar 20th, 2019 03:12 PM

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 ・

Mar 22nd, 2019 05:12 AM

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 ・

Mar 22nd, 2019 06:04 PM

can you please help me.

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

andrewo0 ・

Mar 25th, 2019 07:26 AM

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