Forum Moderators: coopster
the samplepage is:
<snip>
I want to make it so the page title is the product name but the code I keep adding in is not helping me at all. It keeps putting what say character for character. I have tried the following
$xxPrNm='Product Name';
'Product Name'
', $context['Product Name'], '
', $context['$xxPrNm'], '
I was inputing it here on the product detail page
<!-- #BeginEditable "doctitle" -->
<title>I added it here</title>
<!-- #EndEditable -->
I also found this in my sites language file. Am I searching in the right direction. Please help guys :)
$xxPrNm='Product Name';
Mark
[edited by: eelixduppy at 5:58 am (utc) on Jan. 23, 2008]
[edit reason] no URLs, please [/edit]
<?phpif(@$showproductid==TRUE) print '<div class="detailid"><strong>' . $xxPrId . ':</strong> ' . $rs['pId'] . '</div>';
if(@$showproductsku!='' && $rs['pSKU']!='') print '<div class="detailsku"><strong>' . $showproductsku . ':</strong> ' . $rs['pSKU'] . '</div>';
print '<strong><div class="detailname">' . $rs[getlangid('pName',1)] . $xxDot;
if($alldiscounts!= "") print ' <font color="#FF0000"><span class="discountsapply">' . $xxDsApp . '</span></div></strong><font size="1"><div class="detaildiscounts">' . $alldiscounts . '</div></font></font>'; else print '</div></strong>';
if(@$showinstock==TRUE){ if((int)$rs["pStockByOpts"]==0) print '<div class="detailinstock"><strong>' . $xxInStoc . ':</strong> ' . $rs["pInStock"] . '</div>'; }?>
I hope this can help lead to a resolution. I assume that the below code has something to do with telling me the product name in which I can put some kind of php in the title tags to show the product name as the title.
I tried the following:
<title><?php echo $rs[getlangid('pName',1)] ;?></title>