Example #1
0
 public function box()
 {
     extract($this->references);
     $this->references['wp_user'] = get_userdata($Customer->wpuser);
     $this->references['avatar'] = get_avatar($Customer->wpuser, 48);
     $this->references['userlink'] = add_query_arg('user_id', $Customer->wpuser, admin_url('user-edit.php'));
     parent::box();
 }
Example #2
0
?>
			<div class="conditionals no-conditions">
				<p><label><?php 
printf(__('Apply tax rate when %s of the following conditions match', 'Shopp'), $menu);
?>
:</label></p>
				<ul>
				${conditions}
				</ul>
			</div>
		</td>
			<td>
				<div class="local-rates panel subpanel no-local-rates">
					<div class="label"><label><?php 
_e('Local Rates', 'Shopp');
echo ShoppAdminMetabox::help('settings-taxes-localrates');
?>
 <span class="counter"></span><input type="hidden" name="settings[taxrates][${id}][haslocals]" value="${haslocals}" class="has-locals" /></label></div>
					<div class="ui">
						<p class="instructions"><?php 
Shopp::_e('No local regions have been setup for this location. Local regions can be specified by uploading a formatted local rates file.');
?>
</p>
						${errors}
						<ul>${localrates}</ul>
						<div class="upload">
							<h3><?php 
Shopp::_e('Upload Local Tax Rates');
?>
</h3>
							<input type="hidden" name="MAX_FILE_SIZE" value="1048576" />
Example #3
0
 public function box()
 {
     $this->references['types_menu'] = menuoptions(ShoppScreenDiscountEditor::types(), $this->references['Promotion']->type, true);
     parent::box();
 }
Example #4
0
    echo ' checked="checked"';
}
?>
 /><label for="variations-setting"> <?php 
_e('Variants', 'Shopp');
echo ShoppAdminMetabox::help('product-editor-variations');
?>
</label></p>
<p><input type="hidden" name="addons" value="off" /><input type="checkbox" name="addons" value="on" id="addons-setting" tabindex="13"<?php 
if ($Product->addons == "on") {
    echo ' checked="checked"';
}
?>
 /><label for="addons-setting"> <?php 
_e('Add-ons', 'Shopp');
echo ShoppAdminMetabox::help('product-editor-addons');
?>
</label></p>

<?php 
if (shopp_setting_enabled('tax_inclusive')) {
    ?>
	<p><input type="hidden" name="meta[excludetax]" value="off" /><input type="checkbox" name="meta[excludetax]" value="on" id="excludetax-setting" tabindex="18"  <?php 
    if (isset($Product->meta['excludetax']) && Shopp::str_true($Product->meta['excludetax']->value)) {
        echo 'checked="checked"';
    }
    ?>
 /> <label for="excludetax-setting"><?php 
    _e('Exclude Taxes', 'Shopp');
    ?>
</label></p>
Example #5
0
 public function box()
 {
     global $_nav_menu_placeholder, $nav_menu_selected_id;
     $this->references['navmenu_placeholder'] =& $_nav_menu_placeholder;
     $this->references['navmenu_selected'] =& $nav_menu_selected_id;
     parent::box();
 }
Example #6
0
 public function box()
 {
     $options = array('disabled' => Shopp::__('Price ranges disabled'), 'auto' => Shopp::__('Build price ranges automatically'), 'custom' => Shopp::__('Use custom price ranges'));
     $this->references['pricemenu'] = menuoptions($options, $Category->pricerange, true);
     parent::box();
 }