Search found 119 matches

Search found 119 matches

Re: Single extension with multiple controllers?

Unfortunately, the ancillary controllers are still shown before the extension is installed via extension list. So I conditionally append a script tag (removed via startup controller everywhere else) to heading_title primary controller language, that hides unwanted rows on page load, before startup e...

Jump to post
  • Mon Sep 30, 2024 10:19 pm
  • Replies 3
  • Views 1606
Re: Single extension with multiple controllers?

Startup controller needed one more method to adjust extension "categories" dropdown... public function marketplace(string &$route, array &$args, mixed &$output): void { foreach ($args['categories'] as $key => $category) { if ($category['code'] == 'other') { $this->load->languag...

Jump to post
  • Sun Sep 29, 2024 10:21 pm
  • Replies 3
  • Views 1606
Re: Single extension with multiple controllers?

What I came up with since posting... extension/name/admin/controller/startup/primary.php public function index(): void { $this->event->register('view/extension/other/before', new \Opencart\System\Engine\Action('extension/name/startup/primary.extensions')); } public function extensions(string &$r...

Jump to post
  • Sun Sep 29, 2024 9:25 pm
  • Replies 3
  • Views 1606
Single extension with multiple controllers?

Goal: Creating a single extension with multiple controllers Issue: All controllers show up at Admin > Extensions > Others Folder structures attempted... extension name admin controller other primary.php ancillary_one.php ancillary_two.php extension name admin controller other primary.php folder anc...

Jump to post
  • Sun Sep 29, 2024 4:55 am
  • Replies 3
  • Views 1606
Re: Twig {% include %} function changed in Opencart 3.0.3.5

If OC had a few more partial views we wouldn't use includes ;)

  • Was nice to see 'product/thumb.twig' in a separate file.
  • Breadcrumbs should have got the same treatment.

Jump to post
  • Thu Sep 26, 2024 2:41 am
  • Replies 7
  • Views 8627
Re: Twig {% include %} function changed in Opencart 3.0.3.5

Try specifying the path from the index.php... {% include 'extension/my_theme/catalog/view/template/product/product_list.twig' %} We keep product lists in a single file with conditionals for showing controls (eg: single layout for category, search, module, etc). We also do the same thing for breadcru...

Jump to post
  • Wed Sep 25, 2024 8:56 pm
  • Replies 7
  • Views 8627
Re: [SOLVED] How update CKEditor 4.22.1 to the latest one, in OpenCart 4.0.2.3

See: https://github.com/opencart/opencart/co ... c9ef491cf2

File: admin/view/javascript/ckeditor/config.js

Find:
config.resize_dir = 'vertical';

Add:
config.versionCheck = false;

Jump to post
  • Mon Sep 16, 2024 8:10 am
  • Replies 11
  • Views 6505
Re: What are the major bugs in 3.0.2.0?

I suggest waiting for 3.1. There were quite a few issues in 3.x (see here and here). Would be prudent to wait for next official release ;)

PS: Never jump on the first release of a major version number :P

Jump to post
  • Fri Oct 19, 2018 1:07 am
  • Replies 3
  • Views 1764
Re: Language string ''Your shopping cart is empty!'' Apear on everypage

Brought this up a year ago, but arguing over validity got me banned from the github project when corrected... go figure :/

Jump to post
  • Fri Oct 19, 2018 12:46 am
  • Replies 4
  • Views 1062
Re: Google reCaptcha Bypassed

Located similar/same problem that "seemed" to be user bypassing Google's reCaptcha. Was actually due to the "gcapcha" session variable never being cleared. Fixed by adding ocmod that unsets the var in google_captcha.php->index(). Added expire() function for use with "data-ex...

Jump to post
  • Fri Oct 19, 2018 12:16 am
  • Replies 15
  • Views 5921
Re: problems with font-awesome icons

Could just force what you have in config.php using .htaccess to correct the issue for all resources ;) # Force SSL and WWW RewriteCond %{SERVER_PORT} 80 [OR] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R=301,L] - OR - # No SSL or WWW RewriteCond %{SERVER_P...

Jump to post
  • Fri Apr 13, 2018 1:07 am
  • Replies 1
  • Views 2034
Re: Warning: htmlentities() charset `UTF-8;' not supported, assuming utf-8

It is a non-issue for me. Was attempting to show others that was a reasonable solution in my opinion.

Maybe if the setting was validated at 'install/step_3' it would avoid others reporting the same problem ;)

Jump to post
  • Tue Apr 10, 2018 8:41 am
  • Replies 33
  • Views 19773
Re: Warning: htmlentities() charset `UTF-8;' not supported, assuming utf-8

While you indicate the issue is still present on Github, and the user above on this topic did indicated the issue was resolved after the provided solution, did you tried the provided solution above? If so, what were the results? Upon finding a solution on page one, did not continue to page 2 (topic...

Jump to post
  • Tue Apr 10, 2018 8:38 am
  • Replies 33
  • Views 19773
Re: Warning: htmlentities() charset `UTF-8;' not supported, assuming utf-8

straightlight provided the proper solution... In catalog/controller/extension/payment/pp_standard.php file, find: 'name' => htmlspecialchars($product['name']), 'model' => htmlspecialchars($product['model']), replace: 'name' => html_entity_decode($product['name'], ENT_QUOTES, 'UTF-8'), 'model' => htm...

Jump to post
  • Tue Apr 10, 2018 7:50 am
  • Replies 33
  • Views 19773
Re: [v3.0.2.0 - Fix] - text empty with text no results

Just confirming this list seems to cover all the instances of the issue we reported on git. At least it's an easy fix ;)

Jump to post
  • Wed Oct 11, 2017 12:13 am
  • Replies 2
  • Views 1982
Re: Orders staying in basket but payment going through

Sounds like either a javascript error or problem in the ajax response is preventing the redirect. Email me directly at rmullaney77 [at] gmail [dot] com if you want some assistance as I am generally too busy to browse the forums looking for those who have these types of problems ;)

Jump to post
  • Thu Aug 10, 2017 12:09 am
  • Replies 5
  • Views 2693
Login with Amazon "undefined variable user" fixed with OCMOD

Fixes the "undefined variable $user" error in "catalog/controller/module/amazon_login.php" http://www.opencart.com/index.php?route=extension/extension/info&extension_id=27114 The PHP error is displayed when a user clicks "Cancel" on the login popup. Created to patch...

Jump to post
  • Fri Jul 01, 2016 2:03 am
  • Replies 0
  • Views 742
Re: Changes to module search tags. Mod devs please READ!

Lets make this simple again... Just add an opt-in/out follow-up checkbox

Nothing illegal, not complicated, nothing to debate, just a checkbox and an automated script ::)

Didn't need to become a full-blown legal debate :P

Jump to post
  • Thu Jun 30, 2016 3:17 am
  • Replies 32
  • Views 215935
Re: Changes to module search tags. Mod devs please READ!

As long as the customer has not agreed explicit to recieve such emails, they are called SPAM. And can therefore be punished. Then have a checkbox permitting as much during checkout. Not exactly hard to work around. Something is better than nothing. Also, as they are a customer so a post-sale follow...

Jump to post
  • Wed Jun 29, 2016 5:02 am
  • Replies 32
  • Views 215935
Re: Changes to module search tags. Mod devs please READ!

Now this would be a lot of work, but it might be that OpenCart could email purchasers a few days after purchase asking for a rating on a few different criteria such as ease of install, speed of support if required, quality etc. This would help to build up a more accurate picture of an extension's q...

Jump to post
  • Wed Jun 29, 2016 12:29 am
  • Replies 32
  • Views 215935

Search found 119 matches