Jump to content

Kershoc

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • First Name
    Symeon
  • Last Name
    Quimby

Kershoc's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hello, I am looking for a way to associate an existing product to a shop. I am developing a module that groups products into catalogs and then allows you to assign these catalogs to shops. When you assign a catalog to a shop it will get the list of products belonging to that catalog and then associate those products to the shop if that shop doesn't have an entry for the product already. I am having some issues with the actual associations. At first I thought I might be able to use the associateTo() method to accomplish this. Example: $product = new Product($id_product); $product->associateTo($shop->id); This sets up an entry in the product_shop table for the association, however that's all it does just a simple association. None of the other product data is duplicated. I've been pouring through the source but I have yet to be able to find any methods in either the product or the shop classes that would facilitate associating an existing product to a shop. I'm hoping that someone has run into this and could point me in the proper direction. With all the multishop work one would think that there would be a builtin method somewhere to easily associate a product to a new shop. Thanks!
  2. Create a tab for the controller. Set the id_parent for the tab to -1. This will get your controller registered in the DB so it can be found. However it doesn't show the controller in the menu tabs. This is what I use for my admin controllers that I do not need to have a menu tab. Hopefully this is what you are looking for.
×
×
  • Create New...