Post by nongetjie » Tue Sep 28, 2021 2:31 pm

Hi,

I have an extension which is not working as expected. Some research brought me to the possible conclusion that the use of the index attribute in the install.xml is not correct. They use

Code: Select all

index="0"
to search for the first occurrence of a string, but I believe this should be

Code: Select all

index="1"
, at least, that is how it works with VQMod https://github.com/vqmod/vqmod/wiki/Scripting. And changing the value to "1" also solves my issue :-)

Am I right or does it work otherwise with OCMod? I could not find it in the OCMod documentation.

New member

Posts

Joined
Wed Nov 07, 2012 8:28 pm

Post by DigitCart » Tue Sep 28, 2021 2:55 pm

Hi
Ocmod starts from 0 and Vqmod starts from 1.

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by nongetjie » Tue Sep 28, 2021 4:14 pm

DigitCart wrote:
Tue Sep 28, 2021 2:55 pm
Hi
Ocmod starts from 0 and Vqmod starts from 1.
Thanks, that only makes my problem more weird :-)

But good to know!

New member

Posts

Joined
Wed Nov 07, 2012 8:28 pm

Post by straightlight » Tue Sep 28, 2021 9:08 pm

nongetjie wrote:
Tue Sep 28, 2021 4:14 pm
DigitCart wrote:
Tue Sep 28, 2021 2:55 pm
Hi
Ocmod starts from 0 and Vqmod starts from 1.
Thanks, that only makes my problem more weird :-)

But good to know!
Now that the issue has been solved, please add: [SOLVED] at the beginning of the subject line on your first post.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 136 guests