Hello.
Can I ask please if index tag in ocmod's are working ?
I see the documentation : https://github.com/opencart/opencart/wi ... ion-System and I see it does .
But I have wrote a ocmod and I m struggling where I have made a mistake because the index=5 is not working and it changes all the referring code in the file.
I am attaching the ocmod extension which is Add Model at Related Products at Admin
Thanks
Last edited by iplocker on Thu Dec 31, 2020 4:04 pm, edited 1 time in total.
You would want to use index from the search tag.
Also if I recall index count starts at zero. So, unless you already accounted for that it would probably be 4 instead of 5.
ex:
If this is something you plan on putting on the marketplace, you may want consider OC's event system and familiarize yourself with that.
-
Also if I recall index count starts at zero. So, unless you already accounted for that it would probably be 4 instead of 5.
ex:
Code: Select all
<search index="4">
-
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
The extension title is wrong, however. It's not the SKU being modified in there, it's rather the model.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
What is the actual issue?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Hello.
Thanks for the replies.
The issue was that I didnt count the 0 place !!!! Gosh spent so much time for this !
I am not going to put it in the market and sorry for the wrong title in the extension ,yes its calling the model not the sku .
Best Wishes !
Thanks for the replies.
The issue was that I didnt count the 0 place !!!! Gosh spent so much time for this !
I am not going to put it in the market and sorry for the wrong title in the extension ,yes its calling the model not the sku .
Best Wishes !
Who is online
Users browsing this forum: Majestic-12 [Bot] and 336 guests