Jump to content

ObjectModel Change Shop


krisives

Recommended Posts

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

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