Всем доброго времени суток.
Помогите вставить код Адсенс в страницу товара, в место под списком цен -
http://saifemobile.us/index.php/nokia/nokia-3310-for-sale-detailКак я понимаю, вставлять код надо в шаблон кода товара хранящийся в файле view.html.php
Но когда я что либо меняю в этом файле, страница товара вообще пропадает.
Подскажите как мне вставить код в нужное место?Может я не в тот файл вставляю?
Ниже часть кода в которую пытался вставить адсент.
Заранее спасибо
<?php
/**
*
* Product details view
*
* @package VirtueMart
* @subpackage
* @author RolandD
* @link
http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license
http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: view.html.php 6249 2012-07-10 15:28:25Z Milbo $
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
// Load the view framework
if (!class_exists('VmView'))
require(JPATH_VM_SITE . DS . 'helpers' . DS . 'vmview.php');
/**
* Product details
*
* @package VirtueMart
* @author RolandD
* @author Max Milbers
*/
class VirtueMartViewProductdetails extends VmView {
/**
* Collect all data to show on the template
*
* @author RolandD, Max Milbers
*/
function display($tpl = null) {
{
$show_prices = VmConfig::get('show_prices', 1);
if ($show_prices == '1')
if (!class_exists('calculationHelper'))
require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'calculationh.php');
}
$this->assignRef('show_prices', $show_prices);
$document = JFactory::getDocument();
/* add javascript for price and cart */
vmJsApi::jPrice();
$mainframe = JFactory::getApplication();
$pathway = $mainframe->getPathway();
$task = JRequest::getCmd('task');
/* Set the helper path */
$this->addHelperPath(JPATH_VM_ADMINISTRATOR . DS . 'helpers');
//Load helpers
$this->loadHelper('image');