<td valign="top">
		<input type="text" name="zone_limit" size="5" value="<?php 
echo $db->sp("zone_limit");
?>
" />
	  </td>
	</tr>
	<tr>
	  <td><div align="right"><strong><?php 
echo $VM_LANG->_('PHPSHOP_UPS_TAX_CLASS');
?>
</strong></div></td>
	  <td>
		<?php 
require_once CLASSPATH . 'ps_tax.php';
ps_tax::list_tax_value("zone_tax_rate", $db->sf("zone_tax_rate"));
echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_TAX_CLASS_TOOLTIP'));
?>
	  </td>
	</tr>	
	<tr>
		<td valign="top" colspan="2">&nbsp; </td>
	</tr>
</table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('zone_id', $zone_id);
$funcname = !empty($zone_id) ? "updatezone" : "addzone";
// Write your form with mixed tags and text fields
// and finally close the form:
$formObj->finishForm($funcname, $modulename . '.zone_list', $option);
Example #2
0
    /**
     * Show all configuration parameters for this Shipping method
     * @returns boolean False when the Shipping method has no configration
     */
    function show_configuration()
    {
        global $VM_LANG;
        /** Read current Configuration ***/
        require_once CLASSPATH . "shipping/" . __CLASS__ . ".cfg.php";
        ?>
      <table>
    <tr>
        <td><strong>Charge flat shipping rate to this amount:</strong></td>
		<td>
            <input type="text" name="FLEX_BASE_AMOUNT" class="inputbox" value="<?php 
        echo FLEX_BASE_AMOUNT;
        ?>
" />
		</td>
		<td>
        <?php 
        echo mm_ToolTip("A flat fee will be charged if the total value of the cart is less than this amount. If the value of the cart is greater than this amount, a percentage will be charged");
        ?>
 
        </td>
    </tr>
    <tr>
        <td><strong>Minimum Shipping Charge:</strong>
		</td>
		<td>
            <input type="text" name="FLEX_MIN_CHG" class="inputbox" value="<?php 
        echo FLEX_MIN_CHG;
        ?>
" />
		</td>
		<td>
        <?php 
        echo mm_ToolTip("This is the flat fee to be charged if the value in the cart is less than the amount entered above.");
        ?>
        </td>
    </tr>
    <tr>
        <td><strong>Percentage to charge if total sale is over base:</strong>
		</td>
		<td>
            <input type="text" name="FLEX_SHIP_PERC" class="inputbox" value="<?php 
        echo FLEX_SHIP_PERC;
        ?>
" />
		</td>
		<td>
            <?php 
        echo mm_ToolTip("This is the percentage (of the total purchase) to be charged if the amount in the cart is greater than the amount entered above.");
        ?>
        </td>
    </tr>
	<tr>
        <td><strong>Fixed Handling Charge:</strong>
		</td>
		<td>
            <input type="text" name="FLEX_HAND_FEE" class="inputbox" value="<?php 
        echo FLEX_HAND_FEE;
        ?>
" />
		</td>
		<td>
            <?php 
        echo mm_ToolTip("If you want to use a flat fee in addition to the conditional rate, add it here, If not, set to Zero.");
        ?>
        </td>
    </tr>
	  <tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_UPS_TAX_CLASS');
        ?>
</strong></td>
		<td>
		  <?php 
        require_once CLASSPATH . 'ps_tax.php';
        ps_tax::list_tax_value("FLEX_TAX_CLASS", FLEX_TAX_CLASS);
        ?>
		</td>
		<td><?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_TAX_CLASS_TOOLTIP'));
        ?>
<td>
	  </tr>	
	</table>
   <?php 
        // return false if there's no configuration
        return true;
    }
Example #3
0
	<tr>
		<td width="21%" ><div align="right"><strong><?php 
echo $VM_LANG->_('PHPSHOP_RATE_FORM_CURRENCY');
?>
:</strong></div></td>
		<td width="79%" >
		<?php 
$ps_html->list_currency_id("shipping_rate_currency_id", $db->sf("shipping_rate_currency_id"));
?>
		</td>
	</tr>
	<tr>
		<td width="21%" ><div align="right"><strong><?php 
echo $VM_LANG->_('PHPSHOP_RATE_FORM_VAT_ID');
?>
:</strong></div></td>
		<td width="79%" >
		<?php 
require_once CLASSPATH . 'ps_tax.php';
$ps_tax = new ps_tax();
$ps_tax->list_tax_value("shipping_rate_vat_id", $db->sf("shipping_rate_vat_id"));
?>
		</td>
	</tr>
</table>
<?php 
// Add necessary hidden fields
$formObj->hiddenField('shipping_rate_id', $shipping_rate_id);
$funcname = !empty($shipping_rate_id) ? "rateupdate" : "rateadd";
// finally close the form:
$formObj->finishForm($funcname, $modulename . '.rate_list', $option);
Example #4
0
    /**
     * Show all configuration parameters for this Shipping method
     * @returns boolean False when the Shipping method has no configration
     */
    function show_configuration()
    {
        global $VM_LANG;
        // Include the FedExTags class
        require_once CLASSPATH . 'shipping/fedex/fedex-tags.php';
        $fedextags = new FedExTags();
        // Read the fedex configuration file
        require_once CLASSPATH . "shipping/" . $this->classname . ".cfg.php";
        ?>
<div style="width:80%;padding:0 10px;">
	<table class="adminform">
		<th colspan="3"><?php 
        echo $VM_LANG->_('VM_FEDEX_ACCOUNT_SETTINGS');
        ?>
</th>
		<tr>
			<td class="labelcell"><?php 
        echo $VM_LANG->_('VM_FEDEX_ACCOUNT_NUMBER');
        ?>
</td>
			<td><input type="text" name="FEDEX_ACCOUNT_NUMBER" class="inputbox" value="<?php 
        echo FEDEX_ACCOUNT_NUMBER;
        ?>
" /></td>
			<td style="width:5%;text-align:right;">&nbsp;</td>
		</tr>
		<tr>
			<td class="labelcell"><?php 
        echo $VM_LANG->_('VM_FEDEX_METER_NUMBER');
        ?>
</td>
			<td><input type="text" name="FEDEX_METER_NUMBER" class="inputbox" value="<?php 
        echo FEDEX_METER_NUMBER;
        ?>
" /></td>
			<td style="width:5%;text-align:right;"><?php 
        echo mm_ToolTip($VM_LANG->_('VM_FEDEX_METER_NUMBER_TIP'));
        ?>
</td>
		</tr>
		<tr>
			<td class="labelcell"><?php 
        echo $VM_LANG->_('VM_FEDEX_URI');
        ?>
</td>
			<td><input type="text" name="FEDEX_URI" class="inputbox" value="<?php 
        echo FEDEX_URI;
        ?>
" size="60" /></td>
			<td style="width:5%;text-align:right;"><?php 
        echo mm_ToolTip($VM_LANG->_('VM_FEDEX_URI_TIP'));
        ?>
</td>
		</tr>
	</table>
	
	<p></p>
	
	<table class="adminform">
		<th colspan="3"><?php 
        echo $VM_LANG->_('VM_FEDEX_TAXES_FEES');
        ?>
</th>
		<tr>
			<td class="labelcell"><?php 
        echo $VM_LANG->_('VM_FEDEX_TAX_CLASS');
        ?>
</td>
			<td>
			 <?php 
        require_once CLASSPATH . 'ps_tax.php';
        ps_tax::list_tax_value("FEDEX_TAX_CLASS", FEDEX_TAX_CLASS);
        ?>
			</td>
			<td style="width:5%;text-align:right;"><?php 
        echo mm_ToolTip($VM_LANG->_('VM_FEDEX_TAX_CLASS_TOOLTIP'));
        ?>
</td>
		</tr>	
		<tr>
			<td class="labelcell"><?php 
        echo $VM_LANG->_('VM_FEDEX_HANDLING_FEE');
        ?>
</td>
			<td><input class="inputbox" type="text" name="FEDEX_HANDLINGFEE" value="<?php 
        echo FEDEX_HANDLINGFEE;
        ?>
" /></td>
			<td style="width:5%;text-align:right;"><?php 
        echo mm_ToolTip($VM_LANG->_('VM_FEDEX_HANDLING_FEE_TOOLTIP'));
        ?>
</td>
		</tr>
	</table>
	
	<p></p>
	
	<table class="adminform">
		<th colspan="3"><?php 
        echo $VM_LANG->_('VM_FEDEX_ADDITIONAL_SETTINGS');
        ?>
</th>
		<tr>
			<td class="labelcell"><?php 
        echo $VM_LANG->_('VM_FEDEX_SERVICES');
        ?>
</td>
			<td>
				<select class="inputbox" name="FEDEX_SERVICES[]" multiple="multiple" size="<?php 
        echo count($fedextags->FE_ST) + count($fedextags->FE_ST_INTL);
        ?>
">
<?php 
        $selected_services = explode(',', FEDEX_SERVICES);
        foreach ($fedextags->FE_ST as $tag => $name) {
            $selected = in_array('d' . $tag, $selected_services) ? 'selected="selected"' : '';
            echo "<option value=\"d{$tag}\" {$selected}>{$name}</option>\n";
        }
        foreach ($fedextags->FE_ST_INTL as $tag => $name) {
            $selected = in_array('i' . $tag, $selected_services) ? 'selected="selected"' : '';
            echo "\t\t\t\t\t<option value=\"i{$tag}\" {$selected}>{$name}</option>\n";
        }
        ?>
				</select>
			</td>
			<td style="width:5%;text-align:right;">&nbsp;</td>
		</tr>
		<tr>
			<td class="labelcell"><?php 
        echo $VM_LANG->_('VM_FEDEX_SIGNATURE_OPTION');
        ?>
</td>
			<td>
				<select class="inputbox" name="FEDEX_SIGNATURE_OPTION">
					<option value="1" <?php 
        if (FEDEX_SIGNATURE_OPTION == '1') {
            echo "selected=\"selected\"";
        }
        ?>
><?php 
        echo $VM_LANG->_('VM_FEDEX_SIGNATURE_OPTION_1');
        ?>
</option>
					<option value="2" <?php 
        if (FEDEX_SIGNATURE_OPTION == '2') {
            echo "selected=\"selected\"";
        }
        ?>
><?php 
        echo $VM_LANG->_('VM_FEDEX_SIGNATURE_OPTION_2');
        ?>
</option>
					<option value="3" <?php 
        if (FEDEX_SIGNATURE_OPTION == '3') {
            echo "selected=\"selected\"";
        }
        ?>
><?php 
        echo $VM_LANG->_('VM_FEDEX_SIGNATURE_OPTION_3');
        ?>
</option>
					<option value="4" <?php 
        if (FEDEX_SIGNATURE_OPTION == '4') {
            echo "selected=\"selected\"";
        }
        ?>
><?php 
        echo $VM_LANG->_('VM_FEDEX_SIGNATURE_OPTION_4');
        ?>
</option>
				</select>
			</td>
			<td style="width:5%;text-align:right;">&nbsp;</td>
		</tr>
		<tr>
			<td class="labelcell"><?php 
        echo $VM_LANG->_('VM_FEDEX_SORT_ORDER');
        ?>
</td>
			<td>
				<select class="inputbox" name="FEDEX_SORT_ORDER">
					<option value="ASC" <?php 
        if (FEDEX_SORT_ORDER == 'ASC') {
            echo "selected=\"selected\"";
        }
        ?>
><?php 
        echo $VM_LANG->_('VM_FEDEX_SORT_ASC');
        ?>
</option>
					<option value="DESC" <?php 
        if (FEDEX_SORT_ORDER == 'DESC') {
            echo "selected=\"selected\"";
        }
        ?>
><?php 
        echo $VM_LANG->_('VM_FEDEX_SORT_DESC');
        ?>
</option>
				</select>
			</td>
			<td style="width:5%;text-align:right;">&nbsp;</td>
		</tr>
	</table>
</div>
	   <?php 
        // return false if there's no configuration
        return true;
    }
Example #5
0
    /**
     * Show all configuration parameters for this Shipping method
     * @returns boolean False when the Shipping method has no configration
     */
    function show_configuration()
    {
        global $VM_LANG;
        /** Read current Configuration ***/
        require_once CLASSPATH . "shipping/" . __CLASS__ . ".cfg.php";
        ?>
      <table>
    <tr>
        <td><strong>Order total value 1:</strong></td>
		<td>
            <input type="text" name="BASE_SHIP1" class="inputbox" value="<?php 
        echo BASE_SHIP1;
        ?>
" />
		</td>
        <td><strong>Shipping charge 1:</strong></td>
		<td>
            <input type="text" name="BASE_CHARGE1" class="inputbox" value="<?php 
        echo BASE_CHARGE1;
        ?>
" />
		</td>
		<td>
        <?php 
        echo vmToolTip("Shipping charge 1 will apply to order values less than Order total value 1.");
        ?>
        </td>
    </tr>
    <tr>
        <td><strong>Order total value 2:</strong></td>
		<td>
            <input type="text" name="BASE_SHIP2" class="inputbox" value="<?php 
        echo BASE_SHIP2;
        ?>
" />
		</td>
        <td><strong>Shipping charge 2:</strong></td>
		<td>
            <input type="text" name="BASE_CHARGE2" class="inputbox" value="<?php 
        echo BASE_CHARGE2;
        ?>
" />
		</td>
		<td>
        <?php 
        echo vmToolTip("Shipping charge 2 will apply to order values less than Order total value 2.");
        ?>
        </td>
    </tr>
    <tr>
        <td><strong>Order total value 3:</strong></td>
		<td>
            <input type="text" name="BASE_SHIP3" class="inputbox" value="<?php 
        echo BASE_SHIP3;
        ?>
" />
		</td>
        <td><strong>Shipping charge 3:</strong></td>
		<td>
            <input type="text" name="BASE_CHARGE3" class="inputbox" value="<?php 
        echo BASE_CHARGE3;
        ?>
" />
		</td>
		<td>
        <?php 
        echo vmToolTip("Shipping charge 3 will apply to order values less than Order total value 3.");
        ?>
        </td>
    </tr>
    <tr>
        <td><strong>Order total value 4:</strong></td>
		<td>
            <input type="text" name="BASE_SHIP4" class="inputbox" value="<?php 
        echo BASE_SHIP4;
        ?>
" />
		</td>
        <td><strong>Shipping charge 4:</strong></td>
		<td>
            <input type="text" name="BASE_CHARGE4" class="inputbox" value="<?php 
        echo BASE_CHARGE4;
        ?>
" />
		</td>
		<td>
        <?php 
        echo vmToolTip("Shipping charge 4 will apply to order values less than Order total value 4.");
        ?>
        </td>
    </tr>
    <tr>
        <td><strong>Order total value 5:</strong></td>
		<td>
            <input type="text" name="BASE_SHIP5" class="inputbox" value="<?php 
        echo BASE_SHIP5;
        ?>
" />
		</td>
        <td><strong>Shipping charge 5:</strong></td>
		<td>
            <input type="text" name="BASE_CHARGE5" class="inputbox" value="<?php 
        echo BASE_CHARGE5;
        ?>
" />
		</td>
		<td>
        <?php 
        echo vmToolTip("Shipping charge 5 will apply to order values less than Order total value 5.");
        ?>
        </td>
    </tr>
    <tr>
        <td><strong>Order total value 6:</strong></td>
		<td>
            <input type="text" name="BASE_SHIP6" class="inputbox" value="<?php 
        echo BASE_SHIP6;
        ?>
" />
		</td>
        <td><strong>Shipping charge 6:</strong></td>
		<td>
            <input type="text" name="BASE_CHARGE6" class="inputbox" value="<?php 
        echo BASE_CHARGE6;
        ?>
" />
		</td>
		<td>
        <?php 
        echo vmToolTip("Shipping charge 6 will apply to order values less than Order total value 6.");
        ?>
        </td>
    </tr>
    <tr>
        <td><strong>Order total value 7:</strong></td>
		<td>
            <input type="text" name="BASE_SHIP7" class="inputbox" value="<?php 
        echo BASE_SHIP7;
        ?>
" />
		</td>
        <td><strong>Shipping charge 7:</strong></td>
		<td>
            <input type="text" name="BASE_CHARGE7" class="inputbox" value="<?php 
        echo BASE_CHARGE7;
        ?>
" />
		</td>
		<td>
        <?php 
        echo vmToolTip("Shipping charge 7 will apply to order values less than Order total value 7.");
        ?>
        </td>
    </tr>
    <tr>
        <td><strong>Order total value 8:</strong></td>
		<td>
            <input type="text" name="BASE_SHIP8" class="inputbox" value="<?php 
        echo BASE_SHIP8;
        ?>
" />
		</td>
        <td><strong>Shipping charge 8:</strong></td>
		<td>
            <input type="text" name="BASE_CHARGE8" class="inputbox" value="<?php 
        echo BASE_CHARGE8;
        ?>
" />
		</td>
		<td>
        <?php 
        echo vmToolTip("Shipping charge 8 will apply to order values less than Order total value 8.");
        ?>
        </td>
    </tr>
    <tr>
        <td><strong>Order total value 9:</strong></td>
		<td>
            <input type="text" name="BASE_SHIP9" class="inputbox" value="<?php 
        echo BASE_SHIP9;
        ?>
" />
		</td>
        <td><strong>Shipping charge 9:</strong></td>
		<td>
            <input type="text" name="BASE_CHARGE9" class="inputbox" value="<?php 
        echo BASE_CHARGE9;
        ?>
" />
		</td>
		<td>
        <?php 
        echo vmToolTip("Shipping charge 9 will apply to order values less than Order total value 9.");
        ?>
        </td>
    </tr>
    <tr>
        <td><strong>Order total value 10:</strong></td>
		<td>
            <input type="text" name="BASE_SHIP10" class="inputbox" value="<?php 
        echo BASE_SHIP10;
        ?>
" />
		</td>
        <td><strong>Shipping charge 10:</strong></td>
		<td>
            <input type="text" name="BASE_CHARGE10" class="inputbox" value="<?php 
        echo BASE_CHARGE10;
        ?>
" />
		</td>
		<td>
        <?php 
        echo vmToolTip("Shipping charge 10 will apply to order values less than Order total value 10.");
        ?>
        </td>
    </tr>

	  <tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_UPS_TAX_CLASS');
        ?>
</strong></td>
		<td>
		  <?php 
        require_once CLASSPATH . 'ps_tax.php';
        ps_tax::list_tax_value("SHIPVALUE_TAX_CLASS", SHIPVALUE_TAX_CLASS);
        ?>
		</td>
		<td colspan="3"><?php 
        echo vmToolTip("Use the following tax class on the shipping charge.  The shipping charge values above will then be inclusive of this tax rate.");
        ?>
<td>
	  </tr>	

	</table>
   <?php 
        // return false if there's no configuration
        return true;
    }
Example #6
0
    /**
     * show configuration form
     */
    function show_configuration()
    {
        global $VM_LANG;
        require CLASSPATH . "shipping/" . $this->classname . "/" . $this->classname . ".countries.cfg.php";
        $lg =& JFactory::getLanguage();
        if (file_exists(CLASSPATH . 'shipping/' . $this->classname . '/' . $lg->getTag() . '.' . $this->classname . '.php')) {
            require_once CLASSPATH . 'shipping/' . $this->classname . '/' . $lg->getTag() . '.' . $this->classname . '.php';
        } elseif (file_exists(CLASSPATH . 'shipping/' . $this->classname . '/' . $lg->getDefault() . '.' . $this->classname . '.php')) {
            require_once CLASSPATH . 'shipping/' . $this->classname . '/' . $lg->getDefault() . '.' . $this->classname . '.php';
        } elseif (file_exists(CLASSPATH . 'shipping/' . $this->classname . '/cs-CZ.' . $this->classname . '.php')) {
            require_once CLASSPATH . 'shipping/' . $this->classname . '/cs-CZ.' . $this->classname . '.php';
        }
        $accepted_currency = $this->getAcceptedCurrenciesArr();
        $this->checkConfiguration();
        $branchJS = $this->getJSApi();
        $this->updateBranchesInfo();
        echo '<script src="' . $branchJS . '"></script>';
        ?>
    <script language="javascript\" type="text/javascript">      
    (function($) {
      window.fixedPricesOn = function(){
        $("tr.relative_price_form").hide();
        $("tr.fix_price_form").show(); 
      }
      window.fixedPricesOff = function(){
        $("tr.relative_price_form").show();
        $("tr.fix_price_form").hide(); 
      }
    })(window.packetery.jQuery);
    </script>
  <table>
      <tr>
        <td>
          <strong><?php 
        echo $zas_lang['errors_warnings'] . ":";
        ?>
</strong>
        </td>
        <td>
          <?php 
        if ($this->errors || $this->warnings) {
            echo $this->return_errors() . $this->return_warnings();
        } else {
            echo $zas_lang['no_errors_warnings'];
        }
        ?>
        </td>      
      </tr>       
    <tr>
      <td>
        <strong><?php 
        echo $zas_lang['module_version'] . ":";
        ?>
</strong>
      </td>
      <td>
        <?php 
        echo self::VERSION . ' - ' . $this->checkVersion();
        ?>
      </td>      
    </tr>
    <tr>
      <td>
        <strong><?php 
        echo $zas_lang['api_key'] . ":";
        ?>
</strong>
      </td>
      <td>
        <input type="text" name="api_key" class="inputbox" size="18" value="<?php 
        echo $this->getConfig("api_key");
        ?>
" />
      </td>      
      <td>
        <?php 
        echo mm_ToolTip($zas_lang['api_key_tip']);
        ?>
        
      </td>
    </tr>    
    <tr>
      <td>  
        <strong><?php 
        echo $zas_lang['eshop_domain'] . ":";
        ?>
</strong>
      </td>
      <td>
        <input type="text" name="eshop_domain" class="inputbox" size="18" value="<?php 
        echo $this->getConfig("eshop_domain");
        ?>
" />
      </td>      
      <td>
        <?php 
        echo mm_ToolTip($zas_lang['eshop_domain_tip']);
        ?>
        
      </td>
    </tr>    
    <tr>

    <tr>      
      <td>         
        <strong><?php 
        echo $this->lang('shipping_price_in_diff_currencies');
        ?>
:</strong>
      </td>
      <td>      
      <?php 
        if ($this->getConfig("fix_prices") == 'fix_prices_true') {
            $fix_prices = true;
        } else {
            $fix_prices = false;
        }
        ?>
  
        <input type="radio" onchange="fixedPricesOn();" name="fix_prices" value="fix_prices_true" <?php 
        echo $this->getConfig("fix_prices") == 'fix_prices_true' ? 'checked' : '';
        ?>
 ><?php 
        echo $this->lang('fixed_by_currency');
        ?>
        <input type="radio" onchange="fixedPricesOff();" name="fix_prices" value="fix_prices_false" <?php 
        echo $this->getConfig("fix_prices") != 'fix_prices_true' ? 'checked' : '';
        ?>
 > <?php 
        echo $this->lang('converted_by_rate');
        ?>
      </td>      
    </tr>

    <tr>      
      <td colspan="3"><hr /></td>
    </tr> 
    <?php 
        foreach ($countries as $key => $country) {
            ?>
    <tr>      
      <td>
         
        <strong><?php 
            echo $zas_lang['offer_' . $country->code] . ":";
            ?>
</strong>
      </td>
      <td>        
        <input type="radio" name="<?php 
            echo $country->code;
            ?>
_branches" value="_branches_true" <?php 
            echo $this->getConfig("_branches", $country->code) == '_branches_true' ? 'checked' : '';
            ?>
 >Ano
        <input type="radio" name="<?php 
            echo $country->code;
            ?>
_branches" value="_branches_false" <?php 
            echo $this->getConfig("_branches", $country->code) != '_branches_true' ? 'checked' : '';
            ?>
 > Ne
      </td>      
    </tr> 
    <tr>      
      <td>         
        <strong><?php 
            echo $zas_lang['show_logo'] . ":";
            ?>
</strong>
      </td>
      <td>        
        <input type="radio" name="<?php 
            echo $country->code;
            ?>
_show_logo" value="_show_logo_true" <?php 
            echo $this->getConfig("_show_logo", $country->code) == '_show_logo_true' ? 'checked' : '';
            ?>
 >Ano
        <input type="radio" name="<?php 
            echo $country->code;
            ?>
_show_logo" value="_show_logo_false" <?php 
            echo $this->getConfig("_show_logo", $country->code) != '_show_logo_true' ? 'checked' : '';
            ?>
 > Ne
      </td>      
    </tr>

    <?php 
            echo $this->fixPricesForm($country, $fix_prices);
            ?>

    <tr class="relative_price_form" style="<?php 
            echo $fix_prices ? "display:none;" : "";
            ?>
" >
      <td>  
        <strong><?php 
            echo $zas_lang['packet_price_by_exchg_rate'] . ":";
            ?>
</strong>
      </td>
      <td>   
      <?php 
            $branch_price = $GLOBALS['CURRENCY']->convert($this->getConfig("_branch_price", $country->code), $this->getConfig("currency"), $GLOBALS['product_currency']);
            $branch_price = number_format($branch_price, 2);
            ?>
     
        <input type="text" name="<?php 
            echo $country->code;
            ?>
_branch_price" class="inputbox" size="5" value="<?php 
            echo $branch_price;
            ?>
" /> <?php 
            echo $GLOBALS['product_currency'];
            ?>
      </td>  
      <?php 
            if ($branch_price == "") {
                echo '<td style="color:red;">' . $this->lang('price_not_set') . '!</td>';
            }
            ?>
    
    </tr>
    <tr>

    <tr>
      <td>  
        <strong><?php 
            echo $zas_lang['label_' . $country->code] . ":";
            ?>
</strong>
      </td>
      <td>   
   
        <input type="text" name="<?php 
            echo $country->code;
            ?>
_shipper_name" class="inputbox" size="15" value="<?php 
            echo $this->getConfig('_shipper_name', $country->code);
            ?>
" />
      </td>      
    </tr>    
    <tr>
      <td>
        <strong><?php 
            echo $zas_lang['info_' . $country->code] . ":";
            ?>
</strong>
      </td>
      <td>        
        <textarea type="text" name="<?php 
            echo $country->code;
            ?>
_info" class="inputbox" rows="3" ><?php 
            echo $this->getConfig("_info", $country->code);
            ?>
</textarea>
      </td>      
    </tr>
    <tr>
      <td>
        <strong><?php 
            echo $zas_lang['priority'] . ":";
            ?>
</strong>
      </td>
      <td>        
        <input type="text" name="<?php 
            echo $country->code;
            ?>
_priority" class="inputbox" size="5" value="<?php 
            echo $this->getConfig("_priority", $country->code);
            ?>
" />
      </td>
      <td>
        <?php 
            echo mm_ToolTip($zas_lang['priority_tip']);
            ?>
 
      </td>      
    </tr>         
    <tr>
      <td colspan="3"><hr /></td>
    </tr>  
    <?php 
        }
        ?>
 
    <td><strong><?php 
        echo $zas_lang['select_tax_rate'];
        ?>
</strong></td>
    <td>
      <?php 
        require_once CLASSPATH . 'ps_tax.php';
        ps_tax::list_tax_value("_tax_rate", $this->getConfig("_tax_rate"));
        ?>
    </td>
    <td><?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_TAX_CLASS_TOOLTIP'));
        ?>
<td>
    </tr>   
  <tr>
      <td>
        <strong><?php 
        echo $zas_lang['select_cash_on_del_payments'] . ":";
        ?>
</strong>
      </td>      
      <td>
        <?php 
        echo mm_ToolTip($zas_lang['select_cash_on_del_payments_tip']);
        ?>
        
      </td>
    </tr> 
    <?php 
        $vm_db = new ps_DB();
        $q = "SELECT payment_method_id,payment_method_name ";
        $q .= "FROM #__{vm}_payment_method WHERE payment_enabled = 'Y'";
        $vm_db->query($q);
        while ($vm_db->next_record()) {
            echo '<tr>
      <td>
        <strong>' . $vm_db->f("payment_method_name") . '</strong>
      </td>
      <td>        
        <input type="checkbox" name="cod' . $vm_db->f("payment_method_id") . '"';
            if ($this->getConfig('cod' . $vm_db->f("payment_method_id")) == 'true') {
                echo " checked ";
            }
            echo '>
      </td>      
    </tr> ';
        }
        ?>
  <tr>
      <td colspan="3"><hr /></td>
  </tr>
    <tr>
      <td>
        <strong><?php 
        echo $zas_lang['s_p_settings'] . ":";
        ?>
 </strong>
      </td>      
      <td>
        <?php 
        if (method_exists('vm_ps_payment_method', 'paymentMethodIsAllowed')) {
            echo $zas_lang['s_p_installed'];
        } else {
            echo $zas_lang['s_p_not_installed'];
        }
        ?>
        <br>
        <a href="<?php 
        echo JURI::base(true);
        ?>
/index.php?page=store.ship_payment&amp;option=com_virtuemart"><strong><?php 
        echo $this->lang('set_s_p');
        ?>
 &raquo;</strong></a>
      </td>
    </tr>     
  </table>
  <input type="hidden" name="currency" value="<?php 
        echo $GLOBALS['product_currency'];
        ?>
" />
    <?php 
        return true;
    }
Example #7
0
    /**
     * Show all configuration parameters for this Shipping method
     * @returns boolean False when the Shipping method has no configration
     */
    function show_configuration()
    {
        global $VM_LANG;
        /** Read current Configuration ***/
        require_once CLASSPATH . "shipping/" . $this->classname . ".cfg.php";
        ?>
      <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
		  <td width="20%"><strong>Intershipper Username</strong>:</td>
		  <td colspan="3" width="80%">
			  <input type="text" name="IS_USERNAME" class="inputbox" value="<?php 
        echo IS_USERNAME;
        ?>
" />
			<?php 
        echo mm_ToolTip('The InterShipper Username');
        ?>
		  </td>
		</tr>
		<tr>
			<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_INTERSHIPPER_PASSWORD');
        ?>
</strong>:
			</td>
			<td colspan="3">
				<input type="text" name="IS_PASSWORD" class="inputbox" value="<?php 
        echo IS_PASSWORD;
        ?>
" />
			  <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_INTERSHIPPER_PASSWORD_EXPLAIN'));
        ?>
			</td>
		</tr>
		<tr>
			<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_INTERSHIPPER_EMAIL');
        ?>
</strong>:
			</td>
			<td colspan="3">
				<input type="text" name="IS_EMAIL" class="inputbox" value="<?php 
        echo IS_EMAIL;
        ?>
" />
				<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_INTERSHIPPER_EMAIL_EXPLAIN'));
        ?>
			</td>
		</tr>
	  <tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_UPS_TAX_CLASS');
        ?>
</strong></td>
		<td>
		  <?php 
        require_once CLASSPATH . 'ps_tax.php';
        ps_tax::list_tax_value("IS_TAX_CLASS", IS_TAX_CLASS);
        ?>
		</td>
		<td><?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_TAX_CLASS_TOOLTIP'));
        ?>
<td>
	  </tr>	
		<tr>
		  <td colspan="4"><hr /></td>
		</tr>
		<tr>
		  <td>&nbsp;</td>
		  <td style="text-indent:20px;font-weight:bold;">Name
		  <?php 
        echo mm_ToolTip("Specify the carriers which shall return their shipping rates.");
        ?>
</td>
		  <td style="text-indent:20px;font-weight:bold;">Invoice
		  <?php 
        echo mm_ToolTip("Specifies whether or not you are invoiced directly from the carrier");
        ?>
</td>
		  <td style="text-indent:20px;font-weight:bold;">Account No. (optional)
		  <?php 
        echo mm_ToolTip("Your carrier account number -> to take advantage of any special discounts or offers");
        ?>
</td>
		</tr>
		<tr>
		  <td style="float:right;">Carrier 1:</td>
		  <td><select class="inputbox" name="carrier1_name">
			<option <?php 
        if (CARRIER1_NAME == "UPS") {
            echo "selected=\"selected\"";
        }
        ?>
 value="UPS">UPS</option>
			<option <?php 
        if (CARRIER1_NAME == "FDX") {
            echo "selected=\"selected\"";
        }
        ?>
 value="FDX">FedEx</option>
			<option <?php 
        if (CARRIER1_NAME == "DHL") {
            echo "selected=\"selected\"";
        }
        ?>
 value="DHL">DHL Worldwide Express</option>
			<option <?php 
        if (CARRIER1_NAME == "USP") {
            echo "selected=\"selected\"";
        }
        ?>
 value="USP">US Postal</option>
			<option <?php 
        if (CARRIER1_NAME == "ARB") {
            echo "selected=\"selected\"";
        }
        ?>
 value="ARB">AirBorne</option>
			</select>
		  </td>
		  <td>
		  <input class="inputbox" <?php 
        if (CARRIER1_INVOICE == "0") {
            echo "checked=\"checked\"";
        }
        ?>
 type="radio" name="carrier1_invoice" value="0" />No
		  <input class="inputbox" <?php 
        if (CARRIER1_INVOICE == "1") {
            echo "checked=\"checked\"";
        }
        ?>
 type="radio" name="carrier1_invoice" value="1" />Yes
		  </td>
		  <td>
			<input class="inputbox" type="text" name="carrier1_account" value="<?php 
        echo CARRIER1_ACCOUNT;
        ?>
" />
		  </td>
		</tr>
		<tr>
		  <td style="float:right;">Carrier 2:</td>
		  <td>
			<select class="inputbox" name="carrier2_name">
			<option value="">none</option>
			<option <?php 
        if (CARRIER2_NAME == "UPS") {
            echo "selected=\"selected\"";
        }
        ?>
 value="UPS">UPS</option>
			<option <?php 
        if (CARRIER2_NAME == "FDX") {
            echo "selected=\"selected\"";
        }
        ?>
 value="FDX">FedEx</option>
			<option <?php 
        if (CARRIER2_NAME == "DHL") {
            echo "selected=\"selected\"";
        }
        ?>
 value="DHL">DHL Worldwide Express</option>
			<option <?php 
        if (CARRIER2_NAME == "USP") {
            echo "selected=\"selected\"";
        }
        ?>
 value="USP">US Postal</option>
			<option <?php 
        if (CARRIER2_NAME == "ARB") {
            echo "selected=\"selected\"";
        }
        ?>
 value="ARB">AirBorne</option>
			</select>
		  </td>
		  <td>
		  <input class="inputbox" <?php 
        if (CARRIER2_INVOICE == "0") {
            echo "checked=\"checked\"";
        }
        ?>
 type="radio" name="carrier2_invoice" value="0" />No
		  <input class="inputbox" <?php 
        if (CARRIER2_INVOICE == "1") {
            echo "checked=\"checked\"";
        }
        ?>
 type="radio" name="carrier2_invoice" value="1" />Yes
		  </td>
		  <td>
			<input class="inputbox" type="text" name="carrier2_account" value="<?php 
        echo CARRIER2_ACCOUNT;
        ?>
" />
		  </td>
		</tr>
		<tr>
		  <td style="float:right;">Carrier 3:</td>
		  <td>
			<select class="inputbox" name="carrier3_name">
			<option value="">none</option>
			<option <?php 
        if (CARRIER3_NAME == "UPS") {
            echo "selected=\"selected\"";
        }
        ?>
 value="UPS">UPS</option>
			<option <?php 
        if (CARRIER3_NAME == "FDX") {
            echo "selected=\"selected\"";
        }
        ?>
 value="FDX">FedEx</option>
			<option <?php 
        if (CARRIER3_NAME == "DHL") {
            echo "selected=\"selected\"";
        }
        ?>
 value="DHL">DHL Worldwide Express</option>
			<option <?php 
        if (CARRIER3_NAME == "USP") {
            echo "selected=\"selected\"";
        }
        ?>
 value="USP">US Postal</option>
			<option <?php 
        if (CARRIER3_NAME == "ARB") {
            echo "selected=\"selected\"";
        }
        ?>
 value="ARB">AirBorne</option>
			</select>
		  </td>
		  <td>
		  <input class="inputbox" <?php 
        if (CARRIER3_INVOICE == "0") {
            echo "checked=\"checked\"";
        }
        ?>
 type="radio" name="carrier3_invoice" value="0" />No
		  <input class="inputbox" <?php 
        if (CARRIER3_INVOICE == "1") {
            echo "checked=\"checked\"";
        }
        ?>
 type="radio" name="carrier3_invoice" value="1" />Yes
		  </td>
		  <td>
			<input class="inputbox" type="text" name="carrier3_account" value="<?php 
        echo CARRIER3_ACCOUNT;
        ?>
" />
		  </td>
		</tr>
		<tr>
		  <td style="float:right;">Carrier 4:</td>
		  <td>
			<select class="inputbox" name="carrier4_name">
			<option value="">none</option>
			<option <?php 
        if (CARRIER4_NAME == "UPS") {
            echo "selected=\"selected\"";
        }
        ?>
 value="UPS">UPS</option>
			<option <?php 
        if (CARRIER4_NAME == "FDX") {
            echo "selected=\"selected\"";
        }
        ?>
 value="FDX">FedEx</option>
			<option <?php 
        if (CARRIER4_NAME == "DHL") {
            echo "selected=\"selected\"";
        }
        ?>
 value="DHL">DHL Worldwide Express</option>
			<option <?php 
        if (CARRIER4_NAME == "USP") {
            echo "selected=\"selected\"";
        }
        ?>
 value="USP">US Postal</option>
			<option <?php 
        if (CARRIER4_NAME == "ARB") {
            echo "selected=\"selected\"";
        }
        ?>
 value="ARB">AirBorne</option>
			</select>
		  </td>
		  <td>
		  <input class="inputbox" <?php 
        if (CARRIER4_INVOICE == "0") {
            echo "checked=\"checked\"";
        }
        ?>
 type="radio" name="carrier4_invoice" value="0" />No
		  <input class="inputbox" <?php 
        if (CARRIER4_INVOICE == "1") {
            echo "checked=\"checked\"";
        }
        ?>
 type="radio" name="carrier4_invoice" value="1" />Yes
		  </td>
		  <td>
			<input class="inputbox" type="text" name="carrier4_account" value="<?php 
        echo CARRIER4_ACCOUNT;
        ?>
" />
		  </td>
		</tr>
		<tr>
		  <td style="float:right;">Carrier 5:</td>
		  <td>
			<select class="inputbox" name="carrier5_name">
			<option value="">none</option>
			<option <?php 
        if (CARRIER5_NAME == "UPS") {
            echo "selected=\"selected\"";
        }
        ?>
 value="UPS">UPS</option>
			<option <?php 
        if (CARRIER5_NAME == "FDX") {
            echo "selected=\"selected\"";
        }
        ?>
 value="FDX">FedEx</option>
			<option <?php 
        if (CARRIER5_NAME == "DHL") {
            echo "selected=\"selected\"";
        }
        ?>
 value="DHL">DHL Worldwide Express</option>
			<option <?php 
        if (CARRIER5_NAME == "USP") {
            echo "selected=\"selected\"";
        }
        ?>
 value="USP">US Postal</option>
			<option <?php 
        if (CARRIER5_NAME == "ARB") {
            echo "selected=\"selected\"";
        }
        ?>
 value="ARB">AirBorne</option>
			</select>
		  </td>
		  <td>
		  <input class="inputbox" <?php 
        if (CARRIER5_INVOICE == "0") {
            echo "checked=\"checked\"";
        }
        ?>
 type="radio" name="carrier5_invoice" value="0" />No
		  <input class="inputbox" <?php 
        if (CARRIER5_INVOICE == "1") {
            echo "checked=\"checked\"";
        }
        ?>
 type="radio" name="carrier5_invoice" value="1" />Yes
		  </td>
		  <td>
			<input class="inputbox" type="text" name="carrier5_account" value="<?php 
        echo CARRIER5_ACCOUNT;
        ?>
" />
		  </td>
		</tr>
		<tr>
		  <td colspan="4"><hr /></td>
		</tr>
		<tr>
		<td style="float:right;font-weight:bold;">Classes of Service:</td>
		<td colspan="3">
		  <input type="checkbox" <?php 
        if (SERVICE_CLASS1 == "1DY") {
            echo "checked=\"checked\"";
        }
        ?>
 name="service_class1" value="1DY" />1st Day<br />
		  <input type="checkbox" <?php 
        if (SERVICE_CLASS2 == "2DY") {
            echo "checked=\"checked\"";
        }
        ?>
 name="service_class2" value="2DY" />2nd Day<br />
		  <input type="checkbox" <?php 
        if (SERVICE_CLASS3 == "3DY") {
            echo "checked=\"checked\"";
        }
        ?>
 name="service_class3" value="3DY" />3rd Day<br />
		  <input type="checkbox" <?php 
        if (SERVICE_CLASS4 == "GND") {
            echo "checked=\"checked\"";
        }
        ?>
 name="service_class4" value="GND" />Ground <br />
		</td>
      </table>
   <?php 
        // return false if there's no configuration
        return true;
    }
Example #8
0
    function show_configuration()
    {
        global $VM_LANG;
        /** Read current Configuration ***/
        require_once CLASSPATH . "shipping/" . __CLASS__ . ".cfg.php";
        ?>
	<table>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_ID');
        ?>
		</strong></td>
		<td>
            <input type="text" name="DHL_ID" class="inputbox"
				value="<?php 
        echo DHL_ID;
        ?>
" />
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_ID_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_PASSWORD');
        ?>
		</strong></td>
		<td>
			<input type="text" name="DHL_PASSWORD" class="inputbox"
			    value="<?php 
        echo DHL_PASSWORD;
        ?>
" />
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_PASSWORD_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_DOMESTIC_SHIPPING_KEY');
        ?>
		</strong></td>
		<td>
			<input type="text" name="DHL_DOMESTIC_SHIPPING_KEY" class="inputbox"
			    value="<?php 
        echo DHL_DOMESTIC_SHIPPING_KEY;
        ?>
" />
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_DOMESTIC_SHIPPING_KEY_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_INTERNATIONAL_SHIPPING_KEY');
        ?>
		</strong></td>
		<td>
			<input type="text" name="DHL_INTERNATIONAL_SHIPPING_KEY" class="inputbox"
			    value="<?php 
        echo DHL_INTERNATIONAL_SHIPPING_KEY;
        ?>
" />
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_INTERNATIONAL_SHIPPING_KEY_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_ACCOUNT_NUMBER');
        ?>
		</strong></td>
		<td>
            <input type="text" name="DHL_ACCOUNT_NUMBER" class="inputbox"
			    value="<?php 
        echo DHL_ACCOUNT_NUMBER;
        ?>
" />
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_ACCOUNT_NUMBER_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_TOO_LATE');
        ?>
		</strong></td>
		<td>
            <input type="text" name="DHL_TOO_LATE" class="inputbox"
			    value="<?php 
        echo DHL_TOO_LATE;
        ?>
" />
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_TOO_LATE_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_TEST_MODE');
        ?>
		</strong></td>
		<td>
			<select name="DHL_TEST_MODE" class="inputbox">
				<option
					<?php 
        if (DHL_TEST_MODE == 'TRUE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="TRUE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_YES');
        ?>
				</option>
				<option
					<?php 
        if (DHL_TEST_MODE == 'FALSE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="FALSE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_NO');
        ?>
				</option>
			</select>
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_TEST_MODE_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_EXPRESS_ENABLED');
        ?>
		</strong></td>
		<td>
			<select name="DHL_EXPRESS_ENABLED" class="inputbox">
				<option
					<?php 
        if (DHL_EXPRESS_ENABLED == 'TRUE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="TRUE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_YES');
        ?>
				</option>
				<option
					<?php 
        if (DHL_EXPRESS_ENABLED == 'FALSE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="FALSE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_NO');
        ?>
				</option>
			</select>
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_EXPRESS_ENABLED_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_NEXT_AFTERNOON_ENABLED');
        ?>
		</strong></td>
		<td>
			<select name="DHL_NEXT_AFTERNOON_ENABLED" class="inputbox">
				<option
					<?php 
        if (DHL_NEXT_AFTERNOON_ENABLED == 'TRUE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="TRUE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_YES');
        ?>
				</option>
				<option
					<?php 
        if (DHL_NEXT_AFTERNOON_ENABLED == 'FALSE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="FALSE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_NO');
        ?>
				</option>
			</select>
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_NEXT_AFTERNOON_ENABLED_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_SECOND_DAY_ENABLED');
        ?>
		</strong></td>
		<td>
			<select name="DHL_SECOND_DAY_ENABLED" class="inputbox">
				<option
					<?php 
        if (DHL_SECOND_DAY_ENABLED == 'TRUE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="TRUE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_YES');
        ?>
				</option>
				<option
					<?php 
        if (DHL_SECOND_DAY_ENABLED == 'FALSE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="FALSE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_NO');
        ?>
				</option>
			</select>
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_SECOND_DAY_ENABLED_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_GROUND_ENABLED');
        ?>
		</strong></td>
		<td>
			<select name="DHL_GROUND_ENABLED" class="inputbox">
				<option
					<?php 
        if (DHL_GROUND_ENABLED == 'TRUE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="TRUE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_YES');
        ?>
				</option>
				<option
					<?php 
        if (DHL_GROUND_ENABLED == 'FALSE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="FALSE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_NO');
        ?>
				</option>
			</select>
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_GROUND_ENABLED_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_1030_ENABLED');
        ?>
		</strong></td>
		<td>
			<select name="DHL_1030_ENABLED" class="inputbox">
				<option
					<?php 
        if (DHL_1030_ENABLED == 'TRUE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="TRUE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_YES');
        ?>
				</option>
				<option
					<?php 
        if (DHL_1030_ENABLED == 'FALSE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="FALSE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_NO');
        ?>
				</option>
			</select>
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_1030_ENABLED_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_SATURDAY_ENABLED');
        ?>
		</strong></td>
		<td>
			<select name="DHL_SATURDAY_ENABLED" class="inputbox">
				<option
					<?php 
        if (DHL_SATURDAY_ENABLED == 'TRUE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="TRUE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_YES');
        ?>
				</option>
				<option
					<?php 
        if (DHL_SATURDAY_ENABLED == 'FALSE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="FALSE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_NO');
        ?>
				</option>
			</select>
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_SATURDAY_ENABLED_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_INTERNATIONAL_ENABLED');
        ?>
		</strong></td>
		<td>
			<select name="DHL_INTERNATIONAL_ENABLED" class="inputbox">
				<option
					<?php 
        if (DHL_INTERNATIONAL_ENABLED == 'TRUE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="TRUE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_YES');
        ?>
				</option>
				<option
					<?php 
        if (DHL_INTERNATIONAL_ENABLED == 'FALSE') {
            echo "selected=\"selected\"";
        }
        ?>
					value="FALSE">
					<?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_NO');
        ?>
				</option>
			</select>
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_INTERNATIONAL_ENABLED_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_DOMESTIC_PACKAGE');
        ?>
		</strong></td>
		<td>
			<select name="DHL_DOMESTIC_PACKAGE" class="inputbox">
				<option
					<?php 
        if (DHL_DOMESTIC_PACKAGE == 'L') {
            echo "selected=\"selected\"";
        }
        ?>
					value="L">
					<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_PACKAGE_LETTER');
        ?>
				</option>
				<option
					<?php 
        if (DHL_DOMESTIC_PACKAGE == 'P') {
            echo "selected=\"selected\"";
        }
        ?>
					value="P">
					<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_PACKAGE_PACKAGE');
        ?>
				</option>
			</select>
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_DOMESTIC_PACKAGE_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_INTERNATIONAL_PACKAGE');
        ?>
		</strong></td>
		<td>
			<select name="DHL_INTERNATIONAL_PACKAGE" class="inputbox">
				<option
					<?php 
        if (DHL_INTERNATIONAL_PACKAGE == 'L') {
            echo "selected=\"selected\"";
        }
        ?>
					value="L">
					<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_PACKAGE_LETTER');
        ?>
				</option>
				<option
					<?php 
        if (DHL_INTERNATIONAL_PACKAGE == 'P') {
            echo "selected=\"selected\"";
        }
        ?>
					value="P">
					<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_PACKAGE_DHL_PACKAGE');
        ?>
				</option>
				<option
					<?php 
        if (DHL_INTERNATIONAL_PACKAGE == 'O') {
            echo "selected=\"selected\"";
        }
        ?>
					value="O">
					<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_PACKAGE_OTHER');
        ?>
				</option>
			</select>
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_INTERNATIONAL_PACKAGE_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
        <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_CONTENT_DESC');
        ?>
</strong>
		</td>
		<td>
            <input type="text" name="DHL_CONTENT_DESC" class="inputbox" value="<?php 
        echo DHL_CONTENT_DESC;
        ?>
" />
		</td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_CONTENT_DESC_TOOLTIP'));
        ?>
        </td>
    </tr>
	<tr>
        <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_PACKAGE_WEIGHT');
        ?>
</strong>
		</td>
		<td>
            <input type="text" name="DHL_PACKAGE_WEIGHT" class="inputbox" value="<?php 
        echo DHL_PACKAGE_WEIGHT;
        ?>
" />
		</td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_PACKAGE_WEIGHT_TOOLTIP'));
        ?>
        </td>
    </tr>
	<tr>
        <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_DUTY_SHOPPER_GROUP');
        ?>
</strong>
		</td>
		<td>
            <input type="text" name="DHL_DUTY_SHOPPER_GROUP" class="inputbox" value="<?php 
        echo DHL_DUTY_SHOPPER_GROUP;
        ?>
" />
		</td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_DUTY_SHOPPER_GROUP_TOOLTIP'));
        ?>
        </td>
    </tr>
	<tr>
        <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_ADDITIONAL_PROTECTION');
        ?>
</strong>
		</td>
		<td>
			<select name="DHL_ADDITIONAL_PROTECTION" class="inputbox">
				<option
					<?php 
        if (DHL_ADDITIONAL_PROTECTION == 'AP') {
            echo "selected=\"selected\"";
        }
        ?>
					value="AP">
					<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_ASSET_PROTECTION');
        ?>
				</option>
				<option
					<?php 
        if (DHL_ADDITIONAL_PROTECTION == 'NR') {
            echo "selected=\"selected\"";
        }
        ?>
					value="NR">
					<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_NOT_REQUIRED');
        ?>
				</option>
			</select>
		</td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_ADDITIONAL_PROTECTION_TOOLTIP'));
        ?>
        </td>
    </tr>
	<tr>
        <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_INSURANCE_SHOPPER_GROUP');
        ?>
</strong>
		</td>
		<td>
            <input type="text" name="DHL_INSURANCE_SHOPPER_GROUP" class="inputbox" value="<?php 
        echo DHL_INSURANCE_SHOPPER_GROUP;
        ?>
" />
		</td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_INSURANCE_SHOPPER_GROUP_TOOLTIP'));
        ?>
        </td>
    </tr>
	<tr>
        <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_DOMESTIC_INSURANCE');
        ?>
</strong>
		</td>
		<td>
            <input type="text" name="DHL_INSURANCE_RATE_DOMESTIC_FLAT" class="inputbox" value="<?php 
        echo DHL_INSURANCE_RATE_DOMESTIC_FLAT;
        ?>
" />
		</td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_DOMESTIC_INSURANCE_TOOLTIP'));
        ?>
        </td>
    </tr>
	<tr>
        <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_INTERNATIONAL_INSURANCE');
        ?>
</strong>
		</td>
		<td>
            <input type="text" name="DHL_INSURANCE_RATE_INTERNATIONAL" class="inputbox" value="<?php 
        echo DHL_INSURANCE_RATE_INTERNATIONAL;
        ?>
" />
		</td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_INTERNATIONAL_INSURANCE_TOOLTIP'));
        ?>
        </td>
    </tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_UPS_TAX_CLASS');
        ?>
		</strong></td>
		<td>
			<?php 
        require_once CLASSPATH . 'ps_tax.php';
        ps_tax::list_tax_value("DHL_TAX_CLASS", DHL_TAX_CLASS);
        ?>
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_TAX_CLASS_TOOLTIP'));
        ?>
		</td>
	</tr>
	<tr>
		<td colspan="3"><hr /></td>
	</tr>
	<tr>
		<td><strong>
			<?php 
        echo $VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_HANDLING_FEE');
        ?>
		</strong></td>
		<td>
			<input class="inputbox" type="text" name="DHL_HANDLING_FEE"
			    value="<?php 
        echo DHL_HANDLING_FEE;
        ?>
" />
		</td>
		<td>
			<?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_SHIPPING_METHOD_DHL_HANDLING_FEE_TOOLTIP'));
        ?>
		</td>
	</tr>
	</table>
	<?php 
        // return false if there's no configuration
        return true;
    }
Example #9
0
?>
:</div>
      				</td>
      				<td width="71%" ><input type="text" class="inputbox" onkeyup="updateNet();" name="product_price_incl_tax" size="10" /></td>
    			</tr>
    			<tr class="row0">
      				<td width="29%" ><div style="text-align:right;font-weight:bold;">
        				<?php 
echo $VM_LANG->_('PHPSHOP_RATE_FORM_VAT_ID');
?>
:</div>
        			</td>
      				<td width="71%" >
	        			<?php 
require_once CLASSPATH . 'ps_tax.php';
$tax_rates = ps_tax::list_tax_value("product_tax_id", $db->sf("product_tax_id"), "updateGross();");
?>
      				</td>
    			</tr>
    			<tr class="row1"> 
      				<td width="21%" ><div style="text-align:right;font-weight:bold;">
        				<?php 
echo $VM_LANG->_('PHPSHOP_PRODUCT_FORM_DISCOUNT_TYPE');
?>
:</div>
      				</td>
      				<td width="79%" ><?php 
echo ps_product_discount::discount_list($db->sf("product_discount_id"));
?>
      				</td>
    			</tr>
Example #10
0
    /**
     * Show all configuration parameters for this Shipping method
     * @returns boolean False when the Shipping method has no configration
     */
    function show_configuration()
    {
        global $VM_LANG;
        /** Read current Configuration ***/
        require_once CLASSPATH . "shipping/" . __CLASS__ . ".cfg.php";
        ?>
      <table class="adminform">
    <tr class="row0">
        <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_UPS_ACCESS_CODE');
        ?>
</strong></td>
		<td>
            <input type="text" name="UPS_ACCESS_CODE" class="inputbox" value="<?php 
        echo UPS_ACCESS_CODE;
        ?>
" />
		</td>
		<td>
          <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_UPS_ACCESS_CODE_EXPLAIN'));
        ?>
        </td>
    </tr>
    <tr class="row1">
        <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_UPS_USER_ID');
        ?>
</strong>
		</td>
		<td>
            <input type="text" name="UPS_USER_ID" class="inputbox" value="<?php 
        echo UPS_USER_ID;
        ?>
" />
		</td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_UPS_USER_ID_EXPLAIN'));
        ?>
        </td>
    </tr>
    <tr class="row0">
        <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_UPS_PASSWORD');
        ?>
</strong>
		</td>
		<td>
            <input type="text" name="UPS_PASSWORD" class="inputbox" value="<?php 
        echo UPS_PASSWORD;
        ?>
" />
		</td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_UPS_PASSWORD_EXPLAIN'));
        ?>
        </td>
    </tr>
	<tr class="row1">
	  <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_UPS_PICKUP_METHOD');
        ?>
</strong></td>
	  <td>
		<select class="inputbox" name="pickup_type">
		  <option <?php 
        if (UPS_PICKUP_TYPE == "01") {
            echo "selected=\"selected\"";
        }
        ?>
 value="01">Daily Pickup</option>
		  <option <?php 
        if (UPS_PICKUP_TYPE == "03") {
            echo "selected=\"selected\"";
        }
        ?>
 value="03">Customer Counter</option>
		  <option <?php 
        if (UPS_PICKUP_TYPE == "06") {
            echo "selected=\"selected\"";
        }
        ?>
 value="06">One Time Pickup</option>
		  <option <?php 
        if (UPS_PICKUP_TYPE == "07") {
            echo "selected=\"selected\"";
        }
        ?>
 value="07">On Call Air Pickup</option>
		  <option <?php 
        if (UPS_PICKUP_TYPE == "19") {
            echo "selected=\"selected\"";
        }
        ?>
 value="19">Letter Center</option>
		  <option <?php 
        if (UPS_PICKUP_TYPE == "20") {
            echo "selected=\"selected\"";
        }
        ?>
 value="20">Air Service Center</option>
		</select>
	  </td>
	  <td><?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_PICKUP_METHOD_TOOLTIP'));
        ?>
</td>
	</tr>
	<tr>
	  <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_UPS_PACKAGE_TYPE');
        ?>
</strong></td>
	  <td>
		<select class="inputbox" name="package_type">
		  <option <?php 
        if (UPS_PACKAGE_TYPE == "00") {
            echo "selected=\"selected\"";
        }
        ?>
 value="00">Unknown
		  <option <?php 
        if (UPS_PACKAGE_TYPE == "01") {
            echo "selected=\"selected\"";
        }
        ?>
 value="01">UPS letter</option>
		  <option <?php 
        if (UPS_PACKAGE_TYPE == "02") {
            echo "selected=\"selected\"";
        }
        ?>
 value="02">Package</option>
		  <option <?php 
        if (UPS_PACKAGE_TYPE == "03") {
            echo "selected=\"selected\"";
        }
        ?>
 value="03">UPS Tube</option>
		  <option <?php 
        if (UPS_PACKAGE_TYPE == "04") {
            echo "selected=\"selected\"";
        }
        ?>
 value="04">UPS Pak</option>
		  <option <?php 
        if (UPS_PACKAGE_TYPE == "21") {
            echo "selected=\"selected\"";
        }
        ?>
 value="21">UPS Express Box</option>
		  <option <?php 
        if (UPS_PACKAGE_TYPE == "24") {
            echo "selected=\"selected\"";
        }
        ?>
 value="24">UPS 25Kg Box</option>
		  <option <?php 
        if (UPS_PACKAGE_TYPE == "25") {
            echo "selected=\"selected\"";
        }
        ?>
 value="25">UPS 10Kg Box</option>
		</select>
	  </td>
	  <td><?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_PACKAGE_TYPE_TOOLTIP'));
        ?>
</td>
	</tr>
	<tr class="row0">
	  <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_UPS_TYPE_RESIDENTIAL');
        ?>
</strong></td>
	  <td>
		<select class="inputbox" name="residential">
			<option <?php 
        if (UPS_RESIDENTIAL == "yes") {
            echo "selected=\"selected\"";
        }
        ?>
 value="yes"><?php 
        echo $VM_LANG->_('PHPSHOP_UPS_RESIDENTIAL');
        ?>
</option>
			<option <?php 
        if (UPS_RESIDENTIAL == "no") {
            echo "selected=\"selected\"";
        }
        ?>
 value="no"><?php 
        echo $VM_LANG->_('PHPSHOP_UPS_COMMERCIAL');
        ?>
</option>
		</select>
	  </td>
	  <td><?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_RESIDENTIAL_TOOLTIP'));
        ?>
</td>
	</tr>
	<tr class="row1">
	  <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_UPS_HANDLING_FEE');
        ?>
</strong></td>
	  <td><input class="inputbox" type="text" name="handling_fee" value="<?php 
        echo UPS_HANDLING_FEE;
        ?>
" /></td>
	  <td><?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_HANDLING_FEE_TOOLTIP'));
        ?>
</td>
	</tr>
	<tr class="row0">
	  <td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_UPS_TAX_CLASS');
        ?>
</strong></td>
	  <td>
        <?php 
        require_once CLASSPATH . 'ps_tax.php';
        ps_tax::list_tax_value("tax_class", UPS_TAX_CLASS);
        ?>
	  </td>
	  <td><?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_TAX_CLASS_TOOLTIP'));
        ?>
</td>
	</tr>	
<?php 
        // BEGIN CUSTOM CODE
        ?>
	<tr class="row1">
	  <td><strong>Ship From Zip Code</strong></td>
	  <td><input class="inputbox" type="text" name="Override_Source_Zip" value="<?php 
        echo Override_Source_Zip;
        ?>
" /></td>
	  <td><?php 
        echo mm_ToolTip("Enter a zip code to override the Vendor ship from zip code");
        ?>
</td>
	</tr>
	<tr class="row0">
	  <td><strong>Show Delivery Days Quote?</strong></td>
	  <td><input class="inputbox" type="checkbox" name="Show_Delivery_Days_Quote" <?php 
        if (Show_Delivery_Days_Quote == 1) {
            echo "checked=\"checked\"";
        }
        ?>
 value="1" /></td>
	  <td><?php 
        echo mm_ToolTip("Enable the Quote-to-Delivery Note next to each Shipping Method that shows the days.");
        ?>
</td>
	</tr>
	<tr class="row1">
	  <td><strong>Show Delivery ETA Quote?</strong></td>
	  <td><input class="inputbox" type="checkbox" name="Show_Delivery_ETA_Quote" <?php 
        if (Show_Delivery_ETA_Quote == 1) {
            echo "checked=\"checked\"";
        }
        ?>
 value="1" /></td>
	  <td><?php 
        echo mm_ToolTip("Enable the Quote-to-Delivery Note next to each Shipping Method that shows the ETA, or Estimated Time of Arrival.");
        ?>
</td>
	</tr>
	<tr class="row0">
	  <td><strong>Show Delivery Warning?</strong></td>
	  <td><input class="inputbox" type="checkbox" name="Show_Delivery_Warning" <?php 
        if (Show_Delivery_Warning == 1) {
            echo "checked=\"checked\"";
        }
        ?>
 value="1" /></td>
	  <td><?php 
        echo mm_ToolTip("Enable the Quote-to-Delivery Warning under each Shipping Method that shows the message from the shipper.");
        ?>
</td>
	</tr>
	<tr class="row1">
	  <td colspan="3">
	  	<table>
			<tr class="row0">
			  <td colspan="2"><strong>Select Authorized Shipping Methods</strong></td>
			  <td><?php 
        echo mm_ToolTip("Enable each UPS shipping method you would like to offer to customers. Then enter a Fuel Surcharge Rate in percent. (ex. 12.50%)");
        ?>
</td>
			</tr>
			<tr class="row1">
			  <td><div align="left"><strong>Shipping Method</strong></div></td>
			  <td><div align="left"><strong>Enable?</strong></div></td>
			  <td><div align="left"><strong>Fuel SurCharge Rate(%)</strong><?php 
        echo mm_ToolTip("A percent of the base charge for each method is added for extra fuel charges. Leave blank or zero to remove the surcharge.");
        ?>
</div></td>
			</tr>
			<tr class="row0">
			  <td>UPS Next Day Air</td>
			  <td>
			    <div align="center">
			      <input type="checkbox" name="UPS_Next_Day_Air" class="inputbox" <?php 
        if (UPS_Next_Day_Air == 01) {
            echo "checked=\"checked\"";
        }
        ?>
 value="01" />
			      </div></td>
			  <td><input class="inputbox" type="text" name="UPS_Next_Day_Air_FSC" value="<?php 
        echo UPS_Next_Day_Air_FSC;
        ?>
" />
			  </td>
			</tr>
			<tr class="row1">
			  <td>UPS 2nd Day Air</td>
			  <td>
				<div align="center">
				  <input type="checkbox" name="UPS_2nd_Day_Air" class="inputbox" <?php 
        if (UPS_2nd_Day_Air == 02) {
            echo "checked=\"checked\"";
        }
        ?>
 value="02" />
		  	    </div></td>
			  <td><input class="inputbox" type="text" name="UPS_2nd_Day_Air_FSC" value="<?php 
        echo UPS_2nd_Day_Air_FSC;
        ?>
" />
			  </td>
			</tr>
			<tr class="row0">
			  <td>UPS Ground</td>
			  <td>
			    <div align="center">
			      <input type="checkbox" name="UPS_Ground" class="inputbox" <?php 
        if (UPS_Ground == 03) {
            echo "checked=\"checked\"";
        }
        ?>
 value="03" />
			      </div></td>
			  <td><input class="inputbox" type="text" name="UPS_Ground_FSC" value="<?php 
        echo UPS_Ground_FSC;
        ?>
" />
			  </td>
			</tr>
			<tr class="row1">
			  <td>UPS Worldwide Express SM</td>
			  <td>
			    <div align="center">
			      <input type="checkbox" name="UPS_Worldwide_Express_SM" class="inputbox" <?php 
        if (UPS_Worldwide_Express_SM == 07) {
            echo "checked=\"checked\"";
        }
        ?>
 value="07" />
			      </div></td>
			  <td><input class="inputbox" type="text" name="UPS_Worldwide_Express_SM_FSC" value="<?php 
        echo UPS_Worldwide_Express_SM_FSC;
        ?>
" />
			  </td>
			</tr>
			<tr class="row0">
			  <td>UPS Worldwide Expedited SM</td>
			  <td>
			    <div align="center">
			      <input type="checkbox" name="UPS_Worldwide_Expedited_SM" class="inputbox" <?php 
        if (UPS_Worldwide_Expedited_SM == '08') {
            echo "checked=\"checked\"";
        }
        ?>
 value="08" />
			      </div></td>
			  <td><input class="inputbox" type="text" name="UPS_Worldwide_Expedited_SM_FSC" value="<?php 
        echo UPS_Worldwide_Expedited_SM_FSC;
        ?>
" />
			  </td>
			</tr>
			<tr class="row1">
			  <td>UPS Standard </td>
			  <td>
			    <div align="center">
			      <input type="checkbox" name="UPS_Standard" class="inputbox" <?php 
        if (UPS_Standard == 11) {
            echo "checked=\"checked\"";
        }
        ?>
 value="11" />
			      </div></td>
			  <td><input class="inputbox" type="text" name="UPS_Standard_FSC" value="<?php 
        echo UPS_Standard_FSC;
        ?>
" />
			  </td>
			</tr>
			<tr class="row0">
			  <td>UPS 3 Day Select </td>
			  <td>
			    <div align="center">
			      <input type="checkbox" name="UPS_3_Day_Select" class="inputbox" <?php 
        if (UPS_3_Day_Select == 12) {
            echo "checked=\"checked\"";
        }
        ?>
 value="12" />
			      </div></td>
			  <td><input class="inputbox" type="text" name="UPS_3_Day_Select_FSC" value="<?php 
        echo UPS_3_Day_Select_FSC;
        ?>
" />
			  </td>
			</tr>
			<tr class="row1">
			  <td>UPS Next Day Air Saver</td>
			  <td>
			    <div align="center">
			      <input type="checkbox" name="UPS_Next_Day_Air_Saver" class="inputbox" <?php 
        if (UPS_Next_Day_Air_Saver == 13) {
            echo "checked=\"checked\"";
        }
        ?>
 value="13" />
			      </div></td>
			  <td><input class="inputbox" type="text" name="UPS_Next_Day_Air_Saver_FSC" value="<?php 
        echo UPS_Next_Day_Air_Saver_FSC;
        ?>
" />
			  </td>
			</tr>
			<tr class="row0">
			  <td>UPS Next Day Air Early A.M. </td>
			  <td>
			    <div align="center">
			      <input type="checkbox" name="UPS_Next_Day_Air_Early_AM" class="inputbox" <?php 
        if (UPS_Next_Day_Air_Early_AM == 14) {
            echo "checked=\"checked\"";
        }
        ?>
 value="14" />
			      </div></td>
			  <td><input class="inputbox" type="text" name="UPS_Next_Day_Air_Early_AM_FSC" value="<?php 
        echo UPS_Next_Day_Air_Early_AM_FSC;
        ?>
" />
			  </td>
			</tr>
			<tr class="row1">
			  <td>UPS Worldwide Express Plus SM</td>
			  <td>
			    <div align="center">
			      <input type="checkbox" name="UPS_Worldwide_Express_Plus_SM" class="inputbox" <?php 
        if (UPS_Worldwide_Express_Plus_SM == 54) {
            echo "checked=\"checked\"";
        }
        ?>
 value="54" />
			      </div></td>
			  <td><input class="inputbox" type="text" name="UPS_Worldwide_Express_Plus_SM_FSC" value="<?php 
        echo UPS_Worldwide_Express_Plus_SM_FSC;
        ?>
" />
			  </td>
			</tr>
			<tr class="row0">
			  <td>UPS 2nd Day Air A.M</td>
			  <td>
				<div align="center">
				  <input type="checkbox" name="UPS_2nd_Day_Air_AM" class="inputbox" <?php 
        if (UPS_2nd_Day_Air_AM == 59) {
            echo "checked=\"checked\"";
        }
        ?>
 value="59" />		
			    </div></td>
			  <td><input class="inputbox" type="text" name="UPS_2nd_Day_Air_AM_FSC" value="<?php 
        echo UPS_2nd_Day_Air_AM_FSC;
        ?>
" />
			  </td>
			</tr>
			<tr class="row1">
			  <td>UPS Express Saver</td>
			  <td>
			    <div align="center">
			      <input type="checkbox" name="UPS_Saver" class="inputbox" <?php 
        if (UPS_Saver == 65) {
            echo "checked=\"checked\"";
        }
        ?>
 value="65" />
			      </div></td>
			  <td><input class="inputbox" type="text" name="UPS_Saver_FSC" value="<?php 
        echo UPS_Saver_FSC;
        ?>
" />
			  </td>
			</tr>
			<tr class="row0">
			  <td>n/a </td>
			  <td>
			    <div align="center">
			      <input type="checkbox" name="na" class="inputbox" <?php 
        if (na == 64) {
            echo "checked=\"checked\"";
        }
        ?>
 value="64" />
			      </div></td>
			  <td>&nbsp;
			  </td>
			</tr>
		  </table>
	  </td>
	</tr>
<?php 
        // END CUSTOM CODE
        ?>
		
	</table>
   <?php 
        // return false if there's no configuration
        return true;
    }
Example #11
0
    /**
     * Show all configuration parameters for this Shipping method
     * @returns boolean False when the Shipping method has no configration
     */
    function show_configuration()
    {
        global $VM_LANG;
        /** Read current Configuration ***/
        require_once CLASSPATH . "shipping/" . __CLASS__ . ".cfg.php";
        ?>
<table>
	<tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_USERNAME');
        ?>
</strong></td>
		<td><input type="text" name="USPS_USERNAME" class="inputbox"
			value="<?php 
        echo USPS_USERNAME;
        ?>
" /></td>
		<td>
          <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_USERNAME_TOOLTIP'));
        ?>
        </td>
	</tr>
	<tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_PASSWORD');
        ?>
</strong>
		</td>
		<td><input type="text" name="USPS_PASSWORD" class="inputbox"
			value="<?php 
        echo USPS_PASSWORD;
        ?>
" /></td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_PASSWORD_TOOLTIP'));
        ?>
        </td>
	</tr>
	<tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_SERVER');
        ?>
</strong>
		</td>
		<td><input type="text" name="USPS_SERVER" class="inputbox"
			value="<?php 
        echo USPS_SERVER;
        ?>
" /></td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_SERVER_TOOLTIP'));
        ?>
        </td>
	</tr>
	<tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_PATH');
        ?>
</strong>
		</td>
		<td><input type="text" name="USPS_PATH" class="inputbox"
			value="<?php 
        echo USPS_PATH;
        ?>
" /></td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_PATH_TOOLTIP'));
        ?>
        </td>
	</tr>
	<tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_PACKAGESIZE');
        ?>
</strong>
		</td>
		<td><select name="USPS_PACKAGESIZE">
			<option value="REGULAR"
				<?php 
        if (USPS_PACKAGESIZE == 'REGULAR') {
            echo "selected=\"selected\"";
        }
        ?>
>Regular</option>
			<option value="LARGE"
				<?php 
        if (USPS_PACKAGESIZE == 'LARGE') {
            echo "selected=\"selected\"";
        }
        ?>
>Large</option>
			<option value="OVERSIZE"
				<?php 
        if (USPS_PACKAGESIZE == 'OVERSIZE') {
            echo "selected=\"selected\"";
        }
        ?>
>Oversize</option>
		</select></td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_PACKAGESIZE_TOOLTIP'));
        ?>
        </td>
	</tr>
	<tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_UPS_TAX_CLASS');
        ?>
</strong></td>
		<td>
		  <?php 
        require_once CLASSPATH . 'ps_tax.php';
        ps_tax::list_tax_value("USPS_TAX_CLASS", USPS_TAX_CLASS);
        ?>
		</td>
		<td><?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_TAX_CLASS_TOOLTIP'));
        ?>
		
		
		
		
		
		<td>
	
	</tr>
	<tr>
		<TD colspan="3">
		<HR />
		</td>
	</tr>
	<tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_USPS_HANDLING_FEE');
        ?>
</strong></td>
		<td><input class="inputbox" TYPE="text" name="USPS_HANDLINGFEE"
			value="<?php 
        echo USPS_HANDLINGFEE;
        ?>
" /></td>
		<td><?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_USPS_HANDLING_FEE_TOOLTIP'));
        ?>
</td>
	</tr>
	<tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_USPS_PADDING');
        ?>
</strong></td>
		<td><input class="inputbox" TYPE="text" name="USPS_PADDING"
			value="<?php 
        echo USPS_PADDING;
        ?>
" /></td>
		<td><?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_USPS_PADDING_TOOLTIP'));
        ?>
</td>
	</tr>
	<tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_INTLLBRATE');
        ?>
</strong>
		</td>
		<td><input type="text" name="USPS_INTLLBRATE" class="inputbox"
			value="<?php 
        echo USPS_INTLLBRATE;
        ?>
" /></td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_INTLLBRATE_TOOLTIP'));
        ?>
        </td>
	</tr>
	<tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_INTLHANDLINGFEE');
        ?>
</strong>
		</td>
		<td><input type="text" name="USPS_INTLHANDLINGFEE" class="inputbox"
			value="<?php 
        echo USPS_INTLHANDLINGFEE;
        ?>
" /></td>
		<td>
            <?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_ADMIN_CFG_STORE_SHIPPING_METHOD_USPS_INTLHANDLINGFEE_TOOLTIP'));
        ?>
        </td>
	</tr>
	<tr>
		<td><strong><?php 
        echo _VM_LANG_USPS_MACHINABLE;
        ?>
</strong></td>
		<td><label> <input name="USPS_MACHINABLE" type="radio"
			<?php 
        if (USPS_MACHINABLE == 1) {
            echo "checked=\"checked\"";
        }
        ?>
			value="1" /> Yes</label> <label> <input name="USPS_MACHINABLE"
			type="radio"
			<?php 
        if (USPS_MACHINABLE == 0) {
            echo "checked=\"checked\"";
        }
        ?>
			value="0" /> No</label></td>
		<td><?php 
        echo mm_ToolTip(_VM_LANG_USPS_MACHINABLE_TOOLTIP);
        ?>
</td>
	</tr>
	<tr>
		<td><strong><?php 
        echo _VM_LANG_USPS_QUOTE;
        ?>
</strong></td>
		<td><label> <input name="USPS_SHOW_DELIVERY_QUOTE" type="radio"
			<?php 
        if (USPS_SHOW_DELIVERY_QUOTE == 1) {
            echo "checked=\"checked\"";
        }
        ?>
			value="1" /> Yes</label> <label> <input
			name="USPS_SHOW_DELIVERY_QUOTE" type="radio"
			<?php 
        if (USPS_SHOW_DELIVERY_QUOTE == 0) {
            echo "checked=\"checked\"";
        }
        ?>
			value="0" /> No</label></td>
		<td><?php 
        echo mm_ToolTip(_VM_LANG_USPS_QUOTE_TOOLTIP);
        ?>
</td>
	</tr>
	<tr>
		<td colspan="3">
		<hr><?php 
        echo _VM_LANG_USPS_SHIP;
        ?>
<hr>
		</td>
	</tr>
	<!-- added for new shipping rate V2 code ... Domestic Shipping-->
	<?php 
        $count = 10;
        $i = 0;
        ?>
 
	<?php 
        while ($i <= $count) {
            $dom_option = constant("USPS_SHIP" . $i);
            ?>
	<tr>
		<td><strong><?php 
            $var_name = "_VM_LANG_USPS_SHIP{$i}";
            eval("\$var = {$var_name};");
            echo $var;
            ?>
</strong></td>
		<td><label> <input name="USPS_SHIP<?php 
            echo $i;
            ?>
" type="radio"
			<?php 
            $var_name = "\$dom_option";
            eval("\$var = {$var_name};");
            if ($var == 1) {
                echo "checked=\"checked\"";
            }
            ?>
			value="1" /> Yes</label> <label> <input
			name="USPS_SHIP<?php 
            echo $i;
            ?>
" type="radio"
			<?php 
            $var_name = "\$dom_option";
            eval("\$var = {$var_name};");
            if ($var == 0) {
                echo "checked=\"checked\"";
            }
            ?>
			value="0" /> No</label></td>
		<td><?php 
            $var_name = "_VM_LANG_USPS_SHIP" . $i;
            eval("\$var = {$var_name};");
            echo mm_ToolTip($var);
            ?>
</td>
	</tr>
	<?php 
            $i++;
            ?>
	<?php 
        }
        ?>
 
	<tr>
		<td colspan="3">
		<hr><?php 
        echo _VM_LANG_USPS_INTL;
        ?>
<hr>
		</td>
	</tr>
	<!-- added for new shipping rate V2 code ... International Shipping -->
	<?php 
        $count = 8;
        $i = 0;
        ?>
	<?php 
        while ($i <= $count) {
            $int_option = constant("USPS_INTL" . $i);
            ?>
	<tr>
		<td><strong><?php 
            $var_name = "_VM_LANG_USPS_INTL{$i}";
            eval("\$var = {$var_name};");
            echo $var;
            ?>
</strong></td>
		<td><label> <input name="USPS_INTL<?php 
            echo $i;
            ?>
" type="radio"
			<?php 
            $var_name = "\$int_option";
            eval("\$var = {$var_name};");
            if ($var == 1) {
                echo "checked=\"checked\"";
            }
            ?>
			value="1" /> Yes</label> <label> <input
			name="USPS_INTL<?php 
            echo $i;
            ?>
" type="radio"
			<?php 
            $var_name = "\$int_option";
            eval("\$var = {$var_name};");
            if ($var == 0) {
                echo "checked=\"checked\"";
            }
            ?>
			value="0" /> No</label></td>
		<td><?php 
            $var_name = "_VM_LANG_USPS_INTL" . $i;
            eval("\$var = {$var_name};");
            echo mm_ToolTip($var);
            ?>
</td>
	</tr>
	<?php 
            $i++;
            ?>
	<?php 
        }
        ?>
	
	
	</table>
<?php 
        // return false if there's no configuration
        return true;
    }
Example #12
0
    /**
     * Show all configuration parameters for this Shipping method
     * @returns boolean False when the Shipping method has no configration
     */
    function show_configuration()
    {
        global $VM_LANG;
        /** Read current Configuration ***/
        require_once CLASSPATH . "shipping/" . $this->classname . ".cfg.php";
        ?>
      <table>
    <tr>
        <td><img src="http://drc.edeliver.com.au/bt_aphome.gif" alt="AusPost Logo"></td>
    </tr>
    <tr>
        <td><strong>Packing and Handling Fee:</strong>
		</td>
		<td>
            <input type="text" name="Handling_Fee" class="inputbox" value="<?php 
        echo Handling_Fee;
        ?>
" />
		</td>
		<td>
            <?php 
        echo mm_ToolTip("This is your fee for packaging and handling, and is added to the delivery costs returned by auspost");
        ?>
        </td>
    </tr>
	  <tr>
		<td><strong><?php 
        echo $VM_LANG->_('PHPSHOP_UPS_TAX_CLASS');
        ?>
</strong></td>
		<td>
		  <?php 
        require_once CLASSPATH . 'ps_tax.php';
        ps_tax::list_tax_value("AUSPOST_TAX_CLASS", AUSPOST_TAX_CLASS);
        ?>
		</td>
		<td><?php 
        echo mm_ToolTip($VM_LANG->_('PHPSHOP_UPS_TAX_CLASS_TOOLTIP'));
        ?>
<td>
	  </tr>	
	</table>
   <?php 
        // return false if there's no configuration
        return true;
    }