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


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-19-2003, 12:02 AM
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!
Sponsored Links
Advertisement
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 06:13 PM
customer groups joanstead osCMax v2 Features Discussion 3 02-20-2006 03:44 AM
Easy Populate - Customer Pricing/groups RoyceK osCMax v1.7 General Mods Discussion 1 02-08-2006 07:24 PM
Separate pricing per customer No groups in Products zel osCMax v1.7 General Mods Discussion 6 02-20-2005 01:49 PM
Quantity Discounts + Customer Groups mat123slade osCMax v1.7 Discussion 0 10-27-2004 08:20 AM


All times are GMT -8. The time now is 04:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax