Changeset View
Changeset View
Standalone View
Standalone View
modules/in-commerce/units/products/products_tag_processor.php
Show First 20 Lines • Show All 291 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
$link_params = Array('m_cat_id' => $object->GetDBField('CategoryId'), 'pass' => 'm,p'); | $link_params = Array('m_cat_id' => $object->GetDBField('CategoryId'), 'pass' => 'm,p'); | ||||
} | } | ||||
else { | else { | ||||
$t = $params['template']; | $t = $params['template']; | ||||
$link_params = Array('m_cat_id' => $object->GetDBField('CategoryId'), 'pass' => 'm,p,ord', 'ord_event' => 'OnAddToCart'); | $link_params = Array('m_cat_id' => $object->GetDBField('CategoryId'), 'pass' => 'm,p,ord', 'ord_event' => 'OnAddToCart'); | ||||
} | } | ||||
$this->Application->SetVar('p_id', $this->Application->GetVar($this->getPrefixSpecial().'_id')); | $link_params['p_id'] = $object->GetID(); | ||||
return $this->Application->HREF($t, '', $link_params); | return $this->Application->HREF($t, '', $link_params); | ||||
} | } | ||||
function SearchResultsCount($params) | function SearchResultsCount($params) | ||||
{ | { | ||||
$search_results_table = TABLE_PREFIX.'ses_'.$this->Application->GetSID().'_'.TABLE_PREFIX.'Search'; | $search_results_table = TABLE_PREFIX.'ses_'.$this->Application->GetSID().'_'.TABLE_PREFIX.'Search'; | ||||
$sql = ' SELECT COUNT(ResourceId) | $sql = ' SELECT COUNT(ResourceId) | ||||
FROM '.$search_results_table.' | FROM '.$search_results_table.' | ||||
▲ Show 20 Lines • Show All 552 Lines • Show Last 20 Lines |