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)
-   -   Image placement in product details (https://forum.x-cart.com/showthread.php?t=11945)

jclick 02-04-2005 03:38 AM

Image placement in product details
 
In product details on the customer end, is there a way of having the image appear at the top of the item description rather than the side. It seems that when the image is on the side, it squeezes the description into a tight column.

balinor 02-04-2005 04:39 AM

Sure, here's what you need to do in product.tpl (might vary slightly in your version, this code is from 4.0.11 - so make a backup first!):

Replace this:

Code:

<TD valign="top" align="left" rowspan="2" width="100">
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail"}
</TD>
<TD valign="top">
<SPAN class=>
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}
</SPAN>


with this:

Code:

<TD valign="top">
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail"}


{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}


jclick 02-04-2005 08:15 AM

balinor,
Is there a way of just eliminating the image? The more I thought about it the more that made sense than relocating the image. I am planning on creating the item descriptions in my html editor and then copying the code into x-cart products and into my eBay store auction items. I will be putting the image in the description via html.

BTW, the template you are editing... is is the customer>main>product.tpl?

Thanks for your help.

balinor 02-04-2005 08:18 AM

Sure, just remove or comment out this part:

Code:

{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail"}

Yes, customer/main/product.tpl

jclick 02-04-2005 08:44 AM

balinor,
while I got your attention, do you use the Smarty Template editor? I've gone to their website "http://smarty.php.net/" and downloaded their product but I'm not sure exactly what it is supposed to do. Is it similar to an html editor or totally different?

balinor 02-04-2005 08:45 AM

Sorry, can't say as I have ever used it.

jclick 02-04-2005 09:28 AM

balinor,
Thank you for your help.


All times are GMT -8. The time now is 03:41 AM.

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