VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: camel007 on March 24, 2012, 05:25:55 AM

Title: Remove "add a message to display with the order" on thank you page
Post by: camel007 on March 24, 2012, 05:25:55 AM
Hi
I have this text on my thank you page and it is only when i use standard shipping.
How, where would i delete this text so it doesn't show up?
I have searched language files etc.
On another note for a newbie how are u meant to know where these files are?
J1.5.25
VM2.02
www.tradecare.co.nz
http://www.tradecare.co.nz/index.php?option=com_virtuemart&view=cart&task=confirm

cheers and please help needed



[attachment cleanup by admin]
Title: Re: Remove "add a message to display with the order" on thank you page
Post by: PRO on March 24, 2012, 12:56:43 PM
views/cart/tmpl/default.php

      <?php // Leave A Comment Field ?>
      <div class="customer-comment marginbottom15">
         <span class="comment"><?php echo JText::_('COM_VIRTUEMART_COMMENT'); ?></span><br />
         <textarea class="customer-comment" name="customer_comment" cols="50" rows="4"><?php echo $this->cart->customer_comment; ?></textarea>
      </div>
      <?php // Leave A Comment Field END ?>
Title: Re: Remove "add a message to display with the order" on thank you page
Post by: camel007 on March 24, 2012, 18:57:40 PM
Thanks for your reply!
Didnt seem to work ( i deleted the whole text?)
With firebug i get

<td>Payment method</td>
<td align="left">
<span class="vmpayment_name">Direct Credit</span>
<span class="vmpayment_description">Deposit total amount owing into our bank account.</span>
<br>
add a message to display with the order
</td>
</tr>
<tr>


But cant find the file to edit anywhere, and why is it even there?

Thanks again
Title: Re: Remove "add a message to display with the order" on thank you page
Post by: PRO on March 25, 2012, 13:02:05 PM
its in your "payment method"

Title: Re: Remove "add a message to display with the order" on thank you page
Post by: raimiuxas on May 27, 2012, 17:14:43 PM
I have the same question, but don't understand answers. Please explain more 
Title: Re: Remove "add a message to display with the order" on thank you page
Post by: jenkinhill on May 27, 2012, 18:35:04 PM
The first answer is to remove the textbox from the checkout template, and the second just removes the text which pre-populates the text field. It is editable on the configuration tab of your payment method(s) in the Payment Info textbox.
Title: Re: Remove "add a message to display with the order" on thank you page
Post by: PRO on May 27, 2012, 21:07:20 PM
Quote from: raimiuxas on May 27, 2012, 17:14:43 PM
I have the same question, but don't understand answers. Please explain more 

Go into your payment method

Click the "Configuration" Tab
You will see the text right there.

Change it

IT will NOT let you leave it blank

IF, you want it blank.

Open

plugins/vmpayment/standard/standard.xml


change
THIS

<param name="payment_info" type="textarea" cols="60" rows="30" default="add a message to display with the order" label="VMPAYMENT_STANDARD_PAYMENTINFO" description="VMPAYMENT_STANDARD_PAYMENTINFO_EXPLAIN" />


change the default to be empty
default=""
Title: Re: Remove "add a message to display with the order" on thank you page
Post by: antonio on February 01, 2013, 10:46:59 AM
Hello, sorry to re-open this thread but where is that text into 2.0.18a version?
Into payment method configuration tab there is not.
Title: Re: Remove "add a message to display with the order" on thank you page
Post by: jenkinhill on February 01, 2013, 13:14:47 PM
antonio what do you want to do? The old bug with default text appearing on the order was fixed a long time ago.
Title: Re: Remove "add a message to display with the order" on thank you page
Post by: antonio on February 01, 2013, 13:54:43 PM
Hi
I see the message "add a message to display with the order" in all order mail.
How to remove it?
J! 2.5.6 with Virtuemart 2.0.18a
Title: Re: Remove "add a message to display with the order" on thank you page
Post by: jenkinhill on February 01, 2013, 15:16:48 PM
That text string is not used in VM supplied payment plugins in the 2.0.18a aio component (although it is still in the language file). So you are using some other payment plugin?

The variable is VMPAYMENT_STANDARD_PAYMENTINFO_EXPLAIN  - so you can create an empty language override for that.  (It is in joomla_root/administrator/language/en-GB/en-GB.plg_vmpayment_standard.ini )

http://forum.virtuemart.net/index.php?topic=92944.0

Override guide: http://www.ostraining.com/blog/joomla/languge-manager/


Title: Re: Remove "add a message to display with the order" on thank you page
Post by: jelly on February 25, 2013, 13:12:16 PM
Pro, thank you for your quick and easy solution.
I saw the message 'add a message to display with the order' in the Thank You page and in all emails as well. (Using the latest VM & latest Joomla).

THANX!