Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

total b2b selling some products


zeberrun

Recommended Posts

hello,

 

i set up total b2b, 2.3.1 w/out problem. i have more than 10000 items in my site, i want to start wholesale. but 10000 items are very much to organize. first of all i will sell only one categories products. i add a line to products table as wholesale. default will be 0 and i will change wholesale products by hand.

 

when a wholesale buyer log in to site, he will only see the wholesale products which marked wholesale=1. he will see 900 products in the site. search only 900 products, can buy only 900 products.

 

i start to test and curious about your opinions. is possible ?????????????

 

also i have a problem with the test code in products_new.php

 

" if ($customers_groups_id == 2) { "

this does not work, do i select this customers_groups_id from table ?????????????????

 

if ($customers_groups_id == 2) {

$products_new_array = array();

$products_new_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_last_modified, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and wholesale= '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_last_modified DESC, pd.products_name";

} else {

$products_new_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_last_modified, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_last_modified DESC, pd.products_name";

 

regards

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...