Jump to content

Where is Currency class


ealio

Recommended Posts

Where is Currency class, i can only find CurrencyCore.

But i find the code below in Context class:

       if (is_object($cookie))
        {
            $this->currency = new Currency((int)$cookie->id_currency);
            $this->language = new Language((int)$cookie->id_lang);
            $this->country = new Country((int)$cookie->id_country);
            $this->customer = new CustomerBackwardModule((int)$cookie->id_customer);
            $this->employee = new Employee((int)$cookie->id_employee);
        }

 

Link to comment
Share on other sites

yes, you've got right, but this is currency class :)

 

Yeah, i know it should be the subclass of CurrencyCore, but i just confused why i can't find its definition. I guess there gotta be something related with class_index.php.

I got some contents in the class_index.php like this below.

  'Currency' => '',

  'CurrencyCore' => 'classes/Currency.php',

Link to comment
Share on other sites

  • 1 year later...

i renamed my Currency.php class and uploaded a new one. i got an error. so i reverted back to Currency.php. all same name, same permssions. im getting Fatal error: Class 'Currency' not found in /var/www/web/shop/classes/Tools.php on line 460 . v frustrating can anyone help please?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...