</td> </tr> <?php } } ?> </tbody> </table> </div> </td> </tr> <script> function SetGoogleCategory(sel,txt) { str='<?php GetGoogleCategory("GOOGLE_CATEGORY[#ID#][GOOGLE]", "", ""); ?> '; var NewRow; var tbl=BX("ACRIT_googlecategory_tbl_body"); for(var i = document.getElementById("ACRIT_googlecategory_tbl_body").rows.length; i > 0;i--) { document.getElementById("ACRIT_googlecategory_tbl_body").deleteRow(i -1); } if(sel.length>0) { for(var i=0; i<sel.length; i++) { var id='ACRIT_googlecategory_tbl_'+sel[i]; if(BX(id)===null) {
$writer->endElement(); $q = "SELECT c.custom_title, \n\t\t\t\t\t pc.custom_value \n\t\t\t\t\tFROM `#__virtuemart_product_customfields` as pc \n\t\t\t\t\tJOIN `#__virtuemart_customs` as c \n\t\t\t\t\tON c.virtuemart_custom_id = pc.virtuemart_custom_id\n\t\t\t\t\tWHERE pc.virtuemart_product_id = {$product_id} AND\n\t\t\t\t\t\t c.published = 1 AND\n\t\t\t\t\t\t c.is_hidden = 0 AND\n\t\t\t\t\t\t c.is_cart_attribute = 1"; //$q = "SELECT attribute_name, attribute_value FROM `jos_vm_product_attribute` WHERE product_id = " . $product_id; $db->setQuery($q); $row = $db->loadRowList(); for ($j = 0; $j < sizeof($row); $j++) { //$result = mysql_query($q); //while($row = mysql_fetch_row($result)){ $attribute_name = $row[$j][0]; $attribute_value = $row[$j][1]; $writer->startElement('g:' . $attribute_name); $writer->text($attribute_value); $writer->endElement(); } // I need to get the parent's information for this stuff $google_product_category = htmlspecialchars_decode(GetGoogleCategory($parent_product_id)); $product_type = GetProductType($parent_product_id); $description = $parent_product_desc; $shipping_weight = $parent_product_weight; } $writer->startElement('description'); $writer->text(strip_tags(htmlkarakter(trim($description))) . " " . $title . " " . $brand); $writer->endElement(); /*$writer->startElement('g:gender'); $writer->text($product_gender); $writer->endElement(); $writer->startElement('g:age_group'); $writer->text($product_age_group); $writer->endElement(); */