Link magento log_url_info table to products -


i want create report on items viewed within store. have relevant report writing , sql skills, little confused data within log_url_info table.

i understand entries value in url field such 'http://www.mystore.com/catalog/product/view/id/526' demonstrate visit product id 526, cannot see simple way link data individual product record in relevant product tables, given additional data stored in table.

anyone ideas??

pull id out of url, load appropriate product.

if (preg_match('%/catalog/product/view/id/([0-9]+)%', $url, $match)) {     $id = $match[1];     $product = mage::getmodel('catalog/product')->load($id);     echo $product->getname(), ', ', $product->getsku(), php_eol; } 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -