Search found 39 matches

Search found 39 matches

Jsf

Re: Twig template engine slow on product pages (OC. 3.0.3.1)

Twig render() function on product pages is extremely slow. # system/library/template/twig.php return $template->render($this->data); // this takes 0.5 seconds! The problematic are "catalog/controller/product/product.php" and "catalog/controller/product/category.php" index() meht...

Jump to post
  • Tue Dec 12, 2023 3:28 pm
  • Replies 19
  • Views 2316

Jsf

Re: How to modify admin model file with events? (OC 3.x - OC 4.x)

Thank you! Good example. Can you also give an example how I can modify language file? I need to add new language variable.

Jump to post
  • Wed May 31, 2023 7:49 pm
  • Replies 10
  • Views 10050

Jsf

Re: How to modify admin model file with events? (OC 3.x - OC 4.x)

You could write up an event handler for the trigger controller/catalog/product/getProducts/before so there won't be duplicate DB calls. Could you write a more detailed example? I think it would be useful for most people, because there is so little information about the events. And it would be very ...

Jump to post
  • Fri May 26, 2023 4:20 am
  • Replies 10
  • Views 10050

Jsf

Re: How to modify admin model file with events? (OC 3.x - OC 4.x)

You can't do that with Events, unfortunately. Instead, you have to add an "after" event that hooks into that function, and then re-run the database query with your own SQL to change the output. At least, that's the only way I know of. If this is for your own usage I would recommend using ...

Jump to post
  • Fri May 26, 2023 4:13 am
  • Replies 10
  • Views 10050

Jsf

Re: How to modify admin model file with events?

I know well how OCMOD works and how to make such a modification with OCMOD. But it is possible to change model files with events? What is the best practice if I want to modify some SQL queries? How to do that with events only?

Jump to post
  • Thu May 25, 2023 3:45 pm
  • Replies 10
  • Views 10050

Jsf

How to modify admin model file with events? (OC 3.x - OC 4.x)

Hi, I'm trying to move from Ocmod to Events and don't know what is the best way to modify admin model files, for example just change one line of code. I want to make a simple mod to improve getProducts function in admin/model/catalog/product.php file (add % at the beginning) replace: $sql .= " ...

Jump to post
  • Thu May 25, 2023 6:01 am
  • Replies 10
  • Views 10050

Jsf

How to modify json variable with Events?

Hi, I want to change: $json['total'] = sprintf($this->language->get('text_wishlist'), $this->model_account_wishlist->getTotalWishlist()); To: $json['total'] = $this->model_account_wishlist->getTotalWishlist(); File: catalog/controller/account/wishlist.php it is possible to do with OC Events (not wit...

Jump to post
  • Wed Jul 29, 2020 10:26 pm
  • Replies 13
  • Views 1916

Jsf

Re: OpenCart Alpha 3.1.0.0 has been released

Hello, Is OCMOD (marketplace/modification) temporary is removed from OC 3.1.x or for forever? Good question! Let's hope OCmod will be gone forever, forcing 3rd party extension developers to do plugins via event handlers. Events is good, but as I know with Events you can't change twig template file?...

Jump to post
  • Fri Jul 24, 2020 5:06 pm
  • Replies 147
  • Views 223629

Jsf

Re: OpenCart Alpha 3.1.0.0 has been released

Hello,

Is OCMOD (marketplace/modification) temporary is removed from OC 3.1.x or for forever?

Jump to post
  • Wed Jun 24, 2020 7:44 pm
  • Replies 147
  • Views 223629

Jsf

Re: OpenCart Alpha 3.1.0.0 has been released

I love OpenCart and still using 1.5 version on some projects. Every new version is better than previous. New features, bugs fixed and etc. OC 3.0.x is great version, but 3.1.x looks better. Well well well , you could not have it pointed out better, after beeing around here for 6 Years , and with yo...

Jump to post
  • Tue Feb 04, 2020 4:31 am
  • Replies 147
  • Views 223629

Jsf

Re: OpenCart Alpha 3.1.0.0 has been released

1.5+ year is too much time for beta testing. The worst that can happen is to start a new eshop on the old version and find out that a new stable version has been released in a few weeks. I think everyone wants to know at least the approximate release time. Ok then.. How much money have you got to i...

Jump to post
  • Sat Feb 01, 2020 5:18 pm
  • Replies 147
  • Views 223629

Jsf

Re: OpenCart Alpha 3.1.0.0 has been released

Why is OpenCart's new update not available? When will the new update be released? OpenCart is a very nice system, but I do not understand why it is not updated. I can help you here... OC new update is not available because is not ready. Is not very hard to understand, is it? In the past 12 months i...

Jump to post
  • Fri Jan 31, 2020 8:16 pm
  • Replies 147
  • Views 223629

Jsf

Re: OpenCart Alpha 3.1.0.0 has been released

Many people waiting for a new version. Maybe there is any news?

Jump to post
  • Thu Oct 03, 2019 2:53 am
  • Replies 147
  • Views 223629

Jsf

Re: Forms submit in admin (Chrome, jQuery bug?)

Thank you for fast reply. I hope OpenCart will fix it.

Jump to post
  • Thu Jul 04, 2019 3:56 pm
  • Replies 2
  • Views 992

Jsf

Forms submit in admin (Chrome, jQuery bug?)

Hello,

I noticed strange thing when saving forms in admin (saving product, attributes and etc.). This happens only in Chrome browser. Can anyone explain to me what it is?

chrome_error.jpg

chrome_error.jpg (42.95 KiB) Viewed 992 times

In Firefox all is good:
firefox_post.jpg

firefox_post.jpg (18.66 KiB) Viewed 991 times

The same error on OC 3.0.x and OC 2.3.x versions.

Jump to post
  • Thu Jul 04, 2019 3:40 pm
  • Replies 2
  • Views 992

Jsf

Re: OC 3.0.x Events System: How to modify twig template file?

Thank you for replies. All mentioned methods not very good looking forward because unexpected problems with other modules may occur. Events is good when you need to add something new or replace data array in controller. But as I understand to make small replaces in template files still best way with...

Jump to post
  • Sat May 25, 2019 2:48 pm
  • Replies 38
  • Views 20316

Jsf

OC 3.0.x Events System: How to modify twig template file?

Hello, OpenCart Events systems (https://github.com/opencart/opencart/wiki/Events-System) looks interesting, but I has a question: How to edit twig file without ocmod/vqmod? For example I need to replace one line in product_form.twig: {% if customer_group.customer_group_id == product_special.customer...

Jump to post
  • Fri May 24, 2019 8:43 pm
  • Replies 38
  • Views 20316

Jsf

Re: issues with increased the memory size

Hi,

the easiest solution is increase memory limit in server settings. If you already done it, you should optimize 3th party modules PHP code.
More info about this problem you can find here: viewtopic.php?t=102258

Jump to post
  • Fri May 10, 2019 8:09 pm
  • Replies 2
  • Views 1033

Jsf

Re: Add a row of poducts

It can depends on you theme. But you can try to edit "Latest" extension here: http://prntscr.com/nmsmm4 You can try to increase products limit to current module: http://prntscr.com/nmsmsz Or create new similar module. Don't forget to add in home layout: http://prntscr.com/nmsnah http://prn...

Jump to post
  • Fri May 10, 2019 7:53 pm
  • Replies 1
  • Views 430

Jsf

Finnish language Pack for OC 1.5.6

Hello,
maybe someone know where to find Finnish language pack for Opencart 1.5.6?
In the marketplace only for OC 2+

Jump to post
  • Thu Aug 31, 2017 3:42 pm
  • Replies 1
  • Views 2615

Search found 39 matches