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)
-   -   Short Descriptions Showing as Product Title (https://forum.x-cart.com/showthread.php?t=46791)

DOD467 04-06-2009 11:02 AM

Short Descriptions Showing as Product Title
 
Short description in the featured products showing as product title.

In the views/products/list_product_as_block.tmp:


<div id="product" class="module2 boxed_module">
<div class="image">
<a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured

{/if}">
<img src="{if !empty($product.tmbn_url)}{$product.tmbn_url}{else }/skin1/images/no_image_icon.png{/if}" width="101px"

alt="{$product.product}" title="{$product.product}"/>
</a>
</div>
<div class="details">
<div class="title">
<a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}

&featured{/if}">{$product.product}</a>
</div>
<div class="price">
<span class="label">Our Price</span>
<span class="list_price">${$products[product].price}</span>
<br />
</div>
<!--<div class="quantity">
Quantity
</div>-->
<div class="summary">
{$product.descr}
<a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}

&featured{/if}">[read more]</a>
</div>
</div>
</div>

Any Ideas? Thanks!8)

pauldodman 04-06-2009 11:34 PM

Re: Short Descriptions Showing as Product Title
 
Quote:

Short description in the featured products showing as product title

Is this a problem you are having, or something you want to achieve?

DOD467 04-07-2009 05:34 AM

Re: Short Descriptions Showing as Product Title
 
A problem I am having

ChristineP 04-07-2009 07:08 AM

Re: Short Descriptions Showing as Product Title
 
This may help you decipher what code to use:

{$product.keywords} = search keywords
{$product.productcode} = SKU
{$product.product} = product name
{$product.fulldescr} = full description
{$product.descr} = short description

You may want to replace {$product.descr} with {$product.product}

Christine

Quote:

Originally Posted by peterjwiz
A problem I am having


DOD467 04-07-2009 09:35 AM

Re: Short Descriptions Showing as Product Title
 
This is odd, when I put in {$product.fulldescr} it shows up fine, but when {$product.descr} just shows title.

Let me know if any other ideas,

THanks!

ChristineP 04-07-2009 10:56 AM

Re: Short Descriptions Showing as Product Title
 
In your first post, the code used {$product.descr} is for short description. Are you wanting to use the product name field? have you tried {$product.product}? I'm not 100% sure what code is correct for products name... you can try {$products[product].product}.

Christine

DOD467 04-07-2009 11:00 AM

Re: Short Descriptions Showing as Product Title
 
I understand it is for short description. When I put in {$product.product} the title shows up.

I do not want to show the product name where the short description is supposed to be.

I want a short description, But when I put in {$product.descr} it only shows the title, not the short description...

AusNetIT 05-11-2009 04:54 AM

Re: Short Descriptions Showing as Product Title
 
HI,

How do we make Product Name to 30-50 Char or only 2 rows with end more...?

Thanks,


All times are GMT -8. The time now is 09:38 PM.

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