Hello igoryakovlev666igoryakovlev666 wrote: ↑Wed Aug 30, 2017 9:21 pmHi, i have some problem with heading_title and some other text variable. For example in demo, when some products are added to the cart, in cart page heading title is "Shopping Cart", but in my case heading title is "Use Gift Certificate". This variable overwritten from other controllers, if they are added to page, i dont understand hot to fix it. Help plz.
Can you please tell me which opencart version you are using and that cart screen short also with problem explanation
Thanks
sachin
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
3.0.2.0sachin6609 wrote: ↑Wed Aug 30, 2017 9:44 pmHello igoryakovlev666igoryakovlev666 wrote: ↑Wed Aug 30, 2017 9:21 pmHi, i have some problem with heading_title and some other text variable. For example in demo, when some products are added to the cart, in cart page heading title is "Shopping Cart", but in my case heading title is "Use Gift Certificate". This variable overwritten from other controllers, if they are added to page, i dont understand hot to fix it. Help plz.
Can you please tell me which opencart version you are using and that cart screen short also with problem explanation
Thanks
sachin
https://goo.gl/photos/sMULmgg9jF8n1D2z9
This problem occurs every time a page has a module with the same text variable. Screenshot shows that the variable from the module overwrites the variable from cart page..
Update: Now I am able to reproduce it, too.This problem occurs every time a page has a module with the same text variable. Screenshot shows that the variable from the module overwrites the variable from cart page..
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Thx for reply. I can fix it like u solution. If module in left column, i can put
$data['column_left'] = $this->load->controller('common/column_left');
Higher then
$this->load->language('account/forgotten');
And it fix. But is this the best practices?I must remake all "broken" controllers?
For example, there is no such problem on the product page.
The story is that, if the page has a variables in the language file and a module is added to the page. A variables from the module overwrites the original language file of the page. I hope u understand me. Absolute clean version 3.0.2.0. There is no such problem on the opencart demo.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Code: Select all
<?php
class ControllerEventLanguage extends Controller {
public function index(&$route, &$args) {
foreach ($this->language->all() as $key => $value) {
if (!isset($args[$key])) {
$args[$key] = $value;
}
}
}
....
It is supposed to load any missing language variables from the currently loaded language files. Perhaps Daniel had the vision to avoid the many
Code: Select all
$data['...'] = $this->language->get('...')
Anyway the bugfix is easy:
Just add the missing
Code: Select all
$data['heading_title'] = $this->language->get('heading_title');
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Code: Select all
$data['heading_title'] = $this->language->get('heading_title');
Thanks again for the great solution.
StormDesigns, Inc. Website Design and Web Application Development - plus graphic design and print media.
www.StormDesigns.com
Users browsing this forum: paulfeakins and 460 guests