Shopping Basket

 x 

Cart empty


Log In

Find Us Elsewhere

SSL

Forum Search

Keyword

VM Product Snapshot embed on product detail page?

  • cmhs
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 1 week ago #3299 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.

Please Log in or Create an account to join the conversation.

More
4 years 1 week ago - 4 years 1 week ago #3303 by boggler
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 1 week 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
  • Fresh Boarder
More
4 years 1 week ago #3307 by cmhs
AH Thank you. Now it's there!

Please Log in or Create an account to join the conversation.

  • cmhs
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 5 days ago #3313 by cmhs
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.

Please Log in or Create an account to join the conversation.

  • cmhs
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
4 years 5 days ago #3314 by cmhs
Sorry … solved: in the javascript jquery was preventing the default click action:

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #3356 by mhuebler
hello,

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.

More
3 years 10 months ago #3357 by boggler
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:
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.

More
3 years 10 months ago #3358 by mhuebler
thank you. works instantly.
i use it for separat related products on product detailpages.

Please Log in or Create an account to join the conversation.

Moderators: boggler
Time to create page: 0.395 seconds

Donate to Us

If you like our extensions, consider making a donation to say thanks.