Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Differents products by customer groups


goutbouyo

Recommended Posts

Hello,

 

I have installed the contribution B2B whose allow to set differents prices by customers groups.

 

But I would like that all my products are not visible by all the customers.

 

For example:

 

the professional group can see the product "xxx" but the default can't do it.

Link to comment
Share on other sites

Ok but I have this error in the admin part :

1054 - Champ 'customers_group_id' inconnu dans field list

select distinct customers_group_id, customers_group_name from customers_groups where customers_group_id != '0' order by customers_group_id

Link to comment
Share on other sites

The sql from installing this contribution says in part:

DROP TABLE IF EXISTS customers_groups;
CREATE TABLE `customers_groups` (
 `customers_group_id` int(11) NOT NULL auto_increment,
 `customers_group_name` varchar(32) NOT NULL default '',
 `customers_group_discount` decimal(11,2) NOT NULL default '0.00',
 `color_bar` varchar(8) NOT NULL default '#FFFFFF',
 `group_payment_unallowed` varchar(255) NOT NULL default 'cc',
 `group_tax` varchar(5) NOT NULL default 'false',
 PRIMARY KEY  (`customers_group_id`)
) TYPE=MyISAM;

The error says that there is no customers_group_id in the table customers_groups and since that is not possible if you ran the install I can only conclude that the contribution is installed incorrectly (or you changed the name of that column into something else....)

Link to comment
Share on other sites

I have another problem in the admin part when I edit the product :

 

Warning: Invalid argument supplied for foreach() in c:\web\easyphp1-8\www\catalog\admin\categories.php on line 558

 

It's near "Select groups to hide"

 

My code :

 foreach($hide as $h){
 if($h == $customers_groups['customers_groups_id']){
  $check_hidden = true;
   break;
 }else{
   $check_hidden = false;
 }
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...