Esempio n. 1
0
		if ($rows_main['group'] && $rows_main['name']) {
			$tpl['shop']['result_show_relation2'] = $shopcoins_class->getRelatedByGroup($rows_main['group'], $rows_main['name'], $catalog);
		}

		//с этим товаром покупали так же
		if ($tpl['user']['user_id']) {
			$rows = $user_class->getRowByParams(array('user' => $tpl['user']['user_id']));
			$user = $tpl['user']['user_id'];
			$email = $rows["email"];
			$fio = $rows["fio"];
		}

		$tpl['show']['result_show_relation3'] = array();

		$mycatalog1 = $catalogshopcoinsrelation_class->getOneByParams('catalog', array('shopcoins' => $catalog));

		if ($mycatalog1) {
			$tpl['show']['result_show_relation3'] = $catalogshopcoinsrelation_class->getRelations2($catalog, $mycatalog1);
		}
	}
	
	$meta = $details_class->getMeta($catalog);
	
	if($meta&&$meta['description']) $tpl['shopcoins']['_Description'] = $meta['description'];
	if($meta&&$meta['pagetitle']) $tpl['shopcoins']['_Title'] = $meta['pagetitle'];			
	
} else {
	$tpl['show']['error']['no_coins'] = true;
}
?>