Cvp: link ile ürün özelliği çağırma
Aşağıdaki kod ile opencart ve wosci de getirtebildim. Ama presta daha parklı. "product.tpl" dosyasına yazmam gerektiğini sanıyorum. php kodunu tpl içine yazmayı bilmediğimden takıldım.
//penta bof
$oldSetting = libxml_use_internal_errors( true );
libxml_clear_errors();
$html = new DOMDocument();
$html->loadHtmlFile(
'http://www.bayinet.com.tr/katalog/katalog2.asp?kod='.$product_info['products_model']);
$xpath = new DOMXPath( $html );
$urun_detay = $xpath->query( "//div [@id='ozellik']/table[1]");
$urun_detay2 = $xpath->query( "//div [@id='ozellik']/table[2]");
$querycontent = $urun_detay->item(0);
$querycontent2 = $urun_detay2->item(0);
$bunubul = array('width="499"', 'Penta');
$bunlarladegistir = array('class="pentatablo"', ');
$penta_description = str_replace($bunubul, $bunlarladegistir, $html->saveXML($querycontent));
$penta_description2 = str_replace($bunubul, $bunlarladegistir, $html->saveXML($querycontent2));
echo $penta_description.$penta_description2;
libxml_clear_errors();
libxml_use_internal_errors( $oldSetting );
//penta eof