VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: oodya on August 31, 2014, 23:00:14 PM

Title: Adding the same text to every Virtuemart product
Post by: oodya on August 31, 2014, 23:00:14 PM
Hello all,

I am wondering if someone can help please?

I am looking for the best way to add the same text to every product that I have created / will created. Underneath the 'Description' for all the products, I would like to possibly leave one line space, then add my text.

Does anyone know if this is already available to do in Joomla / Virtuemart or can anyone point me in the right direction please?

For example, if you go to this page http://hasled.com/led-lighting/hasled-f ... ock-detail, below where it says 'This product also boasts an alarm, making it a great gift', I would like to leave one line space then add some text. The text that I would like, I would like it to appear on all the other products too - so I am guessing that I would need to add a new module or something?

Any help would be much appreciated.

Oodya
Title: Re: Adding the same text to every Virtuemart product
Post by: GJC Web Design on August 31, 2014, 23:13:13 PM
I have done this with the plugin  http://www.nonumber.nl/extensions/modulesanywhere

e.g. where you want it to appear in the product details template add the shortcode

<?php echo '{modulepos insertvm}'; ?>

and just make a custom module published at pos insertvm

this allows the admin to easily edit the message via the Joomla module

or of course just hard code it in the template or with a language constant if it will never change
Title: Re: Adding the same text to every Virtuemart product
Post by: oodya on September 11, 2014, 17:16:19 PM
Hello,

Thank you for your message.  I'm really sorry, but I'm not great with programming.

What I would essentially like to do is after adding the 'Description' of the product, to add a blank line, then to add my information underneath the blank line.

With regards to your response - where it says add the shortcode <?php echo '{modulepos insertvm}'; ?> - do you know which file and where in the file I would need to add this?

Any help would be much appreciated.

Many thanks,

Oodya