Forum Search
- Forum
- Joomla Extensions Support Questions
- Virtuemart Extensions Support Questions
- VM Product Snapshot embed on product detail page?
VM Product Snapshot embed on product detail page?
- cmhs
- Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 4
- Thank you received: 0
4 years 3 months ago #3299
by cmhs
VM Product Snapshot embed on product detail page? was created by cmhs
Hi,
With the Pro version is it possible to embed products into other product detail pages?
At the moment I can only embed products within Joomla pages using {product sku=xxxxx} but when I try this on a product page to display another product such as a related one, it just outputs '{product sku=xxxxx}'
Thank you.
With the Pro version is it possible to embed products into other product detail pages?
At the moment I can only embed products within Joomla pages using {product sku=xxxxx} but when I try this on a product page to display another product such as a related one, it just outputs '{product sku=xxxxx}'
Thank you.
Please Log in or Create an account to join the conversation.
- boggler
- Offline
- Moderator
-
Less
More
- Posts: 1283
- Karma: 18
- Thank you received: 155
4 years 3 months ago - 4 years 3 months ago #3303
by boggler
Replied by boggler on topic VM Product Snapshot embed on product detail page?
Both the pro and the free version should work this way. There is an option in the Virtuemart configuration to allow you to use content plugins with the Virtuemart product details, you need to enable this, it is turned off by default, that is probably why it is not working.
Last edit: 4 years 3 months ago by boggler.
The following user(s) said Thank You: cmhs
Please Log in or Create an account to join the conversation.
- cmhs
- Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 4
- Thank you received: 0
4 years 3 months ago #3307
by cmhs
Replied by cmhs on topic VM Product Snapshot embed on product detail page?
AH Thank you. Now it's there!
Please Log in or Create an account to join the conversation.
- cmhs
- Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 4
- Thank you received: 0
4 years 3 months ago #3313
by cmhs
Replied by cmhs on topic VM Product Snapshot embed on product detail page?
Hi,
Although the products now embed, the links do not work.
If you left click on them nothing happens even though the hyperlink is available. It's possible to right click and open in a new tab/window, just not standard left click.
Is there another setting to enable the links?
Thank you.
Although the products now embed, the links do not work.
If you left click on them nothing happens even though the hyperlink is available. It's possible to right click and open in a new tab/window, just not standard left click.
Is there another setting to enable the links?
Thank you.
Please Log in or Create an account to join the conversation.
- cmhs
- Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 4
- Thank you received: 0
4 years 3 months ago #3314
by cmhs
Replied by cmhs on topic VM Product Snapshot embed on product detail page?
Sorry … solved: in the javascript jquery was preventing the default click action:
Please Log in or Create an account to join the conversation.
- mhuebler
- Offline
- Fresh Boarder
-
4 years 2 months ago #3356
by mhuebler
Replied by mhuebler on topic VM Product Snapshot embed on product detail page?
hello,
how it is possible to use vm productsnapshot (product id=XXX} within a VM product custom field ?
best regards
Manuel
how it is possible to use vm productsnapshot (product id=XXX} within a VM product custom field ?
best regards
Manuel
Please Log in or Create an account to join the conversation.
- boggler
- Offline
- Moderator
-
Less
More
- Posts: 1283
- Karma: 18
- Thank you received: 155
4 years 2 months ago #3357
by boggler
Replied by boggler on topic VM Product Snapshot embed on product detail page?
The VM product snapshot plugin can be used in any content that supports content plugins, but unfortunately Virtuemart custom fields do not.
If you really need this feature then you will need to edit the product template in order to trigger content plugins for the custom fields where you need this. For example if you want this on the product details page for the 'onbot' position, then you would need to edit the file views/productdetails/tmpl/default.php (or better, provide an override for it), find this code:
replace it with
If you really need this feature then you will need to edit the product template in order to trigger content plugins for the custom fields where you need this. For example if you want this on the product details page for the 'onbot' position, then you would need to edit the file views/productdetails/tmpl/default.php (or better, provide an override for it), find this code:
echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'onbot'));
replace it with
$custom_content = shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'onbot'));
$custom_content = JHtml::_('content.prepare', $custom_content);
echo $custom_content;
Please Log in or Create an account to join the conversation.
- mhuebler
- Offline
- Fresh Boarder
-
4 years 2 months ago #3358
by mhuebler
Replied by mhuebler on topic VM Product Snapshot embed on product detail page?
thank you. works instantly.
i use it for separat related products on product detailpages.
i use it for separat related products on product detailpages.
Please Log in or Create an account to join the conversation.
Moderators: boggler
- Forum
- Joomla Extensions Support Questions
- Virtuemart Extensions Support Questions
- VM Product Snapshot embed on product detail page?
Time to create page: 0.203 seconds