Results 1 to 4 of 4

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

      
  1. #1
    Member
    Join Date
    Oct 2007
    Posts
    51
    Rep Power
    5


    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

  2. #2
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    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

  3. #3
    Member
    Join Date
    Oct 2007
    Posts
    51
    Rep Power
    5


    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.

  4. #4
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    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

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •