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!