Jump to content

[SOLVED] Accessing Db::getInstance() from new file?


Danimt

Recommended Posts

Hey community,

 

I have a separate php file on the template root folder that I'm using to process additional ajax functionality on the store.

 

My goal is to get write access to a specific product column created for this functionality.

 

How can I achieve this? What files to I need to include on my php file?

 

Thank you for your time.

Edited by Danimt (see edit history)
Link to comment
Share on other sites

Hey community,

 

I have a separate php file on the template root folder that I'm using to process additional ajax functionality on the store.

 

My goal is to get write access to a specific product column created for this functionality.

 

How can I achieve this? What files to I need to include on my php file?

 

Thank you for your time.

 

Hi again :)

 

you must paste this code

require_once("../../config/config.inc.php");
require_once(dirname(__FILE__).'/../../init.php');

 

maybe you must change path to the files, because for now i don't remember correct path ;)

  • Like 1
Link to comment
Share on other sites

Hi again :)

 

you must paste this code

require_once("../../config/config.inc.php");
require_once(dirname(__FILE__).'/../../init.php');

 

maybe you must change path to the files, because for now i don't remember correct path ;)

 

Thank you so much, this worked perfectly! =)

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...