X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Displaying product dimensions on detail page? (https://forum.x-cart.com/showthread.php?t=51992)

dwpers 01-27-2010 06:42 AM

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 :)

gizmo 01-27-2010 08:59 AM

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..

cflsystems 01-27-2010 10:43 AM

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)

dwpers 01-28-2010 06:03 AM

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!


All times are GMT -8. The time now is 01:05 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.