| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Is it possible to get the screen resolution width into smarty? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Is it possible to get the screen resolution width into smarty?
Hi,
I want to tweak my featured products display so that it shows more columns if the viewing screen resolution is wider. I have already made mods to the products_t.tpl page to do nearly all of this, the last part is just somehow getting the window.screen.width value into a smarty variable so I can plug it into a calculation to determine how many columns to show. Has anyone else done this - is it possible to do it this way or any other way? Thanks, Philip
__________________
----------------------------------------- X-Cart5 v5.2.16 (Live) ----------------------------------------- |
|||||||
#2
|
|||||||
|
|||||||
Re: Is it possible to get the screen resolution width into smarty?
i think you need to rely on javascript to pass the value to smarty, but then you need to make sure that you have a default value to pass to smarty just in case your customer does not use javascript
|
|||||||
#3
|
|||||||
|
|||||||
Re: Is it possible to get the screen resolution width into smarty?
Does anyone have any example code of how to pass a variable from html/javascript into Smarty?
Thanks, Philip
__________________
----------------------------------------- X-Cart5 v5.2.16 (Live) ----------------------------------------- |
|||||||
#4
|
|||||||
|
|||||||
Re: Is it possible to get the screen resolution width into smarty?
See this post on screen resolution is smarty: http://forum.x-cart.com/showpost.php?p=163032&postcount=14
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
|
|||
X-Cart forums © 2001-2020
|