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

Problem with displaying Localizer Module on a storefront

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 09-07-2016, 07:59 PM
 
slavik.dev slavik.dev is offline
 

Newbie
  
Join Date: Sep 2016
Posts: 2
 

Default Problem with displaying Localizer Module on a storefront

Hi guys,
Recently Localizer (Localizer.co) module stopped working when moved to 5.3.1.
1. The Module is not displayed o storefront:
We have updated skins path (now skins/customer/modules/...) and changed from tpl to twig.
The view class has a getDefaultTemplate method that returns proper path to twig.

2. The admin section is now showing only one field.
Even though 2 fields are defined in install.yaml.
Previously (prior to 5.3) two fields were displayed.

Thanks you for your help.
__________________
X-Cart 5.3.1
Localizer
Reply With Quote
  #2  
Old 09-11-2016, 07:02 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Problem with displaying Localizer Module on a storefront

I'm not sure why it doesn't appear in the storefront, but the second point is likely due to a renamed field class:
- XLite\Model\WidgetParam\* classes are XLite\Model\WidgetParam\Object\Type* now
- XLite\View\FormField\Input\Text\Float class is XLite\View\FormField\Input\Text\FloatInput now
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 09-14-2016, 08:54 PM
 
slavik.dev slavik.dev is offline
 

Newbie
  
Join Date: Sep 2016
Posts: 2
 

Default Re: Problem with displaying Localizer Module on a storefront

Thank you Alex,
Just checked and I'm not using any of these classes in the admin config part of the application.
So it seems to be something else.

Thanks.
__________________
X-Cart 5.3.1
Localizer
Reply With Quote
  #4  
Old 09-22-2016, 09:35 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Problem with displaying Localizer Module on a storefront

I'm not sure if I can help you without looking into the source code.

> 2. The admin section is now showing only one field.

Is it the Edit Product page? If so, now it uses a different way to handle form fields. You should check \XLite\View\FormModel\* (defines form fields) and \XLite\Model\DTO\* (passes data between database models and the form) classes.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 12-05-2016, 01:29 AM
 
slavik.dev slavik.dev is offline
 

Newbie
  
Join Date: Sep 2016
Posts: 2
 

Default Re: Problem with displaying Localizer Module on a storefront

Good day,
No, it's an admin page where users can configure some parameters of the module.

Thank you.
__________________
X-Cart 5.3.1
Localizer
Reply With Quote
  #6  
Old 12-06-2016, 05:16 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Problem with displaying Localizer Module on a storefront

I believe the cause is still the same - your install.yaml declares a module setting that is using a class name missing in the new version.
You should update install.yaml and implement an upgrade hook that will change the class name for that field in the database for existing installations.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 02:25 PM.

   

 
X-Cart forums © 2001-2020