adodd Posted April 22, 2008 Posted April 22, 2008 I haven't had much luck in the past with these forums. I am assuming it is because I didn't have the "Powered by Oscommerce" in my footer. I now have that in this website. I am desperate for an answer to this so I can move forward (aren't we all?) I have added the Gift Registry by [email protected] and I am using the STS templates version 4.5.8. I have most everything working. I can add a new registry event, search for a registry person. Two major problems. I can't get out of Registry Mode. It is supposed to put a line of text with a link across the page to exit out of Registry mode. Because I am using the STS templates it isn't passing the correct information to the templates for that link. The code that I think needs to be integrated into sts_inc/general.php is from includes/header.php if ($registry_mode_id != 0) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo '<a class="headerInfo" href="' . tep_href_link(FILENAME_DEFAULT, 'registry_mode_id=0') . '">' . REGISTRY_MODE_MESSAGE . ' (# ' . $registry_mode_id . ').</a>'; ?></td> </tr> </table> <?php } I've tried many, many different things, but I just can't get it. The 2nd problem is the Shopping Cart. I need an if statement related to the normal Shopping Cart and the Gift Registry Products List. I have them both defined for the STS Templates ($cartbox | $registry_products) but I don't know where or what I need to use for an if statement. Here is the code I used for the sts_inc/sts_column_left.php //start gift registry if($registry_mode_id == 0){ require(DIR_WS_BOXES . 'shopping_cart.php'); $sts->restart_capture ('cartbox', 'box'); // Get shopping cart box } if($registry->count_contents() > 0){ require(DIR_WS_BOXES . 'registry_products.php'); $sts->restart_capture ('registry_products', 'box'); // Get registry search box } Any help would be appreciated. Thanks! Quote
adodd Posted April 22, 2008 Author Posted April 22, 2008 I haven't had much luck in the past with these forums. I am assuming it is because I didn't have the "Powered by Oscommerce" in my footer. I now have that in this website. I am desperate for an answer to this so I can move forward (aren't we all?) I have added the Gift Registry by [email protected] and I am using the STS templates version 4.5.8. I have most everything working. I can add a new registry event, search for a registry person. Two major problems. I can't get out of Registry Mode. It is supposed to put a line of text with a link across the page to exit out of Registry mode. Because I am using the STS templates it isn't passing the correct information to the templates for that link. The code that I think needs to be integrated into sts_inc/general.php is from includes/header.php if ($registry_mode_id != 0) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo '<a class="headerInfo" href="' . tep_href_link(FILENAME_DEFAULT, 'registry_mode_id=0') . '">' . REGISTRY_MODE_MESSAGE . ' (# ' . $registry_mode_id . ').</a>'; ?></td> </tr> </table> <?php } I've tried many, many different things, but I just can't get it. The 2nd problem is the Shopping Cart. I need an if statement related to the normal Shopping Cart and the Gift Registry Products List. I have them both defined for the STS Templates ($cartbox | $registry_products) but I don't know where or what I need to use for an if statement. Here is the code I used for the sts_inc/sts_column_left.php //start gift registry if($registry_mode_id == 0){ require(DIR_WS_BOXES . 'shopping_cart.php'); $sts->restart_capture ('cartbox', 'box'); // Get shopping cart box } if($registry->count_contents() > 0){ require(DIR_WS_BOXES . 'registry_products.php'); $sts->restart_capture ('registry_products', 'box'); // Get registry search box } Any help would be appreciated. Thanks! Here is a website link : It is not live and still a work in progress. http://www.dragracingheaven.com/inhomegallery Quote
adodd Posted April 22, 2008 Author Posted April 22, 2008 (edited) Would someone please take a look at this? http://www.dragracingheaven.com/inhomegallery I have put hours and hours into getting the gift registry working to the point that it is. You have to go to this link and create an account to see how the gift registry works. https://www.dragracingheaven.com/inhomegall...try_process.php Edited April 22, 2008 by adodd Quote
Guest Posted January 21, 2009 Posted January 21, 2009 Would someone please take a look at this? http://www.dragracingheaven.com/inhomegallery I have put hours and hours into getting the gift registry working to the point that it is. You have to go to this link and create an account to see how the gift registry works. https://www.dragracingheaven.com/inhomegall...try_process.php Hello, I am trying to do the exact same thing. I have installed STS 4 successfully, but cannot get the registry module to even show up in the admin panel. I really need to get this installed so I can get the site over to the client. I tried merging all the changed files and importing the sql file, but no matter what I do the module just doesn't show up, so I can't enable it. Can you please tell me how you got it installed on your site? Thanks, -Jason Quote
ken0306 Posted January 24, 2009 Posted January 24, 2009 I tried to setup the account in your site, it looks like you can't leave the registry mode. So, I believe you need to place the code under template folder header.php Quote
learwbc4 Posted May 25, 2010 Posted May 25, 2010 can someone help me with getting gift registry mod to work with sts template mod? i started out with an sts cart, then later added the gift registry mod....only until i finished the installation of gift registry did i find out that it was meant to go on an oscommerce install without sts.... however i think there might just be a few more edits to merge sts and gift registry. am i right? has anyone done it successfully? would anyone be willing to share their experience on this topic? Quote
jaeare Posted August 12, 2010 Posted August 12, 2010 I got the mod to work with STS templates. To have "registry" show up in the top menu when you are logged in you must have $myaccountlogoff listed there. Go to catalog/includes/modules/sts_inc/general.php. FIND around line 49: $sts->template['urllogoff'] = tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ADD BELOW: $sts->template['registry'] = '<a href=' . tep_href_link(FILENAME_ADD_REGISTRY, '', 'SSL') . ' class="menu">' . HEADER_TITLE_ADD_REGISTRY . '</a>'; $sts->template['urlregistry'] = tep_href_link(FILENAME_ADD_REGISTRY, '', 'SSL'); For the same menu sequence as found on sammy solutions example page: "Registry | Log Off | My Account" FIND the next line down: $sts->template['myaccountlogoff'] = $sts->template['myaccount'] . " | " . $sts->template['logoff']; CHANGE TO: $sts->template['myaccountlogoff'] = $sts->template['registry'] . " | " . $sts->template['logoff'] . " | " . $sts->template['myaccount']; To have the message "You're in registry mode. Click here to leave the registry mode (# XXXXXX)" show up when you are in registry mode: The install.txt file that came with the mod has you modify catalog/includes/header.php with the below instructions. INSTEAD apply these instructions to the catalog/includes/modules/sts_inc/general.php file. FIND: ======================= <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td> ADD AFTER IT: ======================= </tr> </table> <?php } if ($registry_mode_id != 0) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo '<a class="headerInfo" href="' . tep_href_link(FILENAME_DEFAULT, 'registry_mode_id=0') . '">' . REGISTRY_MODE_MESSAGE . ' (# ' . $registry_mode_id . ').</a>'; ?></td> I hope this helps. Quote
jaeare Posted August 12, 2010 Posted August 12, 2010 I got the mod to work with STS templates. To have "registry" show up in the top menu when you are logged in you must have $myaccountlogoff listed there. Go to catalog/includes/modules/sts_inc/general.php. FIND around line 49: $sts->template['urllogoff'] = tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ADD BELOW: $sts->template['registry'] = '<a href=' . tep_href_link(FILENAME_ADD_REGISTRY, '', 'SSL') . ' class="menu">' . HEADER_TITLE_ADD_REGISTRY . '</a>'; $sts->template['urlregistry'] = tep_href_link(FILENAME_ADD_REGISTRY, '', 'SSL'); For the same menu sequence as found on sammy solutions example page: "Registry | Log Off | My Account" FIND the next line down: $sts->template['myaccountlogoff'] = $sts->template['myaccount'] . " | " . $sts->template['logoff']; CHANGE TO: $sts->template['myaccountlogoff'] = $sts->template['registry'] . " | " . $sts->template['logoff'] . " | " . $sts->template['myaccount']; To have the message "You're in registry mode. Click here to leave the registry mode (# XXXXXX)" show up when you are in registry mode: The install.txt file that came with the mod has you modify catalog/includes/header.php with the below instructions. INSTEAD apply these instructions to the catalog/includes/modules/sts_inc/general.php file. FIND: ======================= <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td> ADD AFTER IT: ======================= </tr> </table> <?php } if ($registry_mode_id != 0) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo '<a class="headerInfo" href="' . tep_href_link(FILENAME_DEFAULT, 'registry_mode_id=0') . '">' . REGISTRY_MODE_MESSAGE . ' (# ' . $registry_mode_id . ').</a>'; ?></td> I hope this helps. Sorry, I forgot to mention I had changed the original " ' class="headerNavigation">' " to ' class="menu">' for my personal customization of the text in stylesheet.css. You can keep the original ' class="headerNavigation">' if you want to. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.