AMP + VirtueMart

Hello. Can I somehow display Buy button on VirtueMart AMP product pages? By clicking on this button, the user needs to go to the normal product page.
Responses (2)
  • Accepted Answer

    Monday, September 16 2019, 10:13 AM - #Permalink
    Hi

    There's no automated way to do that at this moment. A manual way is to include in the product description a link to that page. That link can be displayed only on AMP pages by wrapping it inside a specific tag:

    <a href="/index.php?option=com_virtuemart&Itemid=0&view=productdetails&virtuemart_category_id=xx&virtuemart_product_id=xx"></a>


    See documentation on this page for more details.

    You can also create a template override for virtuemart product page and automatically include the above in those overrides. That will require a little bit of programming.

    Best regards
    The reply is currently minimized Show
  • Accepted Answer

    Monday, September 16 2019, 10:29 AM - #Permalink
    Thanks for the answer. The question is closed.
    The reply is currently minimized Show
Your Reply