Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
You could try to adapt this
https://www.opencart.com/index.php?rout ... n_id=37492
Create a category with all products and use the above backwards?
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
If you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
https://www.opencart.com/index.php?rout ... on_id=9477
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
Can't see any TPL / TWIG folder or file in your extension while $this->template calls for it.grgr wrote: ↑Fri Aug 06, 2021 10:34 pmI did an extension for that a long time ago, so it's for 1.5. Wouldn't take a lot to 2.x it, I've just never had the time to deal with it, but it's free to download so you can use it as the base.
https://www.opencart.com/index.php?rout ... on_id=9477
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
be aware he is not on here so much but he will probably answer on his extension pages
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
E.g. in the OC 2.3.x controller (catalog/controller/extension/module/oosproducts.php), use something like
Code: Select all
return $this->load->view('extension/module/special', $data);
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I'd simply build an information page to show the link in order for the getInformation() method model to pull the pre-built page from the core rather than adding the link manually to the footer like that. I just converted the whole thing but I do think the way it was originally built was quite a bit over-thinked.JNeuhoff wrote: ↑Sat Aug 07, 2021 8:50 pmYou could use the extension/module/special.tpl (OC 2.3.x) or extension/module/special.twig (OC 3.x) for this.
E.g. in the OC 2.3.x controller (catalog/controller/extension/module/oosproducts.php), use something like
Personally, I'd just copy the special module, rename it to e.g. outofstock, and then just modify the DB query.Code: Select all
return $this->load->view('extension/module/special', $data);
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
I just used the specials template as it is essentially the same page data-layout, just for out of stock products.straightlight wrote: ↑Sat Aug 07, 2021 12:14 am
Can't see any TPL / TWIG folder or file in your extension while $this->template calls for it.
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
There are better ways to handle the data-layout - for sure.grgr wrote: ↑Sun Aug 08, 2021 10:35 pmI just used the specials template as it is essentially the same page data-layout, just for out of stock products.straightlight wrote: ↑Sat Aug 07, 2021 12:14 am
Can't see any TPL / TWIG folder or file in your extension while $this->template calls for it.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
You do confuse me sometimes! If I was to add a template for the out of stock products, it would essentially be a carbon copy of the specials template, with a different name, so why not just use the specials template?grgr wrote: ↑Sun Aug 08, 2021 10:35 pmThere are better ways to handle the data-layout - for sure.straightlight wrote: ↑Sat Aug 07, 2021 12:14 am
I just used the specials template as it is essentially the same page data-layout, just for out of stock products.
If the users theme has been modified a bit or by a "normal" theme, then it should just work without the user having to make any adjustment, on the basis that it is for free and therefore comes with no support for that sort of thing, seems to make sense to me.
Unless I'm missing something?
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
The use of Events does not require to duplicate a method model nor to create an XML file to target the common/footer controller file as to increase probabilities of conflicts.grgr wrote: ↑Mon Aug 09, 2021 10:39 amYou do confuse me sometimes! If I was to add a template for the out of stock products, it would essentially be a carbon copy of the specials template, with a different name, so why not just use the specials template?grgr wrote: ↑Sun Aug 08, 2021 10:35 pmThere are better ways to handle the data-layout - for sure.straightlight wrote: ↑Sat Aug 07, 2021 12:14 am
I just used the specials template as it is essentially the same page data-layout, just for out of stock products.
If the users theme has been modified a bit or by a "normal" theme, then it should just work without the user having to make any adjustment, on the basis that it is for free and therefore comes with no support for that sort of thing, seems to make sense to me.
Unless I'm missing something?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Ahh, ok, now I get you.straightlight wrote: ↑Mon Aug 09, 2021 7:34 pmThe use of Events does not require to duplicate a method model nor to create an XML file to target the common/footer controller file as to increase probabilities of conflicts.
If this was on OC3 then I would possibly use events(s) for this. I am slowly trying to remove all xml and move over to events for OC3 (though there are still some things that seem impossible with them, though 4.x seems to have that covered now).
As for OC2.x specifically, I just don't use Events, I find them cluncky, inconvenient and lacking. OC3 implementation I find much better and use extensively for some things.
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
Events have no difference with the controllers and models (or very few) whether it originates from OC v2.3x or OC v3.x releases. However, you are correct regarding the bit limitations but that doesn't mean it shouldn't be used for being cluncky, inconvenient and lacking since controllers shows no issues based on the conflicts it could avoid on smaller controller files.grgr wrote: ↑Mon Aug 09, 2021 8:31 pmAhh, ok, now I get you.straightlight wrote: ↑Mon Aug 09, 2021 7:34 pmThe use of Events does not require to duplicate a method model nor to create an XML file to target the common/footer controller file as to increase probabilities of conflicts.
If this was on OC3 then I would possibly use events(s) for this. I am slowly trying to remove all xml and move over to events for OC3 (though there are still some things that seem impossible with them, though 4.x seems to have that covered now).
As for OC2.x specifically, I just don't use Events, I find them cluncky, inconvenient and lacking. OC3 implementation I find much better and use extensively for some things.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: Baidu [Spider] and 14 guests