Jump to content

Edit History

soduno

soduno

Hello.

I have created a override at the following location:
override/controllers/front/OrderController.php

Containing following:

<?php
class OrderController extends OrderControllerCore
{
    public function initContent()
    {
        return 'testing from ordercontrolleroverride';
    }
}

When I go to order page (where the OrderControllerCore is being loaded) nothing is being printed out.
I have followed the documentation, as far as I can see this is how they explain it should be done.

Am I missing something? Have clear cache in the Back-office and manually with bash: "rm -rf var/cache"

Can see there's lots of discussion related to these overrides, but in the official documentation it's written
like it can be used. Using PS 1.7.8

Running out of ideas 😐

 

 

soduno

soduno

Hello.

I have created a override at the following location:
override/controllers/front/OrderController.php

Containing following:

<?php
class OrderControllerOverride extends OrderControllerCore
{
    public function initContent() 
    {
        return 'this is a test to see if something is getting printed out';
    }
}

When I go to order page (where the OrderControllerCore is being loaded) nothing is being printed out.
I have followed the documentation, as far as I can see this is how they explain it should be done.

Am I missing something? Have clear cache in the Back-office and manually with bash: "rm -rf var/cache"

Can see there's lots of discussion related to these overrides, but in the official documentation it's written
like it can be used. Using PS 1.7.8

Running out of ideas 😐

 

 

soduno

soduno

Hello.

I have created a override at the following location:
override/controllers/front/OrderController.php

Containing following:

<?php
class OrderControllerOverride extends OrderControllerCore
{
    public function initContent() 
    {
        return 'this is a test to see if something is getting printed out';
    }
}

When I go to order page (where the OrderControllerCore is being loaded) nothing is being printed out.
I have followed the documentation, as far as I can see this is how they explain it should be done.

Am I missing something? Have clear cache in the Back-office and manually with bash: "rm -rf var/cache"

Can see there's lots of discussion related to these overrides, but in the official documentation it's written
like it can be used.

Running out of ideas 😐

 

 

soduno

soduno

Hello.

I'm fairly new to Prestashop core/module development, has spent lots of time reading the documentation - 
Feeling quite comfortable developing in Prestashop.

I have created a override at the following location:
override/controllers/front/OrderController.php

Containing following:

<?php
class OrderControllerOverride extends OrderControllerCore
{
    public function initContent() 
    {
        return 'this is a test to see if something is getting printed out';
    }
}

When I go to order page (where the OrderControllerCore is being loaded) nothing is being printed out.
I have followed the documentation, as far as I can see this is how they explain it should be done.

Am I missing something? Have clear cache in the Back-office and manually with bash: "rm -rf var/cache"

Can see there's lots of discussion related to these overrides, but in the official documentation it's written
like it can be used.

Running out of ideas 😐

 

 

×
×
  • Create New...