Placing Product Name in description text

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
William M
Commander (CMDR)
Commander (CMDR)
Posts: 150
Joined: Sat Feb 14, 2009 9:40 am
Contact:

Placing Product Name in description text

Post by William M » Thu Mar 19, 2009 1:34 pm

Trying to get the product name into the text area of the description.

'$product.name' doesn't seen to work. Is there a tag for this?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Placing Product Name in description text

Post by mazhar » Fri Mar 20, 2009 7:12 am

Try $product.Name or $Product.Name

William M
Commander (CMDR)
Commander (CMDR)
Posts: 150
Joined: Sat Feb 14, 2009 9:40 am
Contact:

Re: Placing Product Name in description text

Post by William M » Fri Mar 20, 2009 7:40 am

Nope. I was really hoping this would work.

<p>$Product.Name</p> - right format?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Placing Product Name in description text

Post by mazhar » Fri Mar 20, 2009 7:44 am

Try $Product.Name as well.

William M
Commander (CMDR)
Commander (CMDR)
Posts: 150
Joined: Sat Feb 14, 2009 9:40 am
Contact:

Re: Placing Product Name in description text

Post by William M » Fri Mar 20, 2009 8:22 am

It's the first on the list, see image. I'll assume you don't mean to $Bold.This, right?

Is there a place to pull this from that needs to be referenced?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Placing Product Name in description text

Post by mazhar » Fri Mar 20, 2009 8:26 am

Where are you trying this code. It should work on product details page. Edit the Show Product 1 scriptlet and use it there. You will see use of $Product in that template.

William M
Commander (CMDR)
Commander (CMDR)
Posts: 150
Joined: Sat Feb 14, 2009 9:40 am
Contact:

Re: Placing Product Name in description text

Post by William M » Fri Mar 20, 2009 9:09 am

Well, I've found all of the places were it places the name in the wrong place on the page.... The goal is to set the product's name into the description area of the product page.

I was hoping to do it on the product edit page (in html) so I'd be able to control the placement and font....


Show Product 1 scriptlet: Any ideas?


## NO CONTENTS IF PRODUCT IS NULL
#if($Product)
[[ConLib:CategoryBreadCrumbs HideLastNode="False"]]
<div class="pageHeader"><h1>$Product.Name</h1></div>
<table style="margin-bottom:8px">
<tr>
<td class="productimg">
[[ConLib:ProductImage ShowImage="Image"]]<br />
#if($Product.Images.Count > 0)
<a href="#" onclick="window.open('ProductImages.aspx?ProductId=$Product.ProductId', 'productImages', 'status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=yes,scrollbars=1,height=650,width=850')">
More Images
</a>
#end
</td>
<td valign="top" style="padding-left:20px">
#if ($Product.ManufacturerId != 0)
Other products by <a href="Search.aspx?m=$Product.ManufacturerId">$Product.Manufacturer.Name</a><br />
#end
#if($store.Settings.ProductReviewEnabled != "None")
#if($store.Settings.ProductReviewEnabled == "Registered")
#if($customer.IsAnonymous == false)
[[ConLib:ProductRatingImage]] <a href="#reviews">reviews</a>
#end
#end
#if($store.Settings.ProductReviewEnabled == "Anonymous")
#if($customer.IsAnonymous == true)
[[ConLib:ProductRatingImage]] <a href="#reviews">reviews</a>
#end
#end
#if($store.Settings.ProductReviewEnabled == "All")
[[ConLib:ProductRatingImage]] <a href="#reviews">reviews</a>
#end
#end
<hr />
[[ConLib:ProductDiscountsDialog]]
[[ConLib:BuyProductDialog]]
</td>
</tr>
</table>
<a name="desc"></a>
[[ConLib:Custom/ProductDescription ShowCustomFields="true"]]
#if($store.Settings.ProductReviewEnabled != "None")
<a name="reviews"></a>
<div class="section">
<div class="header"><h2>Reviews</h2></div>
<div class="content">[[ConLib:ProductReviewsPanel]]</div>
</div>
#end
[[ConLib:MoreCategoryItems Caption="More Items in $Category.Name" Orientation="Horizontal" MaxItems="4" DisplayMode="Sequential"]]
#end

Post Reply