Jump to content

[solved] how to use own function


Recommended Posts

(Sorry for my english, not very well)

 

Good day!

 

On the local machine i install Prestashop, write own function in /classes/order/order.php and call this function from /pdf/invoice.tpl ( {$order->MyFunc()} ) it's works on my local computer, but on the hosting site all works without MyFunc, maybe anyone please here can decide this problem?

Link to comment
Share on other sites

Hi,

 

First of all, your language isn't in the predefined forums? I'm curious, where are you from?!?

 

Second : Usually we create an override (override/order/order.php), this pratice will make the application more stable.

In case you did this : Make sure the class_index.php is okay.

 

Third, can you post the order function you're doing?

 

Martin

P.S: Seen worst english on the web, don't worry!

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...