Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Editing the payment "template" page

 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #1  
Old 06-27-2012, 08:43 AM
 
AMMoyer AMMoyer is offline
 

Senior Member
  
Join Date: Nov 2008
Posts: 150
 

Default Editing the payment "template" page

I've almost got a payment page that looks how I want it to. I cannot find where this payment method line is coming from to remove it. There is no CSS linked to it either. Can anyone shed some light for me?

http://www.ingallseng.com/forum/Screenshot.jpg
__________________
Adam
X-Cart Gold 4.4.5 - Live
X-Cart Gold 4.1.11 - Retired
X-Payments 1.0.4
CDSEO Pro
EWD Hosting
Reply With Quote
  #2  
Old 06-27-2012, 09:01 AM
  Toora Designs's Avatar 
Toora Designs Toora Designs is offline
 

eXpert
  
Join Date: Aug 2011
Location: California USA
Posts: 281
 

Default Re: Editing the payment "template" page

Content > Language > {select your language} > search for language variable "PayPal WPP Direct Payment" and change it
__________________
If you need professional help on your x-cart site or any website.
Feel free to PM me or Skype me to discuss your project.
Reply With Quote
  #3  
Old 06-27-2012, 09:24 AM
 
AMMoyer AMMoyer is offline
 

Senior Member
  
Join Date: Nov 2008
Posts: 150
 

Default Re: Editing the payment "template" page

Where? In the admin side of XPayments? I see no such beast. That language variable does not exist in my XCart install either.

Thanks.
__________________
Adam
X-Cart Gold 4.4.5 - Live
X-Cart Gold 4.1.11 - Retired
X-Payments 1.0.4
CDSEO Pro
EWD Hosting
Reply With Quote
  #4  
Old 06-27-2012, 09:56 AM
  Toora Designs's Avatar 
Toora Designs Toora Designs is offline
 

eXpert
  
Join Date: Aug 2011
Location: California USA
Posts: 281
 

Default Re: Editing the payment "template" page

it's gotta be language variable in your x-cart backend.
http://help.x-cart.com/index.php?title=X-Cart:Customizing_Text_Labels

or see the .tpl file for more info and you can do this by webmaster mode as well
__________________
If you need professional help on your x-cart site or any website.
Feel free to PM me or Skype me to discuss your project.
Reply With Quote
  #5  
Old 06-27-2012, 11:18 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Editing the payment "template" page

You can check the language variables in X-Payments: http://forum.x-cart.com/showthread.php?t=56940, but that one might be coming from your Payment Methods set up in X-Cart?

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #6  
Old 06-27-2012, 12:26 PM
 
AMMoyer AMMoyer is offline
 

Senior Member
  
Join Date: Nov 2008
Posts: 150
 

Default Re: Editing the payment "template" page

Solved: See the two lines I commented out in /lib/XPay/Skin/Payment/Main.php

PHP Code:
<div class="payment-warning">
  <?php $this('Label_Text')->write('Do not use the BACK button in your browser to avoid placing the order twice.'); ?>
</div>

<h1><?php $this('Label_Text')->write('Credit card details'); ?></h1>
<!-- <?php $this('Label_Text')->write('Payment method'); ?>:&nbsp; --!>
<?php $this('Label_Text')->write($this->getPayment()->getPaymentConf()->get('name'), false); ?>
<?php $this
('Form')->begin('main''pay', array('token' => $this->get('token'), 'action' => 'pay'), XPay_Transport_Request::POST, array('onsubmit' => 'javascript: return checkCCDataForm(this);')); ?>
__________________
Adam
X-Cart Gold 4.4.5 - Live
X-Cart Gold 4.1.11 - Retired
X-Payments 1.0.4
CDSEO Pro
EWD Hosting
Reply With Quote

The following 2 users thank AMMoyer for this useful post:
ambal (06-27-2012), carpeperdiem (10-22-2012)
  #7  
Old 11-28-2012, 12:56 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Editing the payment "template" page

Quote:
Originally Posted by AMMoyer
Solved: See the two lines I commented out in /lib/XPay/Skin/Payment/Main.php

PHP Code:
<div class="payment-warning">
  <?php $this('Label_Text')->write('Do not use the BACK button in your browser to avoid placing the order twice.'); ?>
</div>

<h1><?php $this('Label_Text')->write('Credit card details'); ?></h1>
<!-- <?php $this('Label_Text')->write('Payment method'); ?>:&nbsp; --!>
<?php $this('Label_Text')->write($this->getPayment()->getPaymentConf()->get('name'), false); ?>
<?php $this
('Form')->begin('main''pay', array('token' => $this->get('token'), 'action' => 'pay'), XPay_Transport_Request::POST, array('onsubmit' => 'javascript: return checkCCDataForm(this);')); ?>

Adam,

I copy/pasted your code and it rendered IE8 useless. All other browsers were forgiving. I should have caught it...
Closing comment should have been --> not --!>

And it looks like you edited this post? We had previously commented out 2 lines:

PHP Code:
<!-- <?php $this('Label_Text')->write('Payment method'); ?>:&nbsp;
<?php $this('Label_Text')->write($this->getPayment()->getPaymentConf()->get('name'), false); ?> -->
THEN -- after this edit I learned about the "lite interface" and then it turns out the lite interface doesn't even use this code. Except the parsing error rendered IE8 dead.

This caused some serious heartache and I now owe some major apologies for this. My credibility with x-cart has gone down dramatically and I will do everything possible to make sure everyone knows the reason for this. I am editing a bunch of posts right now.

Alex, if you're reading this, PLEASE edit the code in Adam's post so the closing comment is -->

IF ANYONE is reading this - don't copy/paste - if you want to comment out the processor (you should) type the comment in.

J
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #8  
Old 11-28-2012, 01:33 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Editing the payment "template" page

PS --

What do these two lines of code do specifically? What am I actually removing by commenting them out?

<!-- <?php $this('Label_Text')->write('Payment method'); ?>:&nbsp; -->
<!-- <?php $this('Label_Text')->write($this->getPayment()->getPaymentConf()->get('name'), false); ?> -->

I think it is removing the "payment gateway" text, right?

Yes - my customers have no need to know that I use "Elavon Virtual Merchant - Merchant Provided Form" as the payment method. All they care about is "credit card". Duh.

I have these lines commented out for now. Any reason not to?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:59 AM.

   

 
X-Cart forums © 2001-2020