Request options

zackzack Member Posts: 12


I am very much new to Lightspeedhq ecom. I want to load an image only for web or desktop but not for mobile or ipad.

I have seen there are options for this like request.device.platform , request.device.type etc..., however if i put condition like request.device.platform then again which value should i put condition. For example {% if request.device.platform == ? %} which value should replace ? here? would it be "web", desktop etc..., I am not able to figure this out.

I am using but that is not working, it work in mobile but not in case of Ipad or tablet.

Please provide me details about request.device.platform and/or request.device.type, it can solve my problem.

Please guide.




Sign In or Register to comment.