set_return_policy(FALSE, 'blackTextVerdana14'); $Template->set_backorder_policy_text(); $Template->set_specialorder_policy_text(); $us_method_rows = ''; foreach($Shipping->methods as $method) { $amt = $Shipping->get_amount('US', $method, 100); $amt_text = ($amt < 10) ? '  '.$amt : $amt; $us_method_rows .= ' '.$method.': $'.$amt_text.' '; } $shipping_content = array(' '. $us_method_rows.'
Within the Continental US:
FREE Ground shipping for orders of $'.$Shipping->free_ground_level.' and up!
Outside of the Continental US:
Canada: $'.$Shipping->get_amount('CA', 'Ground', 100).'
Europe: $'.$Shipping->get_amount('FR', 'Ground', 100).'
Other: $'.$Shipping->get_amount('ZZZZ', 'Ground', 100).'
' ); $open_default = 'contact'; $open = (!isset($_GET['open'])) ? $open_default : $_GET['open']; // page template $pt = array( 'contact' => array( 'label' => 'Contact Us', 'content' => array('
'.Config::$store_name.'
'.Config::$store_address.'
'.Config::$store_city.', '.Config::$store_state.' '.Config::$store_zip.'
'.Config::$phone.'
'.Config::$site_info_email.'
' ) ), 'shipping' => array( 'label' => 'Shipping', 'content' => $shipping_content ), 'returns' => array( 'label' => 'Return Policy', 'content' => array( $Template->return_policy_html ) ), 'backorders' => array( 'label' => 'Back Orders', 'content' => array( ''.$Template->backorder_policy_text.'' ) ), 'specialorders' => array( 'label' => 'Special Orders', 'content' => array( ''.$Template->specialorder_policy_text.'' ) ), 'security' => array( 'label' => 'Security', 'content' => array( 'Our Checkout pages are secured by an SSL Certificate, which means your sensitive data is encrypted before being transmitted.' ) ), 'privacy' => array( 'label' => 'Privacy', 'content' => array( 'We do not sell, rent or share your personal information.' ) ) ); // verify open is ok $open_ok = FALSE; foreach($pt as $section=>$info) { if($open == $section) { $open_ok = TRUE; break; } } if(!$open_ok) { $open = $open_default; } $html = ' '; foreach($pt as $section=>$info) { $active = ($open == $section) ? TRUE : FALSE; $gt_cell = ($active) ? '>' : ' '; // label cell if($active) { $label_cell = $info['label']; } else { $label_cell = ''.$info['label'].''; } $html .= ' '; if($active) { foreach($info['content'] as $content) { $html .= ' '; } } } $html .= '
'.$gt_cell.' '.$label_cell.'
'.$content.'
'; return($html); } } // class ?>