Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Seperate Pricing Per Customer v3.5


scendent

Recommended Posts

 

 

 

Hello Jan,

 

i know there are that many. but only some are ported to work with SPPC, all the others work in general cause they dont have to handle prices. but i think for many it is interesting to which VERSIONS do work together. for example it was said that X-sell and SPPC work together...but which versions? the last ones definitivly not. i tried them for more than 12 hours with fixing etc an it didnt work. i think others could spend their time if they knew there would be some compatibility issues.

 

just me 2 cents

 

greetings

Link to comment
Share on other sites

another question:

 

how do you use SPPC in combination with caching? i mean the generall caching system in osc doesnt cache the individual prices, so it can happen that person A sees a cached version with a wrong price, for example the price of person B.

 

how do u handle the problem?

 

i searched the contributions and i think this could be a good solution:

 

http://www.oscommerce.com/community/contributions,5029

 

caching on the client side. your opinion?

Link to comment
Share on other sites

how do you use SPPC in combination with caching? i mean the generall caching system in osc doesnt cache the individual prices, so it can happen that person A sees a cached version with a wrong price, for example the price of person B.

 

how do u handle the problem?

There is no problem with that. The general caching of osC only involves the categories menu, manufacturers box and also_purchased. There is no issue with SPPC.

 

To speed up the store I have a "standard" response:

 

Thread on the topic: A Store Speed Optimization in Progress, Step by step from a vanilla install!

 

Output Queries Debug Contribution to see how many queries a page generates and how long it takes to execute them (find excessive amount of queries or slow ones).

 

Optimize tep_get_tax_rate() method

 

Optimize categories box

 

tep_get_category_tree optimization (only helpful on the admin side)

 

The "Optimize categories box" has its own caching system that also works when an osCsid has to be added to links.

 

Never looked at that particular contribution that caches HTML on the client side so can't say anything about it.

Link to comment
Share on other sites

thanks jan think i manged to sort that bit but got this problem now

 

http://www.leealfred.co.uk/products_new.php

 

<?php
/*
 $Id: products_new.php 1739 2007-12-20 00:52:16Z hpdl $
 adapted for Separate Pricing Per Customer v4.2 2007/06/23

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCTS_NEW);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PRODUCTS_NEW));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
  <td valign="top">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr><td>

<?php   /*  require(DIR_WS_BOXES . 'panel_top.php');  */  ?>	 

<? tep_draw_heading_top();?>		

<? new contentBoxHeading_ProdNew($info_box_contents);?>

<? tep_draw_heading_top_3();?>		



<?php
 $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_date_added, 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_date_added DESC, pd.products_name";
 $products_new_split = new splitPageResults($products_new_query_raw, MAX_DISPLAY_PRODUCTS_NEW);

 if (($products_new_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '2'))) {
?>


		<table border="0" cellspacing="0" cellpadding="0" class="result box_width_cont">
		  <tr>
			<td><?php echo $products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW); ?></td>
			<td class="result_right"><?php echo TEXT_RESULT_PAGE . ' ' . $products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>
		  </tr>
		</table>

<?php echo tep_draw_result_top(); ?>


<?php
 }
?>

<?php
 if ($products_new_split->number_of_rows > 0) {
// BOF Separate Pricing Per Customer
//  global variable (session): $sppc_customers_group_id -> local variable $customer_group_id
 if (isset($_SESSION['sppc_customer_group_id']) && $_SESSION['sppc_customer_group_id'] != '0') {
$customer_group_id = $_SESSION['sppc_customer_group_id'];
 } else {
$customer_group_id = '0';
 }

$products_new_query = tep_db_query($products_new_split->sql_query);









  $row = 0;
 $col = 0;
 $info_box_contents = array();
 while ($products_new = tep_db_fetch_array($products_new_query)) {

$product_query = tep_db_query("select products_description, products_id from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$products_new['products_id'] . "' and language_id = '" . (int)$languages_id . "'");
  $product = tep_db_fetch_array($product_query);
$no_of_products_new = tep_db_num_rows($products_new_query);
while ($_products_new = tep_db_fetch_array($products_new_query)) {
	$products_new[] = $_products_new;
	$list_of_prdct_ids[] = $_products_new['products_id'];
}

 $select_list_of_prdct_ids = "products_id = '" . $list_of_prdct_ids[0] . "' ";
  if ($no_of_products_new > 1) {
 for ($n = 1; $n < count($list_of_prdct_ids); $n++) {
   $select_list_of_prdct_ids .= "or products_id = '" . $list_of_prdct_ids[$n] . "' ";
 }
  }
   	$p_desc = substr($product['products_description'], 0, MAX_DESCR_1);
	$p_id = $product['products_id'];
	$p_pic = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
	$p_name = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . substr( $products_new['products_name'],0,MAX_DESCR_NAME) . '</a>';



  if ($new_price = tep_get_products_special_price($products_new['products_id'])) {
	$products_price = '<s>' . $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($products_new['products_tax_class_id'])) . '</span>';
  } else {
	$products_price = '<span class="productSpecialPrice">'.$currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id']).'</span>');
  }

$p_price = $products_price;

$products_new['products_name'] = tep_get_products_name($products_new['products_id']);
$info_box_contents[$row][$col] = array('align' => 'center',
									   'params' => ' width="50%"',
									   'text' => '
		'.tep_draw_prod_top().'
				<table cellpadding="0" cellspacing="0" border="0" align="center" style=" width:1px;" class="tac">
					<tr><td height="10">'.tep_draw_separator('spacer.gif', '1', '1').'</td></tr>
					<tr><td class="pic1">
						<table cellpadding="0" cellspacing="0" border="0" align="center">
							<tr><td>'.$p_pic.'</td></tr>
						</table>
					</td></tr>
					<tr><td height="6">'.tep_draw_separator('spacer.gif', '1', '1').'</td></tr>
					<tr><td height="30" style=" vertical-align:middle;">'.$p_name.'</td></tr>
					<tr><td height="24">'.$p_desc.'</td></tr>
					<tr><td height="27" style=" vertical-align:middle;">'.$p_price.'</td></tr>
					<tr><td height="41"><a href="' . tep_href_link('product_info.php?products_id='.$p_id) . '">'.tep_image_button("button_details.gif").'</a><br style="line-height:1px;"><br style="line-height:1px;"><a href="'.tep_href_link("products_new.php","action=buy_now&products_id=".$p_id).'">'.tep_image_button('button_add_to_cart1.gif').'</a></td></tr>
				</table>
		'.tep_draw_prod_bottom());
// get all customers_group_prices for products with the particular customer_group_id
// however not necessary for customer_group_id zero
if ($customer_group_id != '0') {
 $pg_query = tep_db_query("select pg.products_id, customers_group_price as price from " . TABLE_PRODUCTS_GROUPS . " pg where (" . $select_list_of_prdct_ids . ") and pg.customers_group_id = '" . $customer_group_id . "'");
while ($pg_array = tep_db_fetch_array($pg_query)) {
  $new_prices[] = array ('products_id' => $pg_array['products_id'], 'products_price' => $pg_array['price'], 'specials_new_products_price' => '');
}

$col ++;
if ($col > 1) {
  $col = 0;
  $row ++;
}
 }
  for ($x = 0; $x < $no_of_products_new; $x++) {
// replace products prices with those from customers_group table
// originally they would be obtained with an extra query for every new product:
//   if ($new_price = tep_get_products_special_price($products_new['products_id'])) {

 if (!empty($new_prices)) {
   for ($i = 0; $i < count($new_prices); $i++) {
	 if ($products_new[$x]['products_id'] == $new_prices[$i]['products_id'] ) {
	   $products_new[$x]['products_price'] = $new_prices[$i]['products_price'];
	 }
   }
   } // end if (!empty($new_prices)
  } // end for ($x = 0; $x < $no_of_products_new; $x++)
} // end if ($customer_group_id != '0')

// an extra query is needed for all the specials

$specials_query = tep_db_query("select s.products_id, specials_new_products_price from " . TABLE_SPECIALS . " s  where (".$select_list_of_prdct_ids.") and status = '1' and s.customers_group_id = '" .$customer_group_id. "'");
while ($specials_array = tep_db_fetch_array($specials_query)) {
  $new_prices[] = array ('products_id' => $specials_array['products_id'], 'products_price' => '', 'specials_new_products_price' => $specials_array['specials_new_products_price']);
}

// replace specials_new_products_price with those those for the customers_group_id
for ($x = 0; $x < $no_of_products_new; $x++) {




 new contentBox($info_box_contents);



  if (!empty($new_prices)) {
	for ($i = 0; $i < count($new_prices); $i++) {
	  if ( $products_new[$x]['products_id'] == $new_prices[$i]['products_id'] ) {
		$products_new[$x]['specials_new_products_price'] = $new_prices[$i]['specials_new_products_price'];
	  }
	}
  } // end if (!empty($new_prices)

if (tep_not_null($products_new[$x]['specials_new_products_price'])) {
		$products_price = '<s>' . $currencies->display_price($products_new[$x]['products_price'], tep_get_tax_rate($products_new[$x]['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($products_new[$x]['specials_new_products_price'], tep_get_tax_rate($products_new[$x]['products_tax_class_id'])) . '</span>';
  } else {
	$products_price = $currencies->display_price($products_new[$x]['products_price'], tep_get_tax_rate($products_new[$x]['products_tax_class_id']));
  }
?>
	  <tr>
		<td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new[$x]['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new[$x]['products_image'], $products_new[$x]['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td>
		<td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new[$x]['products_id']) . '"><b><u>' . $products_new[$x]['products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new[$x]['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new[$x]['manufacturers_name'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td>
		<td align="right" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new[$x]['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>'; ?></td>
	  </tr>
	  <tr>
		<td colspan="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>
<?php // EOF Separate Pricing Per Customer
  } // end for ($x = 0; $x < $no_of_products_new; $x++)
 } else {
?>		
			  <table border="0" cellspacing="0" cellpadding="0" class="result box_width_cont">
				  <tr><td class="main"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td></tr>
				  <tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td></tr>
			  </table>
<?php
 }
?>

<?php
 if (($products_new_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) {
?>

<?php echo tep_draw_result_bottom(); ?>

			<table border="0" cellspacing="0" cellpadding="0" class="result box_width_cont">
			  <tr>
				<td><?php echo $products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW); ?></td>
				<td class="result_right"><?php echo TEXT_RESULT_PAGE . ' ' . $products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>
			  </tr>
			</table>


<?php
 }
?>

<? tep_draw_heading_bottom_3();?>

<? tep_draw_heading_bottom();?>

		</td></tr>
	</table>
</td>
<td valign="top">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

dunno where i went wrong here?

Link to comment
Share on other sites

think i manged to sort that bit but got this problem now

 

dunno where i went wrong here?

You seem to have randomly mixed up code from the manual instructions in the template product listing you got. In principle it can be modified for SPPC but as you "did" it is total nonsense. I can't even start to describe where you all went wrong. It is just too many places. Sorry.

Link to comment
Share on other sites

That would give an error because there is no month 21. The default output is MM/DD/YYYY (from MySQL that stores this as YYYY-MM-DD). The function that does the formatting is tep_date_short (in admin/includes/functions/general.php) and seems to look at settings in the admin to how this should be formatted. Never looked at that.

////
// Output a raw date string in the selected locale date format
// $raw_date needs to be in this format: YYYY-MM-DD HH:MM:SS
// NOTE: Includes a workaround for dates before 01/01/1970 that fail on windows servers
 function tep_date_short($raw_date) {

 

Hello Jan,

 

Thanks very much for your reply.

 

My site is not in english and the date format is like this: DD/MM/YYYY.

 

Sometimes some accounts get moved form retail group to wholesale without any problem. Example today I managed to change an account from one customer group to another without any issue. But some accounts are having the problem I explained to you above in my previous post.

 

I don't know whats is going on. Your help shall be appreciated.

 

Many thanks

 

JBS7

Link to comment
Share on other sites

My site is not in english and the date format is like this: DD/MM/YYYY.

 

I don't know whats is going on.

If it is in that format you should look at the function tep_date_raw in the admin/includes/languages/language_you_use_in_admin.php

 

That should be the one that is used in espanol.php or german.php:

function tep_date_raw($date, $reverse = false) {
 if ($reverse) {
return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
 } else {
return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
 }
}

If it is the one from english.php you would have this problem (that has nothing to do with SPPC :) )

function tep_date_raw($date, $reverse = false) {
 if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
 } else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
 }
}

Link to comment
Share on other sites

I have X-sell and SPPC working along with Master Products and several other contributions. I started with the osC 060817, and used SPPC version 4.1.5, X-sell version 2.3, Master Products version 1.2 and several others.

 

Once I had all my contributions installed and working, I went through the manual process of upgrading to osC 2.2 rc2a.

 

Now, this isn't to say that I didn't have to do some custom work to get everything playing nicely together - but with all of the wonderful support here on the forums I was able to achieve what I needed to. ;)

 

 

 

Hello Jan,

 

i know there are that many. but only some are ported to work with SPPC, all the others work in general cause they dont have to handle prices. but i think for many it is interesting to which VERSIONS do work together. for example it was said that X-sell and SPPC work together...but which versions? the last ones definitivly not. i tried them for more than 12 hours with fixing etc an it didnt work. i think others could spend their time if they knew there would be some compatibility issues.

 

just me 2 cents

 

greetings

~Tracy
 

Link to comment
Share on other sites

If it is in that format you should look at the function tep_date_raw in the admin/includes/languages/language_you_use_in_admin.php

 

That should be the one that is used in espanol.php or german.php:

function tep_date_raw($date, $reverse = false) {
 if ($reverse) {
return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
 } else {
return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
 }
}

If it is the one from english.php you would have this problem (that has nothing to do with SPPC :) )

function tep_date_raw($date, $reverse = false) {
 if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
 } else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
 }
}

 

Hello Jan,

 

YOU ARE THE BEST!

 

My function tep_date_raw in /includes/languages/language_I_use_in_catalog.php was correct (spanish, german, portuguese format) but the one in admin/includes/languages/language_I_use_in_admin.php was not.

 

So I had to replace it with the spanish, german and portuguese format. Everything woks fine and all the accounts are being updated form a customer group to another without any issue.

 

Thanks very much for always helping.

 

keep it up :)

 

JSB7

Link to comment
Share on other sites

Hello Jan,

 

I was wondering if you have ever considered to merge SPPC and Hide products from customer groups for SPPC.

 

"Hide products" could be difficult to install at this time because it is not based on RC2a.

 

Thanks.

 

yay! this is what i'm looking for. I was resigning myself to creating a duplicate website for my wholesale customers. does it work with RC2a at all?

Link to comment
Share on other sites

does it work with RC2a at all?

Sure but a few things are changed so at first look you might think at certain places something is wrong but it is just things written differently, line numbers differently.

You would need to do a manual install though.

 

Updating it to RC2a was high on my priority list but so far I haven't started on it.

 

Adding it to SPPC.... some queries get pretty heavy because you always include the categories table. I'm not fond of ballast...

Link to comment
Share on other sites

Hi Jan,

 

I have my custom category pages up and running now, and everything is good except if a product is on special. For some reason, when a product is on special it gets this error:

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/site.com/includes/functions/database.php on line 108

 

 

My code is posted here:

http://www.oscommerce.com/forums/index.php?s=&...t&p=1281295

 

The only change I've made to the code since posting was adding the following to the queries - but it did not fix the problem

NULL as specials_new_products_price,

~Tracy
 

Link to comment
Share on other sites

hi Jan

 

I'd like to ask whether it's possible for me to display two different prices which is retail and wholesale price. This is only available for the wholesale group only. So wholesale can see both different price types in this case wholesale can compare the price. Something in product_info.php and product_listing.php.

 

Thanks in advance.

Link to comment
Share on other sites

PS - The error only happens when the product on special is the first product to load on the page. If it is further down the page it doesn't happen.

 

You can see it here:

http://www.mountainmeadowherbs.com/womens-...sing-c-1_4.html

 

Hi Jan,

 

I have my custom category pages up and running now, and everything is good except if a product is on special. For some reason, when a product is on special it gets this error:

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/site.com/includes/functions/database.php on line 108

~Tracy
 

Link to comment
Share on other sites

I've added Actual Attributes Price to a store with SPPC. This contrib allows you to list the actual price of a product in the options menu, instead of the increase or decrease in cost. You leave the price prefix blank instead of typing a + or -.

With SPPC, the attribute menu shows the correct price for the main (retail) customers, but not the wholesale. I don't think there is a way to add a separate attribute price for wholesale and retail. Or is there?

Thanks, Matt

 

Hey Matt did you manage to solve that?... I have exactly the same problem here.

Thank you!

Link to comment
Share on other sites

I'd like to ask whether it's possible for me to display two different prices which is retail and wholesale price. This is only available for the wholesale group only. So wholesale can see both different price types in this case wholesale can compare the price. Something in product_info.php and product_listing.php.

This is already a couple of years in the changelog_v4xx.txt:

Adding the list price to product_info.php: add another field to the relevant query/queries: ", p.products_price as list_price " and echo that on the place where you want to show the retail price (using if (customer_group_id != '0') { echo the list price here; } of course).
Link to comment
Share on other sites

Has anyone had a problem with extra items being added to the card when one is added. When I am logged in as a wholesaler, If I add one item to my cart then go back and add another item to my cart, it will randomly add another item with a price of $0.00

 

Any idea of what might be happening?

Link to comment
Share on other sites

Has anyone had a problem with extra items being added to the card when one is added. When I am logged in as a wholesaler, If I add one item to my cart then go back and add another item to my cart, it will randomly add another item with a price of $0.00

 

Any idea of what might be happening?

Never ever seen that. No clue to what would cause a thing like that.

Link to comment
Share on other sites

in your opnion, do you think it may be happening in catalog/shopping_cart.php or functions/general.php or classes/shopping_cart.php?

Most likely either in application_top.php or classes/shopping_cart.php. Might be a side effect from another contribution. Does it matter where from you add the item? Product list or product_info.php?

Link to comment
Share on other sites

well, That issue seems to be fixed????? I think it may have had to do with my Sessions settings. I changed those up and it seems to be fine now. Before, When I looked at who was on line I was listed there about 8 times.

 

Now my new problem is that when I have items in my cart, if I log out, then log in again, it will delete all but o1 or 2 of the items I had in the cart.

 

This never ends! Any thoughts on this?

Link to comment
Share on other sites

Like this:

<?php 
if ($customer_group_id == 1) { 
 ?>
 <h3>Wholesale Special!!</h3> <p>More Info Here</p>  
<?php
} 
?>

 

Where customer group 1 is the Wholesale Group.

 

You can also have two different things displayed - one for wholesale and one for retail - by adding an } else { statement in.

 

 

How can I add a note to the checkout shipping page so that only wholesale customers will see it?

~Tracy
 

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