VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Jarich. on January 06, 2015, 12:12:42 PM

Title: Add box with functionality to product details page
Post by: Jarich. on January 06, 2015, 12:12:42 PM
(http://i57.tinypic.com/3143uow.png)

I want to add a box like the image attached with the following functionality:

- Ask a question
- Compare
- Send to a friend
- Print


Title: Re: Add box with functionality to product details page
Post by: GJC Web Design on January 06, 2015, 13:13:23 PM
this really is nothing to do with VM or this forum - it is simply a Joomla module with some links
either search for something similar or make one - even with a custom html module it would be possible (except compare which you will need an extension for)
Title: Re: Add box with functionality to product details page
Post by: Jarich. on January 06, 2015, 13:45:03 PM
Hi,

Ask a question, send to a friend and print are Joomla/Virtuemart functions.
My question is, where can I find the code for this functionality?
Title: Re: Add box with functionality to product details page
Post by: GJC Web Design on January 06, 2015, 15:02:08 PM
Ask a question, print, send to a friend

simply links formed in the default.php

e.g.
$askquestion_url = JRoute::_('index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id=' . $this->product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component', FALSE);

or $link = 'index.php?tmpl=component&option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->virtuemart_product_id;
echo $this->linkIcon($link . '&print=1', 'COM_VIRTUEMART_PRINT', 'printButton', 'show_printicon',false,true,false,'class="printModal"');


$MailLink = 'index.php?option=com_virtuemart&view=productdetails&task=recommend&virtuemart_product_id=' . $this->product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component';
       echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend', false,true,false,'class="recommened-to-friend"');
Title: Re: Add box with functionality to product details page
Post by: Jarich. on January 06, 2015, 15:06:24 PM
Ok I need this so I can design a box in the product details page and then put these codes in the box.