X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   X-Payments issues & questions (https://forum.x-cart.com/forumdisplay.php?f=50)
-   -   Editing the payment "template" page (https://forum.x-cart.com/showthread.php?t=64110)

AMMoyer 06-27-2012 08:43 AM

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

Toora Designs 06-27-2012 09:01 AM

Re: Editing the payment "template" page
 
Content > Language > {select your language} > search for language variable "PayPal WPP Direct Payment" and change it :)

AMMoyer 06-27-2012 09:24 AM

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.

Toora Designs 06-27-2012 09:56 AM

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

gb2world 06-27-2012 11:18 AM

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?

---

AMMoyer 06-27-2012 12:26 PM

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);')); ?>


carpeperdiem 11-28-2012 12:56 PM

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

carpeperdiem 11-28-2012 01:33 PM

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?


All times are GMT -8. The time now is 02:56 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.