Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Registry Contribution (Support Thread)


39 replies to this topic

#1 Baby Boy

  • Community Member
  • 129 posts
  • Real Name:Dustin Verley

Posted 21 July 2005, 14:16

Thought I'd start a support thread on the "Registry" contribution, if you need any help, you can contact me via the forums and I'll try my best to help you.
Installed Contributions: AJAX Menu, AJAX Attributed Manager, AP URL ReWriting, Credit Class and Gift Vouchers, CCGV Report, Date of Birth PullDown, FCKEditor for Product Desc., Monthly Installment Payments, More Pictures 6, MSRP Savings, Must Agree to Terms on Checkout, Order Editor, Payment Method Fee, PopUp Promo, Private Messages, Purchase Order, Purchase Order Application, Secure Admin Login-Logout, STS Plus, SugarCRM Integration, Supertracker, Tax Exempt and Organization Discounts, Your Recent History.

23 Total Contributions Installed :)

#2 schizo

  • Community Member
  • 8 posts
  • Real Name:Shawn

Posted 07 August 2005, 15:02

Is there a way to view what is in the registry? I use it as a wishlist and would like to view what is in the list without having to go into PHPMyAdmin and crossreferencing item numbers. If there is an admin contribution for tracking, I would love to know about it.

Thanks in advance,
Shawn

#3 themainebaby

  • Community Member
  • 27 posts
  • Real Name:Natalie Reis

Posted 04 September 2005, 04:08

I'm working on installing it now and I'm getting an error after installing the checkout_shipping file. I have contributions already added so I'm using beyond compare to edit my files. I'm editing each file, uploading and then checking - I figured that was the easiest way to make sure I haven't screwed anything up. But, I wasn't sure if everything needed to be uploaded for it to work correctly and if that is the reason I'm getting an error. I could edit all of the files, saving them in a separate folder until they are all finished and then upload, I was just worried that if I got an error somewhere I wouldn't have any idea where the problem was.

This is the error I'm getting, on checkout:
Shipping Address
TEXT_REGISTRY_PURCHASE_SHIPPING_DESTINATION


Shipping Address:

Fatal error: Call to undefined function: tep_get_default_address() in /home/painting/public_html/store/checkout_shipping.php on line 258

and this is the code:

<?php
/*
  $Id: checkout_shipping.php,v 1.16 2003/06/09 23:03:53 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');
  require('includes/classes/http_client.php');

//print_r($GLOBALS);
//print_r($HTTP_POST_VARS);
//print_r($HTTP_SESSION_VARS);
//$customer_default_address_id
// if the customer is not logged on, redirect them to the login page
  if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot();
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  }

// if there is nothing in the customers cart, redirect them to the shopping cart page
  if ($cart->count_contents() < 1) {
    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
  }

// if no shipping destination address was selected, use the customers own address as default
  if (!tep_session_is_registered('sendto')) {
    tep_session_register('sendto');
    $sendto = $customer_default_address_id;
  } else {
// verify the selected shipping address
    $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$sendto . "'");
    $check_address = tep_db_fetch_array($check_address_query);

    if ($check_address['total'] != '1') {
      $sendto = $customer_default_address_id;
      if (tep_session_is_registered('shipping')) tep_session_unregister('shipping');
    }
  }

  require(DIR_WS_CLASSES . 'order.php');
  $order = new order;

// register a random ID in the session to check throughout the checkout procedure
// against alterations in the shopping cart contents
  if (!tep_session_is_registered('cartID')) tep_session_register('cartID');
  $cartID = $cart->cartID;

// if the order contains only virtual products, forward the customer to the billing page as
// a shipping address is not needed
  if ($order->content_type == 'virtual') {
    if (!tep_session_is_registered('shipping')) tep_session_register('shipping');
    $shipping = false;
    $sendto = false;
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
  }

  $total_weight = $cart->show_weight();
  $total_count = $cart->count_contents();

// load all enabled shipping modules
  require(DIR_WS_CLASSES . 'shipping.php');
  $shipping_modules = new shipping;

  if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) {
    $pass = false;

    switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {
      case 'national':
        if ($order->delivery['country_id'] == STORE_COUNTRY) {
          $pass = true;
        }
        break;
      case 'international':
        if ($order->delivery['country_id'] != STORE_COUNTRY) {
          $pass = true;
        }
        break;
      case 'both':
        $pass = true;
        break;
    }

    $free_shipping = false;
    if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
      $free_shipping = true;

      include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php');
    }
  } else {
    $free_shipping = false;
  }

// process the selected shipping method
  if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') ) {
    if (!tep_session_is_registered('comments')) tep_session_register('comments');
    if (tep_not_null($HTTP_POST_VARS['comments'])) {
      $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
    }

    if (!tep_session_is_registered('shipping')) tep_session_register('shipping');

    if ( (tep_count_shipping_modules() > 0) || ($free_shipping == true) ) {
      if ( (isset($HTTP_POST_VARS['shipping'])) && (strpos($HTTP_POST_VARS['shipping'], '_')) ) {
        $shipping = $HTTP_POST_VARS['shipping'];

        list($module, $method) = explode('_', $shipping);
        if ( is_object($$module) || ($shipping == 'free_free') ) {
          if ($shipping == 'free_free') {
            $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
            $quote[0]['methods'][0]['cost'] = '0';
          } else {
            $quote = $shipping_modules->quote($method, $module);
          }
          if (isset($quote['error'])) {
            tep_session_unregister('shipping');
          } else {
            if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {
              $shipping = array('id' => $shipping,
                                'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
                                'cost' => $quote[0]['methods'][0]['cost']);

              tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
            }
          }
        } else {
          tep_session_unregister('shipping');
        }
      }
    } else {
      $shipping = false;
                
      tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }    
  }

// get all available shipping quotes
  $quotes = $shipping_modules->quote();

// if no shipping method has been selected, automatically select the cheapest method.
// if the modules status was changed when none were available, to save on implementing
// a javascript force-selection method, also automatically select the cheapest shipping
// method if more than one module is now enabled
  if ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest();

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SHIPPING);

  $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="javascript"><!--
var selected;

function selectRowEffect(object, buttonSelect) {
  if (!selected) {
    if (document.getElementById) {
      selected = document.getElementById('defaultSelected');
    } else {
      selected = document.all['defaultSelected'];
    }
  }

  if (selected) selected.className = 'moduleRow';
  object.className = 'moduleRowSelected';
  selected = object;

// one button is not an array
  if (document.checkout_address.shipping[0]) {
    document.checkout_address.shipping[buttonSelect].checked=true;
  } else {
    document.checkout_address.shipping.checked=true;
  }
}

function rowOverEffect(object) {
  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
//--></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
  <tr>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top"><?php echo tep_draw_form('checkout_address', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . tep_draw_hidden_field('action', 'process'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
            <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_delivery.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><b><?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?></b></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
<?php //start gift registry ?>
                  <?php
                    if($cart->registry_customers_id == '0'){
                  ?>
                <td class="main" width="50%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_DESTINATION . '<br><br><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td>
                  <?php
                    }else{
                  ?>
                      <td class="main" width="50%" valign="top"><?php echo TEXT_REGISTRY_PURCHASE_SHIPPING_DESTINATION . '<br><br>'; ?></td>
                  <?php
                    }
                  ?>
<?php //end gift registry ?>
                <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="main" align="center" valign="top"><?php echo '<b>' . TITLE_SHIPPING_ADDRESS . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td>
                    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
                    <td class="main" valign="top">
<?php //start gift registry ?>
                      <?php
                        if($cart->registry_customers_id == '0'){
                          echo tep_address_label($customer_id, $sendto, true, ' ', '<br>');
                        }else{
                          echo tep_address_label($cart->registry_customers_id, tep_get_default_address($cart->registry_customers_id), true, ' ', '<br>');
                        }
                      ?>
<?php //end gift registry ?>
                    </td>
                    <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
<?php
  if (tep_count_shipping_modules() > 0) {
?>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><b><?php echo TABLE_HEADING_SHIPPING_METHOD; ?></b></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
    if (sizeof($quotes) > 1 && sizeof($quotes[0]) > 1) {
?>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td class="main" width="50%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></td>
                <td class="main" width="50%" valign="top" align="right"><?php echo '<b>' . TITLE_PLEASE_SELECT . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
<?php
    } elseif ($free_shipping == false) {
?>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?></td>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
<?php
    }

    if ($free_shipping == true) {
?>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td colspan="2" width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                    <td class="main" colspan="3"><b><?php echo FREE_SHIPPING_TITLE; ?></b>&nbsp;<?php echo $quotes[$i]['icon']; ?></td>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                  </tr>
                  <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 0)">
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                    <td class="main" width="100%"><?php echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . tep_draw_hidden_field('shipping', 'free_free'); ?></td>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                  </tr>
                </table></td>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
              </tr>
<?php
    } else {
      $radio_buttons = 0;
      for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
?>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                    <td class="main" colspan="3"><b><?php echo $quotes[$i]['module']; ?></b>&nbsp;<?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></td>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                  </tr>
<?php
        if (isset($quotes[$i]['error'])) {
?>
                  <tr>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                    <td class="main" colspan="3"><?php echo $quotes[$i]['error']; ?></td>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                  </tr>
<?php
        } else {
          for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
// set the radio button to be checked if it is the method chosen
            $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false);

            if ( ($checked == true) || ($n == 1 && $n2 == 1) ) {
              echo '                  <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
            } else {
              echo '                  <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
            }
?>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                    <td class="main" width="75%"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td>
<?php
            if ( ($n > 1) || ($n2 > 1) ) {
?>
                    <td class="main"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td>
                    <td class="main" align="right"><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked); ?></td>
<?php
            } else {
?>
                    <td class="main" align="right" colspan="2"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></td>
<?php
            }
?>
                    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                  </tr>
<?php
            $radio_buttons++;
          }
        }
?>
                </table></td>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
              </tr>
<?php
      }
    }
?>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
<?php
  }
?>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td class="main"><?php echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
                <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td width="50%" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
                <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
              </tr>
            </table></td>
            <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
            <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
            <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
                <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_DELIVERY; ?></td>
            <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
            <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
            <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
          </tr>
        </table></td>
      </tr>
    </table></form></td>
<!-- body_text_eof //-->
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
    </table></td>
  </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Thanks!

#4 jimcfs

  • Community Member
  • 11 posts
  • Real Name:Jim Johnston

Posted 09 September 2005, 00:35

schizo, on Aug 7 2005, 11:02 AM, said:

Is there a way to view what is in the registry? I use it as a wishlist and would like to view what is in the list without having to go into PHPMyAdmin and crossreferencing item numbers. If there is an admin contribution for tracking, I would love to know about it.

Thanks in advance,
Shawn

<{POST_SNAPBACK}>


In the "search registry" on the right side of most screens of OSC, if you use % for first name and %% for last name, you can get a list of all active registries, which you can then access.

#5 edwardames

  • Community Member
  • 1 posts
  • Real Name:Edward Ames

Posted 25 September 2005, 02:42

I had been having a problem with getting registry purchases to charge sales tax correctly.

Tax was being calculated on registry pruchases based on the default address of the purchaser, and not based on the delivery address of the recipient, like it needs to be for my purposes. My State Comptroller's office is not very pleasant about such issues.

I fixed the problem by changing order.php under /catalog/includes/classes/.

By default order.php appears to set sales tax around line 147 like so:
      $tax_address_query = tep_db_query("select ab.entry_country_id, ab.entry_zone_id from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) where ab.customers_id = '" . (int)$customer_id . "' and ab.address_book_id = '" . (int)($this->content_type == 'virtual' ? $billto : $sendto) . "'");
      $tax_address = tep_db_fetch_array($tax_address_query);

I fixed my gift registry sales tax problem by replacing those lines with the following if-else code:.
      if($cart->registry_customers_id > '0'){
       $tax_address['entry_zone_id']=$shipping_address['entry_zone_id'];
       $tax_address['entry_country_id']=$shipping_address['entry_country_id'];
      }else{
       $tax_address_query = tep_db_query("select ab.entry_country_id, ab.entry_zone_id from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) where ab.customers_id = '" . (int)$customer_id . "' and ab.address_book_id = '" . (int)($this->content_type == 'virtual' ? $billto : $sendto) . "'");
       $tax_address = tep_db_fetch_array($tax_address_query);
      }

It might more neatly be fixed by doing stuff to $sendto in checkout_shipping.php, but the above change was easier for me with all the changes I have made to my own checkout_shipping file. If there's a better way, do tell.

Edward

#6 basnyd

  • Community Member
  • 54 posts
  • Real Name:Barb Snyderman

Posted 18 December 2005, 21:32

Hi -
I just installed Registry and everything went very smooth on my initial tests. If I login under my user ID as a customer, is there a way for me as a customer to see which items have been purchased on registry and which items have not?
Thanks,
Barb

#7 joshtolin

  • Community Member
  • 9 posts
  • Real Name:Josh Tolin

Posted 21 February 2006, 17:43

Hi- I'm looking for some help on the registry contrib, which is great by the way.

If a customer views the product from the registry list (product_info.php) then adds it to cart, the purchase is not applied to the registry.

Is there a way I can either replace the "add to cart" button with a "back to registry" button (only if coming from the registry list page) or that the registry info can be passed to the product_info page when accessed from the registry list?

Any help will be greatly appreciated. /Josh

#8 basnyd

  • Community Member
  • 54 posts
  • Real Name:Barb Snyderman

Posted 09 March 2006, 19:44

Josh - After I checkout the purchase is applied to the registry. At least for me it was because if I purchased an item it no longer shows on the registry for the next person who view the registry.


I also have a question of my own - When a person makes a purchase from the registry, they are "forced" to ship the item to the registry owner. What if I want to purchase off the registry, but have it shipped to me so that I can bring the gift to the event instead of having it shipped? I don't see the button to change shipping address if I purchase through the registry.

Thanks,
Barb

#9 hooman

  • Community Member
  • 44 posts
  • Real Name:Hooman

Posted 02 April 2006, 07:18

great contribution!

Is there a package that does not contain the OSC files and only has the Registry contribution? I had a clean install of MS2 and the files included in the registry's zipped package overwrites the working files.

I would appreciate having just the needed files to set this contribution up.

thanks

#10 findtim

  • Community Member
  • 59 posts
  • Real Name:tim

Posted 07 April 2006, 05:06

View Postjoshtolin, on Feb 21 2006, 05:43 PM, said:

Hi- I'm looking for some help on the registry contrib, which is great by the way.

If a customer views the product from the registry list (product_info.php) then adds it to cart, the purchase is not applied to the registry.

Is there a way I can either replace the "add to cart" button with a "back to registry" button (only if coming from the registry list page) or that the registry info can be passed to the product_info page when accessed from the registry list?

Any help will be greatly appreciated. /Josh

did you have any luck with this problem? as i have similar, when a guest views the registry they can move it to cart ok but if they choose to view the product info at any stage in the purchasing process the registry drops the session and reverts back to a normal sale THUS that is why it isn't getting deleted off the registry thus also the shipping is to the guest and not the registry holder.

any ideas?

tim

Edited by findtim, 07 April 2006, 05:10.


#11 joshtolin

  • Community Member
  • 9 posts
  • Real Name:Josh Tolin

Posted 07 April 2006, 05:20

View Postfindtim, on Apr 7 2006, 05:06 AM, said:

did you have any luck with this problem? as i have similar, when a guest views the registry they can move it to cart ok but if they choose to view the product info at any stage in the purchasing process the registry drops the session and reverts back to a normal sale THUS that is why it isn't getting deleted off the registry thus also the shipping is to the guest and not the registry holder.

any ideas?

tim

yes i did resolve it...I basically added an if/then checking the origin...

I am not by any means a php pro, so the code probably is not proper, but it works for me. I am pretty sure this is all I changed, but not positive.

This code should replace the code on the products_info page where it adds to "add to cart" button. Be sure to test extensively, I cannot guarrantee this.

I hope this will at least get you started. /Josh
<!-- start gift registry //-->

<tr><td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">

<?php if(($HTTP_GET_VARS['registry_id'])){$HTTP_GET_VARS['origin_link'] = FILENAME_DISPLAY_REGISTRY_PRODUCTS; ?>
	  <tr>
		<td class="main">
		  <table border="0" width="100%"><tr><td width="50%">
		  <?php
		  if($navigation->path[sizeof($navigation->path)-2]){
			 echo '<a href="' . tep_href_link(FILENAME_DISPLAY_REGISTRY_PRODUCTS, 'registry_id=' . $HTTP_GET_VARS['registry_id']) . '">' . tep_image_button('button_back.gif', BOX_SEARCH_REGISTRY_SEARCH) . '</a>';
		  }else{
			echo ' ';
		  }
		  ?>
		</td></tr></table></td>
	  </tr>
	</table></td>
<!-- body_text_eof //-->

  </tr>

<?php
		}
		if($registry_mode_id == 0 && !($HTTP_GET_VARS['registry_id'])){
?>
		  <tr>
			<td width="15%" height="40" align="left" class="main"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, 'name="submit_cart"'); ?>
			<br><br>
			</td>
		  </tr>
<?php
		  }elseif($registry_mode_id != 0){
?>
		  <tr>
			<td class="main" align="left" valign="middle">
			  <!--test to see if 2 submit buttons work!? //-->
			   <input type="text" name="products_quantity_registry" value="1" size="2">  
			</td>
			<td width="15%" height="40" class="main" align="right" valign="middle">
			  <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_add_to_registry.gif', IMAGE_BUTTON_ADD_TO_REGISTRY, 'name="submit_registry"'); ?>
			<br><br>
			</td>
		  </tr>
<?php
		  }
?>
		</table>


<!-- end gift registry //-->
<?php if(!($HTTP_GET_VARS['registry_id'])){
?>


#12 hooman

  • Community Member
  • 44 posts
  • Real Name:Hooman

Posted 07 April 2006, 06:28

is there a package for this contribution that doesnt include OSCommerce's own files? As I already have few contributions added to my store, copying this contribution's files overwrites the existing files.. any help would be much appreciated.

#13 findtim

  • Community Member
  • 59 posts
  • Real Name:tim

Posted 21 April 2006, 13:57

Thanks Joshtolin, i am back in the office now so will give it a go, i had done some major rework to get around the problem so i will let you know what comes out of it.

Hooman, ! i have been working on this for a fair while and have found you just have to bite the bullet and concerntrate on reworking the files, plus BACK UP BACK UP.

i have run 2 domains, when something looks tricky, i do it o one and then when it's ok i work on the REAL one. hope that helps?

tim

#14 codenexus

  • Community Member
  • 4 posts
  • Real Name:Aaron Singline

Posted 23 October 2006, 07:39

OK the latest file in the contribution (http://www.oscommerce.com/community/contributions,1226) is all over the place. Seems to be fixing things that either are already fixed or not needing fixing. Especially with the addslashes. Also the instructions are terrible. The filenames are missing for half of them.

Also seems to be written half for MS1 not the latest MS2.

Could someone who knows how this contribution works package up a good set of instructions please. I couldn't get anywhere near close to installing it.

It would be great to see this one tidied up as it looks like a good contrib. :thumbsup:

#15 mike@finditfoxvalley

  • Community Member
  • 11 posts
  • Real Name:mike strohm

Posted 08 December 2006, 21:52

I have just installed this contrib and when I want to add a product to a registry that I sent up I get this error 'Please mail Gunter@SammySolutions.com if you get this message. Please describe what you did before you got this message.'

I do have the guest enhanced wishlist 3.5 installed.

#16 LoOneTx

  • Community Member
  • 26 posts
  • Real Name:LoOneTx
  • Gender:Male

Posted 19 June 2007, 20:19

Hello friends.

I install Registry Redux Contribution but in link REGISTY (to create a registry) have a form with:

Registry Details
Co-Registrant First Name:
Co-Registrant Last Name:
Occasion Date: (eg. 05/21/1970) required
Occasion: Select Event required


But in Occasion (Select Event) not have events for selection.
In BD the events are correctly. What the problem?

Wait for a help.
Thank you!

#17 ggbig

  • Community Member
  • 71 posts
  • Real Name:Gerald Bullard Jr.
  • Gender:Male
  • Location:SunnyFlorida!

Posted 05 July 2007, 07:49

Hi there i have almost ported the full Registry to CRELoaded 6.2. I am stuck with only a couple errors that i cannot figure out, I will try and post them as cleanly and understandable as i can in hopes you guys can help :) Here goes:

***************************************************
1)

Trouble page(s):

-->http://enhanceourwedding.com/add_registry.php


Action to reproduce error:

Go to add_registry page and click on the "<click here>" link to the right of the listing table
for any of the registry entries and you will see an error at the top of the page as follows:

Fatal error: Call to a member function on a non-object in /home/outside/enhanceourwedding-www/includes/application_top.php on line 884

when you hit the back button the error disappears and you are in registry mode.


***************************************************
2)

When Gift Registry Infobox is enabled via admin it shows error in the box on the store side as follows:


Fatal error: Call to a member function on a non-object in /home/outside/enhanceourwedding-www/templates/cre02/boxes/registry_products.php on line 26



***************************************************
3)

http://enhanceourwedding.com/add_registry.php

Click on the name Gerald Bullard in the registry listing and then on the next page (add_registry_process.php)

When hitting the delete button on this page you get this error:

Fatal error: Call to a member function on a non-object in /home/outside/enhanceourwedding-www/includes/application_top.php on line 884


***************************************************
4)

http://enhanceourwedding.com/registry_products.php

shows this error:

Fatal error: Call to a member function on a non-object in /home/outside/enhanceourwedding-www/templates/content/registry_products.tpl.php on line 17


***************************************************


this piece of code is the main culprit of the errors in the registry script:


if ($registry->count_contents() > 0) {

maybe i'm missing something but hey i'm sure someone has seen this before or maybe not, but thanks for any help you can provide, this is a much needed script for a wedding site as you can see. Could you believe that the latest download had no instructions and i got this far by comparing files :) Didn't think to look back about two or three releases of the files and found them later, but alot had to be updated anyway. Thanks for any help you could provide folks :)
-------------------------------------------------
Best Regards,

ggbig (maestro)

#18 LoOneTx

  • Community Member
  • 26 posts
  • Real Name:LoOneTx
  • Gender:Male

Posted 14 August 2007, 18:41

My registry no appear events for select.
The combobox for select events not function.
Appear only "Select Event".
O click for open events for select, nothing appear.

What the problem?

#19 kjramsey

  • Community Member
  • 2 posts
  • Real Name:Kathy

Posted 12 September 2007, 04:28

HELP. :'( I have a major problem with the registry. When two people are logged into the site and in registry mode they can see each others info. The site will grab name address from one and display it to the other when checking out. My customer is screaming about her site not being safe. Any suggestions are greatly appreciated. Kathy

#20 beachkitty85

  • Community Member
  • 54 posts
  • Real Name:Christina
  • Gender:Female
  • Location:Morrisville, NC, USA

Posted 04 November 2007, 07:10

I have attempted to install this contribution twice, both times with no luck. The first time I compared my files to the "Registry Redux" package files and made all the necessary changes. The second time I followed the manual install instructions posted in the "oops this is it for real" package. Both times I had the same problem: I can create registries but cannot add items to them. Also, I am not shown the text at the top of the page saying "You are in registry mode" or anything like that. I checked and there is no value being passed for the "registry_mode_id" variable. Any help is much appreciated!