Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Template/Page Height - {if} statement

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-26-2008, 01:44 AM
 
hebs hebs is offline
 

Advanced Member
  
Join Date: Mar 2007
Location: UK
Posts: 47
 

Default Template/Page Height - {if} statement

Hi all,

This issue is a nice to have rather than vital, but I'm sure would interest a few.

I am trying to make efficient use of my sidebar & page space - for most of my static pages the height is small enough so that customers do not have to scroll down to see all of the page.

My product cat pages and perhaps cart/wishlist pages can contain lots of information - i.e: the customer needs to scroll down to see all of the content.
When they scroll down there is a horrible white waste of space in my side bar as my sidebar content is fairly small.

Is it possible for a template and or js to measure the page height and return a value for me to call in my sidebar template?

thus allowing me to display extra info (in my case: personal recommends) in my sidebar only {if} the height is sufficient.

worst case - I shall simply create {if} statements based current page (assuming those selected pages will be of a greater height than my static pages).

The gold plated solution - If it is possible to measure page height then a few template versions of personal recommends each with different height increments could be called dependent upon page height - hopefully optimizing my empty page space!?


Is this do-able or am I making a simple problem complicated?

Regards

Hebs
__________________
Hebs

xcart GOLD v4.1.9 [unix]
Loads of Mods!

www.sub-laser.co.uk


3D Photography
Reply With Quote
  #2  
Old 03-27-2008, 06:33 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Template/Page Height - {if} statement

What about finding an average content filler (which has an optimal height) for your product pages and having it disabled for your static ones?

Most users will scan your info, and when they do actually have an interest regarding the product, the presentation is usually the least of their concerns. Although you will be lacking that valuable retail/informational space for upselling etc.

The bigger commercial sites usually opt for upselling ugliness when it comes to presentation beyond the viewport and/or use a cutoff point and start the upselling again below the content.
__________________
Doms
kube v4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:54 PM.

   

 
X-Cart forums © 2001-2020