Hi,
Using this module my commerce product-entities of custom product-entities are not shown in the commerce product-list.
The standard product-entities are shown.
Has anyone else experienced this behaviour please?
Is there a documentation page on which a correct working commerce/domain access solution for multiple shops on different domains is made.
thanks a lot in advance for your reply!
Greetings, Martijn
Comments
Comment #1
summit commentedHi,
see here where I am coming from:http://drupal.org/node/1902286#comment-7003100
no solution yet.
greetings, Martijn
Comment #2
delta commentedIf you enable the module Domain access entity, you have to assign manually (or by a script, or with VBO) the entities to the domain where is accessible. Another things if you want a user to see entities from another domain than the current active domain, you have to assign the good permission, and enable the domain(s) in the user account.
Can you tell me if that is sufficient to fix your problem
Another things, on some views i have to disable the SQL rewriting in the advanced query settings pane.
Comment #3
summit commentedHi,
I try to enable the entity again to see if there is a difference:
I try to save my system with checking COMMERCE PRODUCT (COMMERCE_PRODUCT)
I continuously get: 500 Internal Server Error
I am on a hosted solution and can't set the memory higher or time longer.
Is there may be a batch-way solution for this?
greetings, Martijn
Comment #4
summit commentedHi,
I am not able to get commerce product to get enabled and I do not see on commerce product the possibility to add a domain...
greetings, Martijn
Comment #5
delta commentedOk right, i see.
When you activate domain access on an entity. The script try to update each existing entities of this type, and assign to it a default value.
Unfortunately, i didn't have time to write it as a batch. I mark this issue as he Needs work and i change the title.
For the moment as a workaround, you can comment the line 599 to 615, and line 623 to 627 in domain_entity.module.
That means you have to update manually each entities after you enabled domain for an entity.
Comment #6
delta commentedComment #7
delta commentedComment #8
summit commentedHi,
Ehh the code in the latest git from domain_entity.module goes only until 575... Latest function function domain_entity_entity_info_alter(&$entity_info) {
Can you tell exactly what code should be commented, or better add a winzip with the commented lines please?
Thanks a lot in advance!
greetings, Martijn
Comment #9
delta commentedi think you checkout the master branch, try to checkout the 7.x branch
git clone --branch 7.x-1.x delta@git.drupal.org:sandbox/delta/1674202.git domain_access_entity
cd domain_access_entity
Comment #10
summit commentedTrying to get domain access from git I got:
Off course I do not know the password. What is wrong please?
Greetings, Martijn
Comment #11
joestewart commented@Summit, try the commands given on the Version control tab - http://drupal.org/node/1674202/git-instructions/7.x-1.x
Comment #12
delta commentedHi,
Yes sorry, once you logged in drupal.org, it's better to see the tab version control of a project for git instructions.
i have pushed the change to the 7.x branch, now when you activate domain access on a new entity type, the existing entities will be updated via a batch process to avoid memory limit issue.
Thanks for your review, tell if it's working for you.
Comment #13
delta commentedComment #14
delta commented