Jump to content
thirty bees forum

Question

Posted

maybe more an enhancement, but could be considered a bug too:

When you enable B2B mode in one specific shop (multistore mode), some controllers seem to pull the wrong info from the table "configuration" or it doesn't work as expected.

Let me explain:

When you enable B2B for store 1 and disable B2B for store 2, then for example in admin->customers, there is no extra column for "company" when in store 1.

If I look at AdminCustomersController.php, I can see around line 114:

        if (Configuration::get('PS_B2B_ENABLE')) {
            $this->fields_list = array_merge(
                $this->fields_list,
                [
                    'company' => [
                        'title' => $this->l('Company'),
                    ],
                ]
            );
        }

This would mean that if the B2B mode for this shop is enabled, it should show the extra column.

If I change both stores to B2B then we can see the extra column. But really the configuration pulled from that table should apply only to the selected store. I have checked that DB table and can see both values for both stores, not sure why it's not working.

 

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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