×

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] change price in tagvmproduct.php ?

[solved] change price in tagvmproduct.php ? 10 years 8 months ago #260

  • Anonymous user
  • icemangs's Avatar
  • Posts: 18
  • Karma: 0
Hello,

It is possible the price under the description to display? As in the picture?



If so how do i do?

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

Re:change price in tagvmproduct.php ? 10 years 8 months ago #262

  • Anonymous user
  • admin's Avatar
  • Posts: 41
  • Karma: 2
Hello,

We just released a new version of JooMailing which is now called AcyMailing (we had to change our component name to stay compliant with the JED rules).

In this new version we improved the possibilities of the VMProductPlugin so you will be able to use your own template and we won't overwrite it if you upgrade.

First could you please upgrade your JooMailing component.

Then you will be able to use your own product template, I just added some informations about it in the VMProductPlugin doc.

Let me know if you have any question
Please log in to post a reply

Re:change price in tagvmproduct.php ? 10 years 8 months ago #265

  • Anonymous user
  • icemangs's Avatar
  • Posts: 18
  • Karma: 0
First question.

i copy the file tagvmproduct.php from plugins in components / com_acymailing / templates / plugins. Need i all the entries from the original file or only this:


<div class="acymailing_content">
<a style="text-decoration:none;" name="product-<?php echo $product->product_id ?>" target="_blank" href="/<?php echo $link ?>">
<h2 class="acymailing_title">
<?php echo $product->product_name ?> <?php echo $product->product_currency.round($product->product_price,2) ?>
</h2>
</a>
<table>
<tr>
<td valign="top" style="padding-right:5px">
<a style="text-decoration:none;border:0" href="'.$link.'" >
<img src="/<?php echo ACYMAILING_LIVE.'components/com_virtuemart/shop_image/product/'.$product->product_thumb_image ?>"/>
</a>
</td>
<td>
<?php echo $product->product_s_desc ?>
</td>
</tr>
</table>
</div>
Please log in to post a reply

Re:change price in tagvmproduct.php ? 10 years 8 months ago #266

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
Only this text.
Just the template is necessary without any other function.
If you copy the same file as the original one, it won't work.

So in your case I guess you only want to add in the new file :
<div class="acymailing_content">
<a style="text-decoration:none;" name="product-<?php echo $product->product_id ?>" target="_blank" href="<?php echo $link ?>">
<h2 class="acymailing_title">
<?php echo $product->product_name ?>
</h2>
</a>
<table>
<tr>
<td valign="top" style="padding-right:5px">
<a style="text-decoration:none;border:0" href="'.$link.'" >
<img src="<?php echo ACYMAILING_LIVE.'components/com_virtuemart/shop_image/product/'.$product->product_thumb_image ?>"/>
</a>
</td>
<td>
<?php echo $product->product_s_desc ?>
<br/>
<?php echo $product->product_currency.round($product->product_price,2) ?>
</td>
</tr>
</table>
</div>
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.
Last Edit: 10 years 8 months ago by Anonymous user.
Please log in to post a reply

Re:change price in tagvmproduct.php ? 10 years 8 months ago #267

  • Anonymous user
  • icemangs's Avatar
  • Posts: 18
  • Karma: 0
Thanks for the greate support ;)

Now bevor i upgrade to the new version i changed the tagvmproduct.php like this Margin for VMProduct plugin

Im not sure what i must do

How can I change the price? I mean like this: nur 144,43 Euro and the size like joomailing_title

sorry for my bad english :blush:
Please log in to post a reply

Re:change price in tagvmproduct.php ? 10 years 8 months ago #268

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
In the new version we added a default margin of 5px.
In the following code, I modified the margin so it's now 30px and the price is displayed after the product description
<div class="acymailing_content">
<a style="text-decoration:none;" name="product-<?php echo $product->product_id ?>" target="_blank" href="<?php echo $link ?>">
<h2 class="acymailing_title">
<?php echo $product->product_name ?>
</h2>
</a>
<table>
<tr>
<td valign="top" style="padding-right:30px">
<a style="text-decoration:none;border:0" href="'.$link.'" >
<img src="<?php echo ACYMAILING_LIVE.'components/com_virtuemart/shop_image/product/'.$product->product_thumb_image ?>"/>
</a>
</td>
<td>
<?php echo $description ?>
<br/><span style="THE STYLE YOU WANT TO APPLY TO YOUR PRICE">nur
<?php echo round($product->product_price,2) ?> Euro</span>
</td>
</tr>
</table>
</div>

Please replace "THE STYLE YOU WANT TO APPLY TO YOUR PRICE" by your own style so you may want to apply a bigger size (style="font-size:14px") or a colour...
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.
Last Edit: 10 years 8 months ago by Anonymous user.
Please log in to post a reply

Re:change price in tagvmproduct.php ? 10 years 8 months ago #269

  • Anonymous user
  • icemangs's Avatar
  • Posts: 18
  • Karma: 0
Thanks for your support. It works all but when i send a newsletter with a vmproduct and i cklick on the image the link will broken with www.mypage.de/%27.$link.%27.

Any idea?
Please log in to post a reply

Re:change price in tagvmproduct.php ? 10 years 8 months ago #270

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
Could you add to your next post the file you added so I can have a quick look?
There must be a small mistake in it (probably from my own code that I wrote on this forum but I don't see it)
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:change price in tagvmproduct.php ? 10 years 8 months ago #271

  • Anonymous user
  • john's Avatar
  • Posts: 10494
  • Thank you received: 2
  • Karma: 242
Ho yes, sure, my fault :
<div class="acymailing_content">
<a style="text-decoration:none;" name="product-<?php echo $product->product_id ?>" target="_blank" href="<?php echo $link ?>">
<h2 class="acymailing_title">
<?php echo $product->product_name ?>
</h2>
</a>
<table>
<tr>
<td valign="top" style="padding-right:30px">
<a style="text-decoration:none;border:0" href="<?php echo $link ?>" >
<img src="<?php echo ACYMAILING_LIVE.'components/com_virtuemart/shop_image/product/'.$product->product_thumb_image ?>"/>
</a>
</td>
<td>
<?php echo $description ?>
<br/><span style="THE STYLE YOU WANT TO APPLY TO YOUR PRICE">nur
<?php echo round($product->product_price,2) ?> Euro</span>
</td>
</tr>
</table>
</div>

I forgot the php code around the link
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:change price in tagvmproduct.php ? 10 years 8 months ago #272

  • Anonymous user
  • icemangs's Avatar
  • Posts: 18
  • Karma: 0
It works fine :woohoo:
Now i can send the first newsletter with AcyMailing B)

Thanks for support....

icemangs
Please log in to post a reply
Time to create page: 0.165 seconds
Powered by Kunena Forum