Forums › Forums › OroCommerce › 1 account multipel customers not possible
This topic contains 17 replies, has 7 voices, and was last updated by ishirko 6 years, 6 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- July 15, 2017 at 10:11 am #31891
i can connect/associate multiple business customers to 1 account
but I cannot connect/associate multiple customer to 1 account - CreatorTopic
- AuthorReplies
- July 15, 2017 at 8:25 pm #31892
Open the customer you want to re-assign, click on Edit, select a different account in the Account field, click Save.
What version of OroCommerce do you use? I’ve just checked it on http://demo.orocommerce.com/admin and it works as described.
July 16, 2017 at 5:09 am #31893Dear Michael,
I use:git clone –recursive -b 1.2.0 https://github.com/orocommerce/orocommerce-application.git
Now I testes I first created “Account A” after I created “Customer AB” and “Customeer AC” both i assigned to “Account A”
But when I open “Acccount A” I do not see any of the Customers
I tested also in the ” http://demo.orocommerce.com/admin” and there it works
I have version 1.2 this should be the latest,not?July 19, 2017 at 4:16 am #31894Hello,
I’ve just checked it locally on newest (1.2.2) version and it seems to be working.
Please go to Customer Management grid and have a look what Accounts are assigned to newly created Customers. What are these values?Best Regards,
Daniel NahrebeckiJuly 19, 2017 at 4:37 am #31895I checked, I see that Customer AB and AC are connected to Account A
July 24, 2017 at 5:57 am #31896Hi, ismet.sener.
So, this topic can be resolved or you are still have an issue?July 24, 2017 at 7:38 am #31897Dear Msulima,
Stil not solved, very strange, in you demo-website it works (demo.orocommerce) but in my system (1.2.2) it doesnot work.
I will wait for 1.3.0 and try then, maybe it is solved wit the nexxt release
with kind regards,
IsmetJuly 24, 2017 at 8:19 am #31898Any lines in prod.log? Maybe some issues related on your local environment.
July 24, 2017 at 8:52 am #31899Thanks Msulima,
When I have time, I wil check.When can we expect orocommerce 1.3?
how can sent printscreen to this forum.July 24, 2017 at 8:56 am #31900Thank you.
> When can we expect orocommerce 1.3?
Soon :)> how can sent printscreen to this forum
You should use any external image storage and put link with tag < img >.August 1, 2017 at 6:30 am #31901Still not solved, I installed 1.3
I have created Account 1
and created3 customers all connected to Account 1 (Customer 1, 1a and 1c)non of them are connected to Account 1, while I when created the customers connected them all to Account 1
https://ibb.co/jTYWek
https://ibb.co/fUaNkQi attached print-screens
August 2, 2017 at 3:38 am #31902Hello,
I was able to reproduce problem that you are talking about and reported it to our development team.
I’ll let you know as soon as it will be fixed.August 2, 2017 at 4:09 am #31903Dear Mlukaszewicz,
When I create first the account and later the customer, it will not work
I looked in the database field: the field ‘dataChannel_id’ was emty, when I fill this with ‘1’ (=Commerce channel)
then it works. So the problem is when yiu create a new customer which you link to a existing account, it will not update the ‘dataChannel_id’ field (empty)But when you create a new customer, with automatic creation of a account, then the field ‘dataChannel_id’ will be udated
August 2, 2017 at 4:51 am #31904also when you import customers (with name of customer, and account id etc) it will not update the ‘dataChannel_id’ field
so it will not connect that customer to that account
but when you look in customer list you can see the accounts to which the customer is linkedyou have manually update that field on database level (mysqlworkbench )
August 2, 2017 at 4:55 am #31905Hi ismet.sener,
Yes I’ve checked and I can confirm it works as you have described.
I’ll let you know as soon as we will have solution for this.October 6, 2017 at 10:02 am #31906I stumbled upon the same issue.
Here is my quick fix by overriding Customer controller.
Not the most elegant way, but works well.PHP123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475<?phpnamespace Custom\Bundle\CustomerBundle\Controller;use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;use Symfony\Component\HttpFoundation\RedirectResponse;use Oro\Bundle\SecurityBundle\Annotation\Acl;use Oro\Bundle\SecurityBundle\Annotation\AclAncestor;use Oro\Bundle\CustomerBundle\Entity\Customer;use Oro\Bundle\CustomerBundle\Form\Type\CustomerType;use Oro\Bundle\CustomerBundle\Controller\CustomerController as Controller;/*** Route("/customer")*/class CustomerController extends Controller{/*** @Route("/create", name="oro_customer_customer_create")* @Template("OroCustomerBundle:Customer:update.html.twig")* @Acl(* id="oro_customer_create",* type="entity",* class="OroCustomerBundle:Customer",* permission="CREATE"* )** @return array*/public function createAction(){return $this->update(new Customer());}/*** @Route("/update/{id}", name="oro_customer_customer_update", requirements={"id"="\d+"})* @Template* @Acl(* id="oro_customer_customer_update",* type="entity",* class="OroCustomerBundle:Customer",* permission="EDIT"* )** @param Customer $customer* @return array*/public function updateAction(Customer $customer){return $this->update($customer);}/*** @param Customer $customer* @return array|RedirectResponse*/protected function update(Customer $customer){if ($customer->getDataChannel() == null){$em = $this->getDoctrine()->getEntityManager();$channel = $em->getRepository('OroChannelBundle:Channel')->findOneBy(['customerIdentity' => Customer::class]);if ($channel){$customer->setDataChannel($channel);}}return parent::update($customer);}} - AuthorReplies
The forum ‘OroCommerce’ is closed to new topics and replies.