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

Displaying product dimensions on detail page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-27-2010, 06:42 AM
 
dwpers dwpers is offline
 

Senior Member
  
Join Date: Aug 2009
Location: Washington D.C.
Posts: 136
 

Default Displaying product dimensions on detail page?

Searched but couldn't find an existing thread about this.

I would like to display a products shipping dimensions underneath the weight on the product detail page.

Is this possible to do?

Thanks
__________________
X-Cart Pro 4.2.2
Reply With Quote
  #2  
Old 01-27-2010, 08:59 AM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: Displaying product dimensions on detail page?

Don't think this is possible from Admin side.

How about Product Options, you could do it that way.

Only Other way is to state this in every product Description, other than that Custom Mod maybe, sorry can't help more others may have suggestions fo ya..
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote

The following user thanks gizmo for this useful post:
dwpers (01-28-2010)
  #3  
Old 01-27-2010, 10:43 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Displaying product dimensions on detail page?

If you have entered length/width/height for each product you can try accessing them product.tpl

{$product.length}
{$product.height}
{$product.width}

not sure if that will work or maybe they are not included in product array by default (then it will require php file modification)
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
dwpers (01-28-2010)
  #4  
Old 01-28-2010, 06:03 AM
 
dwpers dwpers is offline
 

Senior Member
  
Join Date: Aug 2009
Location: Washington D.C.
Posts: 136
 

Default Re: Displaying product dimensions on detail page?

Thanks cfl.

Here's what I added to product.tpl directly underneath the product weight box.

Code:
<tr> <td class="property-name">Dimensions</td> <td class="property-value"> <span id="product_dimensions">Length: {$product.length}, Height: {$product.height}, Width: {$product.width}</span> </td> </tr>

Works a charm . Hope someone else benefits from this!
__________________
X-Cart Pro 4.2.2
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:22 AM.

   

 
X-Cart forums © 2001-2020