News:

Looking for documentation? Take a look on our wiki

Main Menu

Adding the same text to every Virtuemart product

Started by oodya, August 31, 2014, 23:00:14 PM

Previous topic - Next topic

oodya

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

GJC Web Design

#1
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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

oodya

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