VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: yan77 on December 30, 2022, 17:58:54 PM

Title: custom integration of Amazon's Buy with Prime
Post by: yan77 on December 30, 2022, 17:58:54 PM
Hi, we were invited to Amazon's buy with prime feature and basically we need to integrate some custom codes on product pages in Virtuemart to give buy options to customers through their Amazon account. Unfortunately the technical team on Amazon side has never worked with any platform besides Shopify and Wordpress. Here is the first question I got, can someone help me to answer this question?;

from Amazon;  "we have not yet worked merchants who are using Virtuemart -are you aware of how to access the product template files and if so, are those editable as that's where we will need to install the code."

Thanks!
   
Title: Re: custom integration of Amazon's Buy with Prime
Post by: jenkinhill on December 30, 2022, 18:42:15 PM
The template files are editable and overridable. If using a Joomla template developed for VirtueMart then you will probably have overrides already in place.

The template files are in several directories.

For the default front-end templates:
Joomla_root/components/com_virtuemart/views/productdetails/tmpl
Joomla_root/components/com_virtuemart/sublayouts

For any overrides that may already be in place - and new overrides should go here, too
Joomla_root/templates/your_jooml_template/html/com_virtuemart/productdetails

For back-end templates:
Joomla_root/administrator/components/com_virtuemart/views/product/tmpl

For the new admin template:
Joomla_root/administrator/templates/vmadmin/html/com_virtuemart/product

Templates may also be in the directories within the same local location, eg
Joomla_root/components/com_virtuemart/views/product/tmpl