osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

My account info

This is a discussion on My account info within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Does anyone know how I can create a link in the MY account info box?, which only is viewable when ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 07-20-2008, 02:46 PM
Member
 
Join Date: Oct 2007
Posts: 40
Thanks: 17
Thanked 0 Times in 0 Posts
Rep Power: 0
metalman923 is on a distinguished road
Default My account info

Does anyone know how I can create a link in the MY account info box?,

which only is viewable when a user is logged in?

I'd like to offer a download but only those who are logged in

and if possible to specific groups

(which I don't think can be done without extensive code work)

Thanks to all in advance for any help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 07-21-2008, 03:03 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 468
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: My account info

/includes/boxes/loginbox.php

search for
<!-- my_account_info //-->

all the links are under there.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to met00 For This Useful Post:
metalman923 (07-21-2008)
  #3  
Old 07-21-2008, 07:31 AM
Member
 
Join Date: Oct 2007
Posts: 40
Thanks: 17
Thanked 0 Times in 0 Posts
Rep Power: 0
metalman923 is on a distinguished road
Default Re: My account info

I really appreciate you're taking the time to help me with this, I was wondering if you knew of a way to make the links only visible to certain groups, I don't know if this is something that can be done but just curious since I sell to different groups such as retail and wholesale I wonder if I could have different links show up for the different groups, but anyway
THANK YOU VERY MUCH for your time and consideration.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-22-2008, 01:04 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 468
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: My account info

Look at the SPPC code...

Code:
     if(!tep_session_is_registered('sppc_customer_group_id')) {
     $customer_group_id = '0';
     } else {
      $customer_group_id = $sppc_customer_group_id;
     }
    $groupnum2show=2;
Now this is a kluge, but check the database for the group ID of the groups you want to have stuff shown in and set them in the $groupnum2show variable above - then do an if statement...

Code:
if ($customer_group_id == $groupnum2show) {
// output links
}
Like I said, this is rather klugy, but it is functional. A better way to do this is to create an admin piece that allows you to add "information links by group" and then do it by a DB query to set the links live via an admin module, but the above will work fast and dirty.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
Where can I find more info countingsheep osCMax v2 Features Discussion 4 01-10-2008 12:11 PM
where is the content for the My account info box set? tunnel7 osCMax v2 Customization/Mods 3 04-16-2007 03:07 PM
Loginbox and My account info problem. Pacog71 osCMax v2 Customization/Mods 1 04-11-2007 12:29 AM
Changing order of account info Lady_Lobo osCommerce 2.2 Modification Help 2 03-23-2004 09:37 AM
Create Account,Checkout,My Account, Language Pictures probs! Mikey osCommerce 2.2 Installation Help 0 03-08-2004 11:20 PM


All times are GMT -8. The time now is 01:26 AM.


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