peorthyr Posted June 20, 2012 Share Posted June 20, 2012 Hi all, i would like to make a page "outside" prestashop, wich will import products (and probably export the invoices, but this is next) i need a page oustide prestashop becouse i need to get this page executed by CRON, this is mandatory. well, the idea i've got is this, first, a page with this code on the beginning: <?php define('_PS_ADMIN_DIR_', getcwd()); require(dirname(__FILE__).'/../config/config.inc.php'); include(PS_ADMIN_DIR.'/functions.php'); //is this necessary? wich would probably import all classes in my new page. then i would like to "fire" the function that import the csv (wich i will have in the import directory, with ALL the columns required by prestashop, also if they are empty) is this going to work? any advice on that? i've done something similar on joomla, with pages that use the functions present there but outside the joomla instance... is that possible also here? and avcice will be gratefull. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now