Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

[contribution] Total B2B


397 replies to this topic

#381 raggarsvin

  • Community Member
  • 12 posts
  • Real Name:jerry

Posted 13 March 2009, 15:14

im having trouble getting this thing to work, i have a wery modified osc so i went throu the diff files and made all the changes i could find.

What works:
No error messages anywhere, and in adminpanel everything seems to work.
New products seems to show right discount and wiewing a product seems to show right discount price

What dosnt work:
Produsctslisting in categories dosnt show me right discount
neither does shopping cart or checkout process

I do have STS v 2.1.0 module too, i read in this thread that might be it but i have no idea how to fix it, any ideas anyone ?

Edited by raggarsvin, 13 March 2009, 15:16.


#382 raggarsvin

  • Community Member
  • 12 posts
  • Real Name:jerry

Posted 16 March 2009, 11:36

hmm, about above post, seems i have latest sts. But i still ned help getting b2b and sts to work together

#383 Alforno

  • Community Member
  • 2 posts
  • Real Name:Peter

Posted 01 April 2009, 20:25

Hi,

i am using totalb2b. This contribution is great, but i am missing one feature.
After activating an account it should be useful to inform the customer about this progress via mail automatically.

I was searching this topic and read that someone suggested this feature already.
But it does not seem to be implemented yet.

Anyone an idea? How to fix this?

Thanks.

Bye
Alforno

#384 oldschoo

  • Community Member
  • 163 posts
  • Real Name:beth marquardt

Posted 04 May 2009, 01:49

After installing this contribution:

1) If I set it up in admin to allow guest to view prices without being logged in to (true) I get the following error in the what's new box:

Fatal error: Call to undefined method currencies::calculate_price() in /catalog/includes/classes/currencies.php on line 82 and everything except the category box is gone

2) If I set it up to allow guest to be false - everything on index shows up, and it says you must be logged in to see prices. But, when I log in, I get the following error:

Fatal error: Call to undefined method currencies::calculate_price() in /catalog/includes/classes/currencies.php on line 90. amd everything except the category box in gone

#385 oldschoo

  • Community Member
  • 163 posts
  • Real Name:beth marquardt

Posted 04 May 2009, 01:56

This is the part of the code for the above error in currencies.php

		//TotalB2B start
	function display_price($products_id, $products_price, $products_tax, $quantity = 1) {
	  $query_price_to_guest = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'");
	  $query_price_to_guest_result = tep_db_fetch_array($query_price_to_guest);	  
	  if (($query_price_to_guest_result['configuration_value']=='true') && !(tep_session_is_registered('customer_id'))) {
		$customer_discount = tep_get_discount_b2b($products_id);
		if ($customer_discount >= 0) {
		  $products_price = $products_price + $products_price * abs($customer_discount) / 100;
		} else {
		  $products_price = $products_price - $products_price * abs($customer_discount) / 100;
		}
// line 82
		return $this->format($this->calculate_price($products_price, $products_tax, $quantity));
	  } elseif (tep_session_is_registered('customer_id')) {
		$customer_discount = tep_get_discount_b2b($products_id);
		if ($customer_discount >= 0) {
		  $products_price = $products_price + $products_price * abs($customer_discount) / 100;
		} else {
		  $products_price = $products_price - $products_price * abs($customer_discount) / 100;
		}
// line 90
	  return $this->format($this->calculate_price($products_price, $products_tax, $quantity));
	  } else {
		return PRICES_LOGGED_IN_TEXT;
	  }
	}

	function display_price_nodiscount($products_price, $products_tax, $quantity = 1) {
	  global $customer_id;
	  $query_price_to_guest = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'");
	  $query_price_to_guest_result = tep_db_fetch_array($query_price_to_guest); 
	  if ((($query_price_to_guest_result['configuration_value']=='true') && !(tep_session_is_registered('customer_id'))) || ((tep_session_is_registered('customer_id')))) {
		return $this->format($this->calculate_price($products_price, $products_tax, $quantity));
		} else {
			return PRICES_LOGGED_IN_TEXT;
		}
	}
	//TotalB2B end


#386 oldschoo

  • Community Member
  • 163 posts
  • Real Name:beth marquardt

Posted 06 May 2009, 04:58

Does any one support this contribution any more? Or was it updated to another name?

#387 JDComp

  • Community Member
  • 1 posts
  • Real Name:Caribbean Jim

Posted 14 May 2009, 17:58

I've been using your contrib for some time now (no ploblems). Would like to know if there is any simple way to make it so it has two features found in some other B2B's. When the price is displayed to also display a MAP and list price for buyers/dealers?

#388 goring_gap

  • Community Member
  • 112 posts
  • Real Name:Simon
  • Location:UK

Posted 25 March 2010, 11:48

A specials price error in classes/shopping_cart.php:

//TotalB2B start
          $products_price = tep_xppp_getproductprice($prid);
          $customer_discount = tep_get_discount_b2b($prid);
          if ($customer_discount >= 0) {
            $products_price = $products_price + $products_price * abs($customer_discount) / 100;
          } else {
            $products_price = $products_price - $products_price * abs($customer_discount) / 100;
          }
          if ($special_price = tep_get_products_special_price($prid)) $products_price = $special_price;
          //TotalB2B end

to:

//TotalB2B start
          $products_price = tep_xppp_getproductprice($prid);
          $customer_discount = tep_get_discount_b2b($prid);
          
		  if ($special_price = tep_get_products_special_price($prid)) $products_price = $special_price;
		  if ($customer_discount >= 0) {
            $products_price = $products_price + $products_price * abs($customer_discount) / 100;
          } else {
            $products_price = $products_price - $products_price * abs($customer_discount) / 100;
          }
          
          //TotalB2B end

The specials price should come before the dicount or discounts are not applied to specials prices when the products are added to cart.

#389 Steve9R

  • Community Member
  • 11 posts
  • Real Name:Steve

Posted 22 November 2010, 09:17

any chance of this being ported to support 2.3.1 ??

#390 StarLord

  • Community Member
  • 1 posts
  • Real Name:Christopher Calhoun

Posted 09 April 2011, 01:38

Greetings hozone/Davide, and all,

I have two questions, if you are still watching and maintaining this contribution?

#1 - On the osCommerceITalia contribution website I was reading that your contribution may have been ported to version 2.3.1 with some successes per a recent post by "06voip" so, now wondering if you may have any new information or updates for us here?

-- I am very excited to use these features you have so graciously given us, but, a bit cautious to install it for fear of breaking something in the installation.

#2 - Do you know of any incompatibilties with other contributions, or more specific, what changes may need to be done to work in 2.3.1?

-- I have a fairly straight-forward secured install of osC 2.3.1 which has only other 2 contributions, the "Extra Product Fields" and one of the basic "% discount per customer" modules (which only displays at the end of checkout) I have installed 2.3.1 and the recommended security features after getting hacked last year by a nasty 2.2 php redirect exploit.. so don't want to go back to 2.2 for that reason alone.

Thanks in advance for any reply, and best wishes :)

#391 Johnatan

  • Community Member
  • 35 posts
  • Real Name:Johnatan
  • Location:Croatia

Posted 03 January 2012, 21:19

Hi to all,

I have installed TotalB2B and featured products.
Please if someone know how to bypass customer discount on featured products like as on specials.

Let me explain....

I choose some product to be my fetaured products, and I give for some customer for example 10% on manufacturer A. Two of my featured products are from manufacturer A, and I don't want to discount these two products.

Please I need advice or resolution ASAP.

thnx

#392 cryptonrxez

  • Community Member
  • 2 posts
  • Real Name:Karagiannis Nikos

Posted 28 January 2012, 10:34

Hi I have installed oscommerce 2.3.1 and i tried many times to install Total B2B v1.4a and when I go to the new attributes like Customers Groups or Categories Discount I receive a blank page with a message
Not Found

The requested URL /mysite/admin/FILENAME_CATEDISCOUNT was not found on this server.
or
The requested URL /oscommerce23/admin/FILENAME_GROUPS was not found on this server.

Please help me
thnx

#393 Jan Zonjee

  • Team Member
  • 7,001 posts
  • Real Name:Jan Zonjee
  • Gender:Male
  • Location:the Netherlands

Posted 28 January 2012, 10:43

The ALL CAPITALS filenames point to missing constants. Probably, you missed adding these constants to the file admin/includes/filenames.php.

Something like:
define('FILENAME_GROUPS', 'groups.php');


#394 cryptonrxez

  • Community Member
  • 2 posts
  • Real Name:Karagiannis Nikos

Posted 30 January 2012, 18:51

Thank you very much
all it is ok I add
define('FILENAME_SPECIALS', 'specials.php');
define('FILENAME_CATEDISCOUNT', 'catediscount.php');
define('FILENAME_CATEMANUDISCOUNT', 'catemanudiscount.php');
define('FILENAME_MANUDISCOUNT', 'manudiscount.php');
define('FILENAME_GROUPS', 'customers_groups.php');

and it works
The only problem is, that when I go to catalog/specials then I receive a completely blank page.
thnx again

#395 AlexandrZuyev

  • Community Member
  • 13 posts

Posted 21 March 2012, 18:31

Hallo.
Is there a possibility to use a Discount Code 2.6 for osCommerce Online Merchant v2.3.1 together with B2B?
I mean there is a code in checkout_payment.php
<?php
  // Discount Code 3.1.1 - start
  if (MODULE_ORDER_TOTAL_DISCOUNT_STATUS == 'true') {
?>
  <h2><?php echo TEXT_DISCOUNT_CODE; ?></h2>
  <div class="contentText">
    <table border="0" cellspacing="0" cellpadding="0">
	  <tr>
	    <td valign="middle" height="25"><?php echo tep_draw_input_field('discount_code', $sess_discount_code, 'id="discount_code" size="10"'); ?></td>
	    <td width="5"></td>
	    <td valign="middle"><div id="discount_code_status"></div></td>
	  </tr>
    </table>
  </div>
<?php
  }
  // Discount Code 3.1.1 - end
?>

How can I set to show this code only for those customers who do not belong to any discount group?

For ex.: if ((customers_discount !='true') && (customers_groups_id !='true') && (MODULE_ORDER_TOTAL_DISCOUNT_STATUS == 'true')) {

#396 AlexandrZuyev

  • Community Member
  • 13 posts

Posted 21 March 2012, 18:45

Done! The code is simple:
	  $customer_discount = tep_get_discount_b2b($prid);
	  if (($customer_discount >= 0) && (MODULE_ORDER_TOTAL_DISCOUNT_STATUS == 'true')) {


#397 medianet24

  • Community Member
  • 2 posts
  • Real Name:Paul

Posted 27 March 2012, 11:52

Hi I'm testing Total B2B release "TotalB2B_2.3" for os comemrce 2.3.1.

The basic installations works fine.!

But I looking for this error, when I using the admin control panel
for special products "specials.php"

it works too but

But The problem is, that when I go to catalog/specials I receive a completely blank page. (too)

Do you have any possible suggestion for to correct this possible error?

I do believe that maybe depend from some wrong query inside "specials.php" or some else. But I'm not sure :(


Total B2B is a very usefull addons tks

Tks to anybody :)

medianet24

Edited by medianet24, 27 March 2012, 12:05.


#398 medianet24

  • Community Member
  • 2 posts
  • Real Name:Paul

Posted 27 March 2012, 12:03

Thanks to anybody for this forum ^_^

Edited by medianet24, 27 March 2012, 12:05.