$tags = array( 'master' => 'STOREITEMS', 'time' => 'CREATED', 'product' => 'PRODUCT', 'name' => 'NAME', 'desc' => 'DESCRIPTION', 'price' => 'PRICE', 'manufacturer' => 'MANUFACTURER', 'category' => 'CATEGORY', 'weight' => 'WEIGHT', 'model' => 'MODEL', 'quantity' => 'QUANTITY', 'url' => 'URL', 'image_url' => 'IMAGE_URL', 'added' => 'ADDED', 'modified' => 'MODIFIED', 'available' => 'AVAILABLE');
$query .= "\n r.price, r.discount, r.tax, c.title AS ctitle, c.seotitle, i.file AS image"; if ($exmanufacturer) { $query .= ', m.manufacturer'; } $query .= "\n FROM #__eshop_products p" ."\n LEFT JOIN #__eshop_categories c ON c.cid=p.cid";
availability
$data .= "\t\t".'<urltocat>'.$category_link."</urltocat>\n";
if ($row['in_stock'] > 0) $data .= "\t\t<available>YES</available>\n";} else { $data .= "\t\t<available>NO</available>\n";}
$category_link = $linkbase.IOSESHOPBASE.'/'.$row['seotitle'].'/';if ($excategory) {$data .= "\t\t<".$tags['category'].'>'.$category_link.'</'.$tags['category'].">\n";}
<CATEGORY>http://www.odesus.gr/eshop/anikhneuse-plaston-khartonomismaton/</CATEGORY>
Συσκευές Μετρητών > Ανίχνευση πλαστών χαρτονομισμάτων
$path = $eshop->catPathArray($eshopF->cid);
if ($row['in_stock'] > 0) {$data .= "\t\t<availability>YES</availability>\n";} else {$data .= "\t\t<availability>NO</availability>\n";}
'availability' => 'AVAILABILITY',
<availability>YES</availability>
e_v.extravalue AS extravalue,
if ($row['extravalue']) { $data .= "\t\t<".$tags['avilability'].'>'.$row['extravalue'].'</'.$tags['avilability'].">\n"; }
SELECT p.id, p.sku, x.extravalue FROM elx_eshop_products pLEFT JOIN elx_eshop_extra_values x ON x.productid = p.idWHERE x.extraid = 4;
SELECT p.id, p.sku, (SELECT x.extravalue FROM elx_eshop_extra_values x WHERE x.productid = p.id AND x.extraid = 4) AS extravalueFROM elx_eshop_products p;