osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Different box content for different member groups.

This is a discussion on Different box content for different member groups. within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello All: I have two groups set up for my shop, "Retail" and "Member". I am trying to set up ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-18-2003, 11:02 PM
Lurker
 
Join Date: Nov 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gobayview
Default Different box content for different member groups.

Hello All:

I have two groups set up for my shop, "Retail" and "Member". I am trying to set up a box that shows a "join" teaser to those not logged in, and to "Retail" shoppers. I want the content to be different for logged in "Members".

Following is the code I have written for the box, and I just can't get it to work. Any help on this syntax problem would be greatly appreciated.

Quote:
<?php
$boxHeading = 'Membership';
$boxContent_attributes = ' align="center"';
$boxLink = '';


$boink=(tep_db_query("select customers_group_name from " . TABLE_CUSTOMERS . " where customers_id = '$customers_id'"));

if (tep_session_is_registered('customer_id')) && ($boink='Member') {

$boxContent = 'The prices you see when logged in reflect a 25% savings over regular retail prices.';

} else {

$boxContent = '<a href="http://www.otherdomain.com"><img src="http://www.mydomain.com/images/join.gif" border="0" alt="Buy a Membership" title="membership" width="150" height=""><br>Learn More!</a>';
}

require(DIR_WS_TEMPLATES . TEMPLATENAME_BOX);

$boxLink = '';
$boxContent_attributes = '';

?>
It's the "if...&&..." statement that is giving me problems. I can make it work with one condition (logged in), but not both.

I thought the $boink name would avoid conflictions with other reserved names.

Thanks in advance

Spice
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
customer groups jschafer52 osCMax v2 Customization/Mods 0 11-28-2006 05:13 PM
customer groups joanstead osCMax v2 Features Discussion 3 02-20-2006 02:44 AM
Easy Populate - Customer Pricing/groups RoyceK osCMax v1.7 General Mods Discussion 1 02-08-2006 06:24 PM
Separate pricing per customer No groups in Products zel osCMax v1.7 General Mods Discussion 6 02-20-2005 12:49 PM
Quantity Discounts + Customer Groups mat123slade osCMax v1.7 Discussion 0 10-27-2004 07:20 AM


All times are GMT -8. The time now is 10:16 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design