Search found 17 matches

Page 1 of 1

Search found 17 matches

[v3.x - concept] - Extend multistore config for extensions

Hi Guys, I'm developing an extension and thinking about it for OC native extensions. Why not extend multi-store configurations for each extension? For example: $this->model_setting_setting->editSetting('payment_free_checkout', $this->request->post); it could be: $this->model_setting_setting->editSet...

Jump to post
  • Fri Jun 28, 2019 9:16 am
  • Replies 1
  • Views 4150
Re: Access data from another Controller

Hello all, How can I access one variable from an extension in header.twig? You can see my example here how I managed to access variable from setting (controller and view) files in header. https://github.com/bblori/Enable-Style-OC3 But this time I want to manage from an extension, I inserted the sam...

Jump to post
  • Fri May 31, 2019 8:55 am
  • Replies 9
  • Views 4498
Re: Access data from another Controller

Just an update that I've managed to solve this although I'm happy for somebody to suggest a better solution ;) End result has been to create a vQmod that adds some code within /system/engine/controller.php as the very first call of the render() method. This queries if $this->data['breadcrumbs'] exi...

Jump to post
  • Fri May 31, 2019 8:49 am
  • Replies 9
  • Views 4498
Re: 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.custome...

Jump to post
  • Sat May 25, 2019 5:31 am
  • Replies 38
  • Views 20459
Re: [v3.x - Concept] - Bestseller extension

Ok, I know how to create the api, but the purpose of my post was to make it simpler in the OC library.

I understood the post, but the central point of the question is to take this type of proposal to the library of the oc... ;)

Jump to post
  • Sun May 12, 2019 8:37 am
  • Replies 39
  • Views 28888
Re: [v3.x - Concept] - Bestseller extension

There's no need to re-invent the wheel by using an API. Simply use this example: https://forum.opencart.com/viewtopic.php?f=202&t=203512&p=720446#p720446 . Then, once the token gathered at the bottom, use the custom codes as you see fits to return the results to your jQuery response. maybe ...

Jump to post
  • Sun May 12, 2019 7:41 am
  • Replies 39
  • Views 28888
Re: [v3.x - Concept] - Bestseller extension

ok! I know it's not related to the topic, but how about we add an api library? It would facilitate the development of extensions to connect to external apps. For example: $api new Api ('base_url', $options); $api->auth($params); $api->post('endpoint', $ data); I would use guzzle to make the request....

Jump to post
  • Sat May 11, 2019 8:56 pm
  • Replies 39
  • Views 28888
Re: [v3.x - Concept] - Bestseller extension

Sorry, I made a little confusion, I think I got it now. About my suggestion, what I envisioned was related to an attempt to buy / buy and customer search. For example: if the client is logged and search iphone term, posteriorly during in store navigation, the modules automatically displays iphone re...

Jump to post
  • Sat May 11, 2019 9:03 am
  • Replies 39
  • Views 28888
Re: [v3.x - Concept] - Bestseller extension

In OC v3.x releases (and perhaps prior), the bestsellers extension is based on the highest prices being sold which provides the vision on noticing the ordered products that have been purchased with limited results. However, since Opencart v3.0.2.0 and above has a customer search method built-in, I ...

Jump to post
  • Sat May 11, 2019 7:02 am
  • Replies 39
  • Views 28888
Re: Remove code repetition

I would like to effectively contribute to the OC Well, that's great. :) But better don't expect anyone to praise you for that, because OC is well known, to most likely 'follow' it's own strategy, when it comes to such. And it might not be so easy, to convince them, and some even left again, during ...

Jump to post
  • Thu May 02, 2019 9:19 am
  • Replies 2
  • Views 1143
Remove code repetition

Hi guys, I know this subject has been discussed before, but I would like to effectively contribute to the OC have less repetition and consequently less line of code, obviously without losing the simplicity and without causing errors. I raised a discussion in Github on this topic. With only two simpl...

Jump to post
  • Thu May 02, 2019 7:55 am
  • Replies 2
  • Views 1143
Re: duplicate queries in db operation

Ah yes, I did not pay attention to this small detail ;D My intention was precisely to raise the discussion about performance. But in that case, could not we do a check (if) before? Obviously if this were not to compromise performance, which is the crux of the matter. Your update sql will update all ...

Jump to post
  • Tue Apr 23, 2019 8:46 am
  • Replies 4
  • Views 1701
Re: duplicate queries in db operation

Because the languages are variable - can change. But in the example I mentioned I also inserted the language_id to be updated. The difference is that in the current mode a new DB key is used and in the case I mentioned the key will be reused. This occurs with other inserts, such as produtc_filter, ...

Jump to post
  • Sun Apr 21, 2019 9:34 pm
  • Replies 4
  • Views 1701
Re: create class breadcrumbs

Seems like an obvious thing to do, cant see why it wasn't done sooner! Alternatively though, perhaps it should be part of the modules and be assigned via layout. That way it can be added/removed or placed somewhere else as needed. Some people prefer them at the top, others at the bottom some top an...

Jump to post
  • Sun Apr 21, 2019 4:14 am
  • Replies 3
  • Views 1342
Re: create class breadcrumbs

Seems like an obvious thing to do, cant see why it wasn't done sooner! Alternatively though, perhaps it should be part of the modules and be assigned via layout. That way it can be added/removed or placed somewhere else as needed. Some people prefer them at the top, others at the bottom some top an...

Jump to post
  • Fri Apr 19, 2019 7:44 am
  • Replies 3
  • Views 1342
duplicate queries in db operation

Hi, I noticed that some operations on the models perform unnecessary queries (from my point of view). For example: $this->db->query("DELETE FROM " . DB_PREFIX . "product_description WHERE product_id = '" . (int)$product_id . "'"); foreach ($data['product_description'] a...

Jump to post
  • Fri Apr 19, 2019 7:41 am
  • Replies 4
  • Views 1701
create class breadcrumbs

Hi,

Just like paging, we could use a class for the breadcrumbs.

I discussed this in github: https://github.com/opencart/opencart/pull/7253

Would not it be interesting to implement this approach?

Jump to post
  • Thu Apr 18, 2019 9:09 am
  • Replies 3
  • Views 1342

Page 1 of 1

Search found 17 matches