Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

B2B problem


crash3903

Recommended Posts

I am having problems finding the error here

 

global $customer_id;

                                                                                                                                            $customer_group_id_query = tep_db_query("select customers_group_id from " . TABLE_CUSTOMERS . " where customers_id = '". $customer_id . "'");

                                                                                                                                            $customer_group_id = tep_db_fetch_array($customer_group_id_query);

                                                                                                                                    if ($customer_group_id['customers_group_id'] != '0'){ 

                                                                                                                                    $orders_customers_price = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where customers_group_id = '". $customer_group_id['customers_group_id'] . "' and products_id = '" . $products[$i]['id'] . "'");     

                                                                                                                                    if ($orders_customers = tep_db_fetch_array($orders_customers_price)){

                                                                                                                              $this->products[$index] = array('price' => $orders_customers['customers_group_price'],

                                                'final_price' => $orders_customers['customers_group_price']);                                                                                                                                                                                                                                                                 

//**************************************FINE MODIFICA B2BSuite                                                                                                                                     

          Line 125 >>> 'id' => $orders_products['products_id'],

          'return' => $orders_products['products_returned'],

          'exchange' => $orders_products['products_exchanged'],

          'exchange_id' => $orders_products['products_exchanged_id'],);

 

        $subindex = 0;

 

any ideas appreciated

 

thanks

 

mark

Regards

 

Mark A Reynolds

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