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

summit’s picture

Hi,
see here where I am coming from:http://drupal.org/node/1902286#comment-7003100
no solution yet.
greetings, Martijn

delta’s picture

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

summit’s picture

Hi,
I try to enable the entity again to see if there is a difference:

COMMERCE PRODUCT (COMMERCE_PRODUCT)
 un-check for disabling domain access on Commerce Product (commerce_product)
Choose wich behavior Domain entity must use with bundle Mob_product ('mob')

Choose wich behavior Domain entity must use with bundle Mob_auto_product ('mob_auto_product')

Choose wich behavior Domain entity must use with bundle Pfc_product ('pfc_product')

Choose wich behavior Domain entity must use with bundle Product ('product')

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

summit’s picture

Hi,
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

delta’s picture

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

delta’s picture

Title: Domain Access and Commerce not working? » Memory issue when activate domain access on an entity type.
Status: Active » Needs work
delta’s picture

Assigned: Unassigned » delta
summit’s picture

Hi,
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

delta’s picture

i 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

summit’s picture

Trying to get domain access from git I got:

git clone --branch 7.x-1.x delta@git.drupal.org:sandbox/delta/1674202.git domain_access_entity
Cloning into domain_access_entity...
The authenticity of host 'git.drupal.org (140.211.10.6)' can't be established.
RSA key fingerprint is xxxx
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'git.drupal.org,140.211.10.6' (RSA) to the list of known hosts.
delta@git.drupal.org's password: 

Off course I do not know the password. What is wrong please?
Greetings, Martijn

joestewart’s picture

@Summit, try the commands given on the Version control tab - http://drupal.org/node/1674202/git-instructions/7.x-1.x

delta’s picture

Status: Needs work » Needs review

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

delta’s picture

Status: Needs review » Postponed
delta’s picture

Status: Postponed » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • delta committed a186c71 on 7.x-1.x, 7.x-1.4
    Issue #1964158, add a batch operation to update the existing entities of...