Post by swatpc » Sat Apr 04, 2015 6:57 am

NOT FOUND in version 2.0.2.0 <file path="catalog/controller/module/{featured,bestseller,latest,special}*.php"> in OCMOD because?
Last edited by swatpc on Sat Apr 04, 2015 10:00 am, edited 1 time in total.

Denis Cunha
Opencart Master
suporte@opencartmaster.com.br


User avatar
Newbie

Posts

Joined
Mon Feb 02, 2015 10:11 pm

Post by yodapt » Sat Apr 04, 2015 8:33 am

It's module and not modules.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by swatpc » Sat Apr 04, 2015 10:00 am

i know, it is one exemple
Not found in multiple file only in one

Denis Cunha
Opencart Master
suporte@opencartmaster.com.br


User avatar
Newbie

Posts

Joined
Mon Feb 02, 2015 10:11 pm

Post by pprmkr » Sat Apr 04, 2015 1:54 pm

swatpc wrote:NOT FOUND in version 2.0.2.0 <file path="catalog/controller/module/{featured,bestseller,latest,special}*.php"> in OCMOD because?
The search is not found when it does not exist. Simple as that.

There are some differences between the 4 files mentioned.

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by rph » Sat Apr 04, 2015 3:18 pm

The ocMod API was silently broken in OpenCart 2.0.2.0. Seriously. It's listed as a "fix" in the change log when it's a straight-up break of the schema to handle GLOB_BRACE edge cases. The wiki documentation hasn't been updated either.

The new method is now comma separated full paths:

Code: Select all

<file path="catalog/controller/module/featured.php,catalog/controller/module/bestseller.php,catalog/controller/module/latest.php,catalog/controller/module/special.php">
So if you used this feature in previous ocMod scripts, congratulations! You now get to support two separate scripts for 2.x or have to refactor to include lots of duplicate code.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by pprmkr » Sat Apr 04, 2015 6:25 pm

Ryan,

You are right. I did not notice it.

Thank you for pointing this out.

Daniel keeps us busy ...

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by swatpc » Sat Apr 04, 2015 10:45 pm

pprmkr wrote:
swatpc wrote:NOT FOUND in version 2.0.2.0 <file path="catalog/controller/module/{featured,bestseller,latest,special}*.php"> in OCMOD because?
The search is not found when it does not exist. Simple as that.

There are some differences between the 4 files mentioned.

the same file works normal in version 2.0.1.1

Denis Cunha
Opencart Master
suporte@opencartmaster.com.br


User avatar
Newbie

Posts

Joined
Mon Feb 02, 2015 10:11 pm

Post by swatpc » Sat Apr 04, 2015 10:47 pm

Dears tanks a all

Denis Cunha
Opencart Master
suporte@opencartmaster.com.br


User avatar
Newbie

Posts

Joined
Mon Feb 02, 2015 10:11 pm
Who is online

Users browsing this forum: No registered users and 33 guests