| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Remove Payment Total From Button? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
[Resolved] Remove Payment Total From Button?
Hi community,
I was wondering if anyone knows a way to turn off the payment amount in the order button. I have noticed when visiting the checkout page the order total is given above the pay this button plus added to the pay button. The issue is the total isn't updated in the payment button when a shipping change is made, thus it is confusing to the customer. I would also just prefer not to have this total in the button anyway. This behavior is happening on multiple computers with different browsers (IE, Chrome, Opera, etc). Thanks!
__________________
Respectfully, Jeremy X-Cart 5.3 running on: * Web server: Nginx with PHP-FPM via FastCGI (Opcache enabled) * Database: Percona Server * OS: CentOS |
|||||||
#2
|
|||||||
|
|||||||
Re: Remove Payment Total From Button?
I should add the total isn't updating if Amazon Payments is used. If using standard credit card it does but again doesn't with Amazon Payments. I am guessing there is something in that code that is preventing the screen from updating correctly.
Anyway I still would rather get rid of the total on the button.
__________________
Respectfully, Jeremy X-Cart 5.3 running on: * Web server: Nginx with PHP-FPM via FastCGI (Opcache enabled) * Database: Percona Server * OS: CentOS |
|||||||
#3
|
|||||||
|
|||||||
Re: Remove Payment Total From Button?
I did this...
Add a new file to your theme view classes RemoveTotalFromPlaceOrderButton.php Code:
This should replace the figures with simple 'Place Order' text.
__________________
Core version: 5.5.xx |
|||||||
|
#4
|
|||||||
|
|||||||
Re: Remove Payment Total From Button?
Thank you for the code!
I made a standard deployable module for 5.x that can be uploaded and installed like any other module. I did change the text to "Place My Order". I hope this helps someone else out. You can edit the text if you want but the code is ready to go and was installed into the production copy after my development. 1) Download the attached file and unzip 2) Then in XCart admin go to Modules and upload it to install. Once enabled the magic should happen.
__________________
Respectfully, Jeremy X-Cart 5.3 running on: * Web server: Nginx with PHP-FPM via FastCGI (Opcache enabled) * Database: Percona Server * OS: CentOS |
|||||||
|
#5
|
|||||||
|
|||||||
Re: Remove Payment Total From Button?
Sorry I included some code from a custom plugin that isn't necessary. So I reuploaded the reduced file. The code won't hurt anything but it isn't necessary.
__________________
Respectfully, Jeremy X-Cart 5.3 running on: * Web server: Nginx with PHP-FPM via FastCGI (Opcache enabled) * Database: Percona Server * OS: CentOS |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|