News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Remove "add a message to display with the order" on thank you page

Started by camel007, March 24, 2012, 05:25:55 AM

Previous topic - Next topic

camel007

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]

PRO

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 ?>

camel007

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

PRO


raimiuxas

I have the same question, but don't understand answers. Please explain more 

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

PRO

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=""

antonio

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.

jenkinhill

antonio what do you want to do? The old bug with default text appearing on the order was fixed a long time ago.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

antonio

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

jenkinhill

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/


Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jelly

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!