Post by AdieB » Fri Jan 22, 2021 4:07 pm

I want to change the text from "loading..." to something like "placing order" on the Checkout. If I inspect the button, I see there are numerous "button('loading')" in the scripts, but it is a bit cryptic for me. Anyone able to assist as to where this button text is changed? in a language file??? :drunk: :drunk:
I have found the //Checkout section in checkout.tpl - but still confusing?
v2.3.0.2
Any feedback appreciated.

New member

Posts

Joined
Mon May 19, 2014 9:01 pm

Post by xxvirusxx » Fri Jan 22, 2021 5:16 pm

removed
Last edited by xxvirusxx on Fri Jan 22, 2021 5:39 pm, edited 1 time in total.

Extensions converted by me for Free | Custom 3.0.3.7 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by thekrotek » Fri Jan 22, 2021 5:28 pm

xxvirusxx wrote:
Fri Jan 22, 2021 5:16 pm
catalog/language/en-gb/en-gb.php

Code: Select all

$_['text_loading']          = 'Loading...';
This will change loading text everywhere, not just on checkout.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member
Online

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by xxvirusxx » Fri Jan 22, 2021 5:39 pm

Yes, you are right.

Extensions converted by me for Free | Custom 3.0.3.7 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by AdieB » Fri Jan 22, 2021 6:47 pm

OK , I have changedthe language file variable to
$_['text_loading'] = 'Processing...';
and as @thekrotek mentioned, all the buttons display "Processing..."
So, in theory I should then be able to create another variable in the language file and call it from the controller for that particular button, something like:-
New Variable -
$_['text_loading_confirm] = 'Placing order...';
Controller calls -
$data['text_loading'] = $this->language->get('text_loading_confirm');

However, I would have assumed that the Confirm Order button would have been called in either confirm.php or checkout.php controller.
Neither controller have this call.
I am not sure what controller calls the variable, so that I can change it.
Any ideas or are my assumptions incorrect??

New member

Posts

Joined
Mon May 19, 2014 9:01 pm

Post by xxvirusxx » Fri Jan 22, 2021 7:02 pm

I think has some small bugs.

For example guest controller call language file from:

Code: Select all

$this->load->language('checkout/checkout');
In same controller is:

Code: Select all

$data['text_loading'] = $this->language->get('text_loading');
But in checkout language file there is no text_loading....

Extensions converted by me for Free | Custom 3.0.3.7 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: No registered users and 22 guests