} ShoppUI::addmetabox('promotion-discount', __('Discount', 'Shopp') . $Admin->boxhelp('promo-editor-discount'), 'discount_meta_box', 'shopp_page_shopp-discounts', 'normal', 'core'); function rules_meta_box($Promotion) { $targets = array('Catalog' => __('catalog product', 'Shopp'), 'Cart' => __('shopping cart', 'Shopp'), 'Cart Item' => __('cart item', 'Shopp')); $target = '<select name="target" id="promotion-target" class="small">'; $target .= menuoptions($targets, $Promotion->target, true); $target .= '</select>'; if (empty($Promotion->search)) { $Promotion->search = "all"; } $logic = '<select name="search" class="small">'; $logic .= menuoptions(array('any' => Shopp::__('any'), 'all' => strtolower(Shopp::__('All'))), $Promotion->search, true); $logic .= '</select>'; ?> <p><strong><?php printf(__('Apply discount to %s', 'Shopp'), $target, $logic); ?> <strong id="target-property"></strong></strong></p> <table class="form-table" id="cartitem"></table> <p><strong><?php printf(__('When %s of these conditions match the', 'Shopp'), $logic); ?> <strong id="rule-target">:</strong></strong></p> <table class="form-table" id="rules"></table> <?php } ShoppUI::addmetabox('promotion-rules', __('Conditions', 'Shopp') . $Admin->boxhelp('promo-editor-conditions'), 'rules_meta_box', 'shopp_page_shopp-discounts', 'normal', 'core');
</span> <span> <input type="text" name="shipping[postcode]" id="shipping-postcode" value="<?php echo esc_attr($Customer->Shipping->postcode); ?> " size="10" /><br /> <label for="shipping-postcode"><?php _e('Postal Code', 'Shopp'); ?> </label> </span> </p> <p> <span> <select name="shipping[country]" id="shipping-country"> <?php echo menuoptions($Customer->countries, $Customer->Shipping->country, true); ?> </select> <label for="shipping-country"><?php _e('Country', 'Shopp'); ?> </label> </span> </p> <br class="clear" /> <?php } ShoppUI::addmetabox('customer-shipping', __('Shipping Address', 'Shopp') . $Admin->boxhelp('customer-editor-shipping'), 'shipping_meta_box', 'shopp_page_shopp-customers', 'normal', 'core');
do_action('shopp_order_new_note_ui'); ?> <p class="alignright"> <button type="button" name="cancel-note" value="cancel" id="cancel-note-button" class="button-secondary"><?php _e('Cancel', 'Shopp'); ?> </button> <button type="submit" name="save-note" value="save" class="button-primary"><?php _e('Save Note', 'Shopp'); ?> </button> </p> <div class="alignright options"> <input type="checkbox" name="send-note" id="send-note" value="1"> <label for="send-note"><?php _e('Send to customer', 'Shopp'); ?> </label> </div> </div> <p class="alignright" id="add-note"> <button type="button" name="add-note" value="add" id="add-note-button" class="button-secondary"><?php _e('Add Note', 'Shopp'); ?> </button></p> <br class="clear" /> </form> <?php } ShoppUI::addmetabox('order-notes', __('Notes', 'Shopp') . $Admin->boxhelp('order-manager-notes'), 'notes_meta_box', 'toplevel_page_shopp-orders', 'normal', 'core');
_e('Attach file by URL', 'Shopp'); ?> …</label></p> <p><span class="fileimporter"><input type="text" name="url" id="import-url" class="fileimport" /><span class="shoppui-spin-align"><span class="status"></span></span></span><button class="button-secondary" id="attach-file"><small><?php _e('Attach File', 'Shopp'); ?> </small></button><br /><span><label for="import-url">file:///path/to/file.zip<?php if (!in_array('http', stream_get_wrappers())) { ?> , http://server.com/file.zip<?php } ?> </label></span></p> <label class="alignleft"><?php _e('Select a file from your computer', 'Shopp'); ?> :</label> <div class=""><div id="flash-upload-file"></div><button id="ajax-upload-file" class="button-secondary"><small><?php _e('Upload File', 'Shopp'); ?> </small></button></div> </div> <?php } ShoppUI::addmetabox('product-pricing-box', __('Pricing', 'Shopp') . $Admin->boxhelp('product-editor-pricing'), 'pricing_meta_box', get_current_screen()->id, 'advanced', 'core'); /** Templates **/ function priceline_ui() { } add_action('shopp_product_editor_templates', 'priceline_ui');
<?php } ?> </select><label for="wp-roles"><?php _e('Default User Role', 'Shopp'); ?> </p> <?php } ShoppUI::addmetabox('membership-settings', __('Settings', 'Shopp') . $Admin->boxhelp('membership-editor-settings'), 'settings_meta_box', 'shopp_page_shopp-memberships', 'side', 'core'); function sources_meta_box($MemberPlan) { ?> <ul id="sources"></ul> <p>Show list of content sources...</p> <?php } ShoppUI::addmetabox('membership-sources', __('Content', 'Shopp') . $Admin->boxhelp('membership-editor-sources'), 'sources_meta_box', 'shopp_page_shopp-memberships', 'side', 'core'); function rules_meta_box($MemberPlan) { ?> <ul id="rules"></ul> <input type="button" id="add-stage" name="add-stage" value="<?php _e('Add Step', 'Shopp'); ?> " class="button-secondary" /> <?php } ShoppUI::addmetabox('membership-rules', __('Access', 'Shopp') . $Admin->boxhelp('membership-editor-rules'), 'rules_meta_box', 'shopp_page_shopp-memberships', 'normal', 'core');
?> " class="button-primary" /> <?php } ?> <?php } ?> </div> <?php } ?> </form> <?php } ShoppUI::addmetabox('order-manage', __('Management', 'Shopp') . $Admin->boxhelp('order-manager-manage'), 'manage_meta_box', 'toplevel_page_shopp-orders', 'normal', 'core'); function order_address_editor() { ob_start(); ?> <div class="editor"> <p class="inline-fields"> <span> <input type="text" name="${type}[firstname]" id="${type}-firstname" value="${firstname}" /><br /> <label for="address-city"><?php _e('First Name', 'Shopp'); ?> </label> </span> <span>
<li><div id="variations-menu" class="multiple-select options menu"><ul></ul></div> <div class="controls"> <button type="button" id="addVariationMenu" class="button-secondary"><?php _e('Add Option Menu', 'Shopp'); ?> </button> </div> </li> <li> <div id="variations-list" class="multiple-select options"></div> <div class="controls"> <button type="button" id="addVariationOption" class="button-secondary"><?php _e('Add Option', 'Shopp'); ?> </button> </div> </li> </ul> <div class="clear"></div> </div> </div> <br /> <div id="variations-pricing"></div> </div> <?php } ShoppUI::addmetabox('templates_menus', __('Product Templates & Menus', 'Shopp') . $Admin->boxhelp('category-editor-templates'), 'templates_meta_box', 'shopp_page_shopp-category', 'advanced', 'core');