我想使用php代码在Magento的元描述中附加sku。任何人都可以帮我。
<?php
//set empty title
$title = '';
if ($_product = Mage::registry('current_product'))
{
$title = $_product->getName();
$pos = stripos($title);
if($pos === false )
{
$title = $this->getTitle();
}
?>
<meta name="description" content="<?php echo $title?>.Wide range of shipping destinations. Call us now for more info about our products: 01202 600596. Contact us to discuss our returns policy"/>
千万里不及你