<?php ob_start();// Important require('hook.php'); // Export a product $Product = new products; $Product->SetProductId('12'); // the product id $Export = $Product->Export(); if(! $Export) { echo 'Arab : ' . $Product->ArLastError() . '<br>'; echo 'English : ' . $Product->EnLastError() . '<br>'; } ?>