krisives Posted May 21, 2014 Share Posted May 21, 2014 I am working on a module that lets me import/export things from Prestashop, in particular the Store Contacts which populates the store locator map. I have added a column in the CSV import to support selecting the store it should be associated with, however I cannot change the associated shop of a "Store" object (or any other ObjectModel objects) All the ways for me to do it are protected level access: * The id_shop field in ObjectModel * The updateShopAssoc() in AdminController Is the only way to do this to actually use Shop::setContext() over and over again within my per-row import function ? Cheers, Kris Link to comment Share on other sites More sharing options...
krisives Posted May 22, 2014 Author Share Posted May 22, 2014 Anyone know a good way to do this ? Link to comment Share on other sites More sharing options...
krisives Posted May 27, 2014 Author Share Posted May 27, 2014 Welp, I'll keep trying, but it would be great if anyone could help 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