Questions tagged [opencart-events]

16 questions
12
votes
3 answers

How can we use opencart events?

I have searched a lot about opencart triggers but didn't find a proper example. In opencart 2.0 there are triggers on which developer can hook function and perform something just like wordpress action and filters i guess. For example…
Adnan
  • 489
  • 1
  • 3
  • 10
2
votes
1 answer

where is in journal3 (template for opencart) iframe? And how can I changing it?

I was look for .twig file or section in admin panel but didnt find nothing. I want to change layout in this iframe. OpenCart version 3 on the twig. Thiss button for call iframe:
2
votes
1 answer

Unable to trigger event(post.customer.login and post.customer.logout) in Opencart 3.0.2.0

I want to set the session after user login in opencart-3.0.2.0 I am new to opencart, I have just created this two files only in the corresponding folder.anything else I need to be done to trigger the event. I am referring this link to trigger the…
2
votes
2 answers

Opencart 2: Events not triggered

I'm using opencart version 2.1.0.1 and trying to use the new script notification system. Please note that I have simply installed the original version. Nothing extra added or modified. Following the tutorial found here:…
ion
  • 994
  • 2
  • 15
  • 44
1
vote
1 answer

Opencart Event system OC 3.0.2.0, override core controller and twig file?

Is it possible to use only the OC Event system for these overrides? I need to override the core index function of the product controller. I want to edit the core file and add this line: $data['quantity'] = $product_info['quantity']; to the…
Bob
  • 21
  • 3
1
vote
1 answer

Opencart 3.0 - how to add in-line javascript code from catalog controller with event system?

How to add inline js code from controller ? admin module controller $this->model_setting_event ->addEvent("one_two_three","catalog/view/common/header/before","extension/module/oone_two_three/inject_abc_javascript"); and in catalog module…
0
votes
0 answers

Are Opencart events asynchronous? If not, Is there any way to implement asynchronous methods in Opencart?

I am using opencart 3. I want event actions to run parallel and should not block the trigger.
0
votes
0 answers

Image's url does not appear in Opencart, model_catalog_product-> getProductImages

On the catalog page where all products are displayed, I added the following code to catalog.php to bring all images of the products. Then I created a for loop on the catalog page. The for loop works and repeats itself visually. However, the url of…
0
votes
1 answer

How to show total reward points on checkout page in Opencart 3.0

I using Opencart 3.0, I just want to show the total sum of reward points (I have renamed as BV Points) of the complete order on the checkout page as shown in the attached image. I don't want to purchase any paid plugin for it. Only I just want to…
0
votes
2 answers

handling Opencart-3 Events: AddCustomer EditCustomer

I am trying to handle events in Opencart-3 to move data to a local ERP system. I created an extension that contains all the events that I need to handle, My problem is that, only the events related to products are being triggered, but the others are…
Mhand7
  • 467
  • 3
  • 19
0
votes
0 answers

Opencart 3 Grid System Undestand category grid-view

I want to change product-grid-view system programmatically or by action... From
to
sundsx
  • 558
  • 8
  • 25
0
votes
2 answers

email issue in opencart

An order confirmation email is sent for canceled/failed payments User reach to the payment gateway, when reached to the cart after selecting final and reach to the payment page and user cancel the order but a successful email sent to the user did…
0
votes
1 answer

Opencart :: is it possible to create event like change header without VQMOD or OCMOD?

I want to add one script inside the head, however using event I could not find way how it works. I had install one event which added one script but it displays before HTML tag. But i want to display inside head tag. extention/module/shop.php class…
Nishant Bhatt
  • 199
  • 2
  • 7
0
votes
2 answers

Add submenu in OpenCart by events in admin area

I want to add a sub menu in OpenCart, under catalog menu in admin area. in past we used ocmod or vqmod for do this, an example by ocmod is here: submenu5
0
votes
2 answers

How to handle event in Opencart?

I cant understand Opencart event system. For example, I want to push order to external CRM, which have own API. I wrote in file /admin/controller/extension/module/mykmykpet_bitrix24.php next code: class ControllerExtensionModuleMykmykpetBitrix24…
1
2