×

info

Dear guests,
You are currently on the old forum we kept as a knowledge base. You will find the new community forum here
Welcome, Guest
Username: Password: Remember me
Keyword

TOPIC: [solved] Margin for VMProduct plugin

[solved] Margin for VMProduct plugin 10 years 8 months ago #230

  • Anonymous user
  • thewineguy's Avatar
  • Posts: 2
  • Karma: 0
Which template might I access for the VMproduct plugin to give my VM product image a top (not centered) position with a right margin 30px? It currently sits too close to the product description.

Many thanks
MA
Attachments:
Last Edit: 10 years 8 months ago by Anonymous user.
Please log in to post a reply

Re:Margin for VMProduct plugin 10 years 8 months ago #232

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
You can edit the file joomla/plugins/acymailing/tagvmproduct.php

At the end of the file you should see something like :
$result .= '<table><tr><td><a style="text-decoration:none;border:0" href="'.$link.'" ><img src="'.JOOMAILING_LIVE.'components/com_virtuemart/shop_image/product/'.$product->product_thumb_image.'"/></a></td><td>'.$description.'</td></tr></table>';

That you can replace by :
$result .= '<table><tr><td valign="top" style="padding-right:30px"><a style="text-decoration:none;border:0" href="'.$link.'" ><img src="'.JOOMAILING_LIVE.'components/com_virtuemart/shop_image/product/'.$product->product_thumb_image.'"/></a></td><td>'.$description.'</td></tr></table>';

Your changes will be overwritten if you update AcyMailing so we will think about the possibility of using a separate template for some plugins which won't be overwritten by AcyMailing.
Please have a look at our official documentation before posting a new message!

If you use AcyMailing, please post a rating and a review at the Joomla! Extensions Directory.
Please log in to post a reply

Re:Margin for VMProduct plugin 10 years 8 months ago #235

  • Anonymous user
  • thewineguy's Avatar
  • Posts: 2
  • Karma: 0
Thank you for the blazingly fast reply and solution. Worked perfectly as well.

Grazie
Attachments:
Please log in to post a reply
Time to create page: 0.067 seconds
Powered by Kunena Forum