2026 Executive BenchmarkMid-Market Enterprise Modernization: How leaders across unify Commerce, Odoo ERP & AI in 90 days.
MAGENTO COMMERCE

Add a Facebook LIKE button in product view page

1. Open your Magento project directory then GO to “app/design/frontend/default/template/catalog/product/ …

Akshar Group Technologies
Dec 25, 2020
1 min read
Verified Source

1. Open your Magento project directory then GO to app/design/frontend/default/template/catalog/product/ and open view.phtml' file.

2. Add the following code snippet where you want to show Facebook LIKE button on view.phtml page.

getCurrentUrl()); ?>

3. Save it. Now open product detail page, you should see Facebook Like button.

Share this playbook
LET'S BUILD WHAT'S NEXT

What's Holding Your Business Back?

Tell us where you want to go, what's getting in the way, and we'll help you figure out the technology to get there.

No sales pitch. Confidential strategic advisory.