Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I add the google book preview button to the product page? 
 
Jose_1000
Member
 
Avatar
Total Posts:  70
Joined:  2008-07-07
 

Hi Everyone,

I’m setting up an online bookstore with magento and I would like to add the googlebook preview button to each book of the shop, more precisely to the product details page.

I figured it out that I have to add the following code:

<script type="text/javascript" src="http://books.google.com/books/previewlib.js"></script>
<script type="text/javascript">
GBS_setLanguage('pt-BR');
GBS_insertPreviewButtonPopup('ISBN:9789899558113',800,600);
</script>

But how to do it?

Is is something that I can do by editing the product attributes in the backend? Or do I need to edit some magento files? If so which ones so that each product links correctly to their google book preview.

Thanks

José

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jose_1000
Member
 
Avatar
Total Posts:  70
Joined:  2008-07-07
 

That was an easy one. You just have to add the code to the short description field on the product page in the backend. Worked like a charm.
Hope this might help someone.

Regards

José

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top