I have a php script that’s called in by xml to show on the product page as a tab.
I need to be able to to retrieve the attributes of the current product shown in the script as well.
for example:
<?php echo $_product->getSKU() ?>
Does any one have any idea how to pass the object, or retrieve the current products ID/attributes?
Thanks so much
you can use
json_encode($object)to output to JSON andjson_decode($text)to put it back as an object later. There are other way, depending what you wanna do. Be more specific?