Pass php object to different script in magento -
i have php script that's called in xml show on product page tab.
i need able to retrieve attributes of current product shown in script well. example:
<?php echo $_product->getsku() ?>
does 1 have idea how pass object, or retrieve current products id/attributes?
thanks much
you can use json_encode($object)
output json , json_decode($text)
put object later. there other way, depending wanna do. more specific?
Comments
Post a Comment