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

module compatibility from xc5.2 to 5.3.xx

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 03-20-2018, 03:52 AM
  Dmitry's Avatar 
Dmitry Dmitry is offline
 

Member
  
Join Date: Jun 2010
Posts: 18
 

Question module compatibility from xc5.2 to 5.3.xx

Hi,
just got the XC5 upgraded to the 5.3.4.5 but that's got all incompatiable modules disabled

So, the templates were moved to twig from one of the modules that is urgently needed as well the needed classes's methods disabled (which are already build-in according to kb ). Also, the code changes like XLite\Model\WidgetParam\String => XLite\Model\WidgetParam\TypeString were done.

However, the error this module shows is:

[Syntax Error] line 0, col 209: Error: Expected end of string, got 'date'

Having looked to the XC/Reviews module it makes me think the disabled methods still need to be present in some other way but not sure 100% as you may already guessed... OK, so please take a look to the model published here: https://gist.github.com/modxcustomize/d9c918101d31bad564fc2f860c215f08

Is there a way to start making it work? Sorry, not sure how the latest Doctrine must work..
__________________
xcart power and php/html/js coder is best friend
Reply With Quote
  #2  
Old 04-02-2018, 04:52 AM
  xplorer's Avatar 
xplorer xplorer is offline
 

X-Cart team
  
Join Date: Jul 2004
Posts: 925
 

Default Re: module compatibility from xc5.2 to 5.3.xx

PHP Code:
// ...
        
$left_profile = \XLite\Core\Database::getRepo('XLite\Model\Profile')->find($value);
        
$queryBuilder->andWhere('pr.leftProfile = :left_profile')
                ->
setParameter('left_profile'$left_profile);
// ... 

I believe you don't have to query the profile from the database. Using the numeric profile identifier in the setParameter() line should work too.

As for the "Expected end of string, got 'date'" - it's hard to guess what may cause this. Do see a more detailed error message in the var/log/ directory?
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:25 AM.

   

 
X-Cart forums © 2001-2020