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)
-   -   How do I "swap" the product description with the details? (https://forum.x-cart.com/showthread.php?t=44608)

WhiteDoveGifts 01-05-2009 01:44 PM

How do I "swap" the product description with the details?
 
1 Attachment(s)
Hi everyone,

I am selling books and cd's/dvd's with fairly long descriptions and want to move the description underneath the product image and move the product details up right from the image. I have tried to move the code in my product.tpl with no luck.

Here's a screenshot from one of my product pages. The goal is to keep the price and add to cart button above the fold with these long descriptions.

ARW VISIONS 01-05-2009 03:03 PM

Re: How do I "swap" the product description with the details?
 
do you want to do it for al products or just the CDs? I can do this for you if you like.

WhiteDoveGifts 01-05-2009 09:23 PM

Re: How do I "swap" the product description with the details?
 
Hi Ashley,

This would be needed for all the products. It's basically moving the descriptions downwards and moving the product details upwards. It's probably simple but I just don't get it. :)

Nico

ARW VISIONS 01-05-2009 09:57 PM

Re: How do I "swap" the product description with the details?
 
in product.tpl find this

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

then find this

{if $active_modules.Magnifier ne "" && $config.Magnifier.magnifier_image_popup eq 'Y' && $zoomer_images ne '' && $js_enabled eq 'Y'}
{include file="modules/Magnifier/popup_magnifier.tpl"}
{/if}

cut the first section and put it under the last {/if} so you have this

{if $active_modules.Magnifier ne "" && $config.Magnifier.magnifier_image_popup eq 'Y' && $zoomer_images ne '' && $js_enabled eq 'Y'}
{include file="modules/Magnifier/popup_magnifier.tpl"}
{/if}

<br />< br />

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

WhiteDoveGifts 01-06-2009 12:42 PM

Re: How do I "swap" the product description with the details?
 
1 Attachment(s)
Thanks so far Ash! I managed to get the description below but needed to put the descr. details code line just above my tabs menu to make it show:

<input type="hidden" name="productid" value="{$product.productid}" />
<input type="hidden" name="cat" value="{$smarty.get.cat|escape:"html"}" />
<input type="hidden" name="page" value="{$smarty.get.page|escape:"html"}" />
</form>
{/capture}
{include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra='width="100%"'}
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if}


You can see the results in the picture. What's still needed is to move up the description text a little (+/- 2 cm) and add equal paddings above and below.

The whole "Details" section needs to move a little upwards, aligning with the Title and also moved a bit to the right, leaving more space between the image and the section.

Last question: Can it hurt to leave the empty table where the {if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if} line used to be in?

Cheers

ARW VISIONS 01-06-2009 12:47 PM

Re: How do I "swap" the product description with the details?
 
you wanna just send me the file. do I still ahve FTP access?

ARW VISIONS 01-06-2009 01:03 PM

Re: How do I "swap" the product description with the details?
 
to add spacing between the product pic and the details add some right padding to this class PImgBox

PImgBox{

padding-right:25px;

}

to move detaills up look for any stray <br /> or <p> tags. ALos remove any unnecessary tabke rows. if you din;t when you copied the description code.

WhiteDoveGifts 01-06-2009 01:21 PM

Re: How do I "swap" the product description with the details?
 
Quote:

Originally Posted by Ashley
you wanna just send me the file. do I still ahve FTP access?


Just sent you a PM with the details :) Thanks again mate

WhiteDoveGifts 01-06-2009 01:22 PM

Re: How do I "swap" the product description with the details?
 
Quote:

Originally Posted by Ashley
to add spacing between the product pic and the details add some right padding to this class PImgBox

PImgBox{

padding-right:25px;

}

to move detaills up look for any stray <br /> or <p> tags. ALos remove any unnecessary tabke rows. if you din;t when you copied the description code.


I will give it a try... :lol:


All times are GMT -8. The time now is 11:20 PM.

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