• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP wpshop_tools类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中wpshop_tools的典型用法代码示例。如果您正苦于以下问题:PHP wpshop_tools类的具体用法?PHP wpshop_tools怎么用?PHP wpshop_tools使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了wpshop_tools类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: ajax_save_product_price

 /**
  * Récupère le pilotage de prix, le nombre de produit avec un prix incohérent, le type de l'entité et la langue de la boutique. 
  * Parcours la tableau de donnée avec la nouvelle valeur des prix par produit incohérent puis met à jour tout les autres prix de 
  * ce produit. Ensuite renvoie le template avec le nombre de prix incohérent qui on été corrigé et le template de la méthode :
  * ajax_checking_products_values si des produits incohérents sont toujours présent. / Get the price piloting, the number of 
  * product with an inconsistent price, type of the entity and the language of the shop. Browse the given table with the new
  * new value pricing of the inconsistent product and updates any other price of this product. Then display the template 
  * of the number of corrected product and the template of the method : ajax_checking_products_values if inconsistent product
  * already present.
  * 
  * @param array $_POST['product_price'] List of the new price for the product like array( $id_product => $new_price )
  * @return JSON Response
  */
 public function ajax_save_product_price()
 {
     header('Content-Type: application/json');
     $response = array();
     $price_piloting_option = get_option('wpshop_shop_price_piloting');
     $inconsistent_product_number = !empty($_POST['product_price']) ? count($_POST['product_price']) : 0;
     $consistent_product_number = 0;
     $entity_type_id = wpshop_entities::get_entity_identifier_from_code(WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT);
     $language = WPSHOP_CURRENT_LOCALE;
     if (!empty($_REQUEST['icl_post_language'])) {
         $query = $wpdb->prepare("SELECT locale FROM " . $wpdb->prefix . "icl_locale_map WHERE code = %s", $_REQUEST['icl_post_language']);
         $language = $wpdb->get_var($query);
     }
     if (!empty($_POST['product_price'])) {
         foreach ($_POST['product_price'] as $product_id => $price) {
             try {
                 if ($price_piloting_option == 'TTC') {
                     wpshop_attributes::saveAttributeForEntity(array('decimal' => array('product_price' => $price)), $entity_type_id, $product_id, $language, 'wpshop_products');
                 } else {
                     wpshop_attributes::saveAttributeForEntity(array('decimal' => array('price_ht' => $price)), $entity_type_id, $product_id, $language, 'wpshop_product');
                 }
                 wpshop_products::calculate_price($product_id);
                 $consistent_product_number++;
             } catch (Exception $e) {
             }
         }
     }
     $response['template_number'] = __(sprintf('Number of processed product : %d/%d', $consistent_product_number, $inconsistent_product_number), 'wps-product');
     $list_product = wps_product_ctr::get_inconsistent_product();
     ob_start();
     require wpshop_tools::get_template_part(WPS_PRODUCT_DIR, WPS_PRODUCT_TEMPLATES_MAIN_DIR, "backend", "product_check_data");
     $response['template'] = ob_get_clean();
     wp_die(json_encode($response));
 }
开发者ID:pronoSoupe,项目名称:pronobo_soupe,代码行数:47,代码来源:wps_product_ajax_ctr.01.php


示例2: display_account_last_actions

 function display_account_last_actions()
 {
     global $wpdb;
     $output = '';
     $user_id = get_current_user_id();
     if (!empty($user_id)) {
         $query = $wpdb->prepare('SELECT * FROM ' . $wpdb->posts . ' WHERE post_type = %s AND post_author = %d', WPSHOP_NEWTYPE_IDENTIFIER_ORDER, $user_id);
         $orders = $wpdb->get_results($query);
         if (!empty($orders)) {
             $orders_list = '';
             foreach ($orders as $order) {
                 $order_meta = get_post_meta($order->ID, '_order_postmeta', true);
                 $order_number = !empty($order_meta) && !empty($order_meta['order_key']) ? $order_meta['order_key'] : '';
                 $order_date = !empty($order_meta) && !empty($order_meta['order_date']) ? mysql2date(get_option('date_format'), $order_meta['order_date'], true) : '';
                 $order_amount = !empty($order_meta) && !empty($order_meta['order_key']) ? wpshop_tools::formate_number($order_meta['order_grand_total']) . ' ' . wpshop_tools::wpshop_get_currency(false) : '';
                 $order_available_status = unserialize(WPSHOP_ORDER_STATUS);
                 $order_status = !empty($order_meta) && !empty($order_meta['order_status']) ? __($order_available_status[$order_meta['order_status']], 'wpshop') : '';
                 ob_start();
                 require wpshop_tools::get_template_part(WPS_ACCOUNT_DIR, WPS_ACCOUNT_PATH . WPS_ACCOUNT_DIR . "/templates/", "frontend", "account/account-dashboard-resume-element");
                 $orders_list .= ob_get_contents();
                 ob_end_clean();
             }
             ob_start();
             require_once wpshop_tools::get_template_part(WPS_ACCOUNT_DIR, WPS_ACCOUNT_PATH . WPS_ACCOUNT_DIR . "/templates/", "frontend", "account/account-dashboard-resume");
             $output = ob_get_contents();
             ob_end_clean();
         }
     }
     return $output;
 }
开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:30,代码来源:wps_account_dashboard_ctr.php


示例3: help_tab_content

 public function help_tab_content($screen, $tab)
 {
     $id = $tab['id'];
     $title = $tab['callback'][0]->help_tabs[$tab['id']]['title'];
     $content = $tab['callback'][0]->help_tabs[$tab['id']]['content'];
     $pages = $tab['callback'][0]->help_tabs[$tab['id']]['pages'];
     require wpshop_tools::get_template_part(WPS_HELP_DIR, WPS_HELP_TEMPLATES_MAIN_DIR, "backend", "wps_tab_content_tpl");
 }
开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:8,代码来源:wps_help_tabs_ctr.php


示例4: display_modal

 function display_modal()
 {
     $output = '';
     ob_start();
     require_once wpshop_tools::get_template_part(WPS_MODAL_DIR, $this->template_dir, "frontend", "modal");
     $output = ob_get_contents();
     ob_end_clean();
     echo $output;
 }
开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:9,代码来源:wps-modal.php


示例5: customer_creation

 /**
  * AJAX - Charge le fomulaire d'ajout rapide d'un client / Load the form for new customer quick add
  */
 function customer_creation()
 {
     check_ajax_referer('wps-customer-quick-nonce', 'wps-nonce');
     global $wpdb;
     $customer_entity_type_id = wpshop_entities::get_entity_identifier_from_code(WPSHOP_NEWTYPE_IDENTIFIER_CUSTOMERS);
     $query = $wpdb->prepare("SELECT ID FROM {$wpdb->posts} WHERE post_type = %s AND post_author = %d", WPSHOP_NEWTYPE_IDENTIFIER_CUSTOMERS, get_current_user_id());
     $cid = $wpdb->get_var($query);
     $customer_attribute_set = !empty($_GET) && !empty($_GET['customer_set_id']) ? $_GET['customer_set_id'] : null;
     $customer_attributes = wpshop_attributes_set::getAttributeSetDetails($customer_attribute_set, "'valid'");
     require_once wpshop_tools::get_template_part(WPSCLTQUICK_DIR, WPSCLTQUICK_TEMPLATES_MAIN_DIR, "backend", "customer", "creation");
     wp_die();
 }
开发者ID:pronoSoupe,项目名称:pronobo_soupe,代码行数:15,代码来源:wps_customer_quick_add.ctr.php


示例6: alphabet_letters

 /**
  * DISPLAY / Affichage - Display all letter buttons for element choice / Affiche les lettres de l'alphabet pour lister les éléments existants
  *
  * @param string $type The type of element to display alphabet for / Le type d'élément pour lequel on va afficher l'alphabet
  *
  * @return string The alphabet letter button / Les bouttons affichant les lettres de l'alphabet
  */
 public static function alphabet_letters($type = 'customer', $available_letters = array(), $chosen_letter = '')
 {
     global $wpdb;
     $alphabet = unserialize(WPSPOS_ALPHABET_LETTERS);
     $alphabet_interface = '';
     foreach ($alphabet as $alpha) {
         ob_start();
         require wpshop_tools::get_template_part(WPSPOS_DIR, WPSPOS_TEMPLATES_MAIN_DIR, 'backend', 'alphabet', 'letters');
         $alphabet_interface .= ob_get_contents();
         ob_end_clean();
     }
     return $alphabet_interface;
 }
开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:20,代码来源:wps-pos-tools.php


示例7: display_discount_chip

 /**
  * Display Discount Chip
  * @param array $args
  * @return string
  */
 function display_discount_chip($args)
 {
     $output = '';
     if (!empty($args) && !empty($args['pid'])) {
         $wps_price = new wpshop_prices();
         $discount_data = wpshop_prices::check_discount_for_product($args['pid']);
         if (!empty($discount_data)) {
             ob_start();
             require wpshop_tools::get_template_part(WPS_PRODUCT_DIR, WPS_PRODUCT_TEMPLATES_MAIN_DIR, "frontend", "product_discount_chip");
             $output = ob_get_contents();
             ob_end_clean();
         }
     }
     return $output;
 }
开发者ID:pronoSoupe,项目名称:pronobo_soupe,代码行数:20,代码来源:wps_product_ctr.php


示例8: delete_address_in_order_panel

 /**
  * Delete address in order
  */
 function delete_address_in_order_panel()
 {
     $status = false;
     $address_datas = !empty($_POST['address_id']) ? wpshop_tools::varSanitizer($_POST['address_id']) : null;
     if (!empty($address_datas)) {
         $address_datas = explode('-', $address_datas);
         if (!empty($address_datas) && !empty($address_datas[0])) {
             wp_delete_post($address_datas[0], true);
             delete_post_meta($address_datas[0], '_wpshop_address_attribute_set_id');
             delete_post_meta($address_datas[0], '_wpshop_address_metadata');
             $status = true;
         }
     }
     echo json_encode(array('status' => $status));
     wp_die();
 }
开发者ID:pronoSoupe,项目名称:pronobo_soupe,代码行数:19,代码来源:wps_address_admin_ctr.php


示例9: pageTitle

 /**
  *	Define the title of the page
  *
  *	@return string $title The title of the page looking at the environnement
  */
 function pageTitle()
 {
     $action = isset($_REQUEST['action']) ? wpshop_tools::varSanitizer($_REQUEST['action']) : '';
     $objectInEdition = isset($_REQUEST['id']) ? wpshop_tools::varSanitizer($_REQUEST['id']) : '';
     $title = __(self::pageTitle, 'wpshop');
     if ($action != '') {
         if ($action == 'edit' || $action == 'delete') {
             $editedItem = self::getElement($objectInEdition);
             $title = sprintf(__(self::pageEditingTitle, 'wpshop'), str_replace("\\", "", $editedItem->frontend_label) . ' (' . $editedItem->code . ')');
         } elseif ($action == 'add') {
             $title = __(self::pageAddingTitle, 'wpshop');
         }
     } elseif (self::getEditionSlug() != self::getListingSlug() && $_GET['page'] == self::getEditionSlug()) {
         $title = __(self::pageAddingTitle, 'wpshop');
     }
     return $title;
 }
开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:22,代码来源:shortcodes.class.php


示例10: wp_ajax_display_pictures_in_backend

 /**
  * AJAX - Display pictures in backend panel
  */
 function wp_ajax_display_pictures_in_backend()
 {
     $status = true;
     $response = '';
     $media_indicator = !empty($_POST['media_id']) ? $_POST['media_id'] : null;
     if (!empty($media_indicator)) {
         $media_id = explode(',', $media_indicator);
         if (!empty($media_id)) {
             ob_start();
             require wpshop_tools::get_template_part(WPS_MEDIA_MANAGER_DIR, $this->template_dir, "backend", "media_list");
             $response = ob_get_contents();
             ob_end_clean();
         }
     }
     echo json_encode(array('status' => $status, 'response' => $response));
     wp_die();
 }
开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:20,代码来源:wps_media_manager_backend_ctr.php


示例11: generate_product_sheet_datas

 /**
  * Generate product sheet datas
  *
  * @param integer $product_id THe product identifier to generate the sheet for
  *
  * @return string
  */
 function generate_product_sheet_datas($product_id)
 {
     $product = get_post($product_id);
     $shop_type = get_option('wpshop_shop_type');
     $product_price_data = get_post_meta($product_id, '_wps_price_infos', true);
     // Attributes Def
     $product_atts_def = $this->get_product_atts_def($product_id);
     // Attach CSS datas
     ob_start();
     require wpshop_tools::get_template_part(WPS_PRODUCT_DIR, WPS_PRODUCT_TEMPLATES_MAIN_DIR, "backend", "product_sheet_datas_style");
     $output = ob_get_contents();
     ob_end_clean();
     ob_start();
     require wpshop_tools::get_template_part(WPS_PRODUCT_DIR, WPS_PRODUCT_TEMPLATES_MAIN_DIR, "backend", "product_sheet");
     $output .= ob_get_contents();
     ob_end_clean();
     return $output;
 }
开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:25,代码来源:wps_product_administration_ctr.php


示例12: _e

<h2><?php 
_e('Latest products ordered', 'wpshop');
?>
</h2>
{WPSHOP_LATEST_PRODUCTS_ORDERED}
<?php 
$tpl_element['latest_products_ordered'] = ob_get_contents();
ob_end_clean();
/** New Modal Add to cart confirmation Footer **/
ob_start();
?>
<a class="wps-bton wps-bton-second-rounded wpsjq-closeModal"><?php 
_e('Continue shopping', 'wpshop');
?>
</a>	<a href="<?php 
echo wpshop_tools::get_page_id(get_permalink(get_option('wpshop_cart_page_id')));
?>
" type="button" class="wps-bton wps-bton-first-rounded"><?php 
_e('Order', 'wpshop');
?>
</a>
<?php 
$tpl_element['wps_new_add_to_cart_confirmation_modal_footer'] = ob_get_contents();
ob_end_clean();
/** New Modal Add to cart confirmation Footer **/
ob_start();
?>
<ul class="wps-catalog-listwrapper">
	<li>
		<a href="#" class="product_thumbnail-mini-list" title="{WPSHOP_PRODUCT_TITLE}">{WPSHOP_PRODUCT_PICTURE}</a>
		<span class="product_information-mini-list" itemprop="offers" itemscope itemtype="http://data-vocabulary.org/Offers">
开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:31,代码来源:main_elements.tpl.php


示例13: wpshop_rss_tutorial_videos

 function wpshop_rss_tutorial_videos()
 {
     $ini_get_checking = ini_get('allow_url_fopen');
     if ($ini_get_checking != 0) {
         $content = @file_get_contents('http://www.wpshop.fr/rss_video.xml');
         $videos_rss = $content !== false ? new SimpleXmlElement($content) : null;
         if (!empty($videos_rss) && !empty($videos_rss->channel)) {
             $videos_items = array();
             foreach ($videos_rss->channel->item as $i => $item) {
                 $videos_items[] = $item;
             }
             $rand_element = array_rand($videos_items);
             ob_start();
             require_once wpshop_tools::get_template_part(WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, "backend", "dashboard", "videos");
             $output = ob_get_contents();
             ob_end_clean();
         } else {
             $output = __('No tutorial videos can be loaded', 'wpshop');
         }
     } else {
         $output = __('Your servor doesn\'t allow to open external files', 'wpshop');
     }
     echo $output;
 }
开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:24,代码来源:wps_dashboard_ctr.php


示例14: wps_send_direct_payment_link

/** Send a direct payment Link **/
function wps_send_direct_payment_link()
{
    global $wpdb;
    $status = false;
    $response = '';
    $order_id = !empty($_POST['order_id']) ? intval($_POST['order_id']) : null;
    if (!empty($_POST['order_id'])) {
        /** Get the customer **/
        $order_metadata = get_post_meta($order_id, '_order_postmeta', true);
        if (!empty($order_metadata) && !empty($order_metadata['customer_id']) && !empty($order_metadata['order_status']) && $order_metadata['order_status'] == 'awaiting_payment') {
            $user_infos = get_userdata($order_metadata['customer_id']);
            $first_name = get_user_meta($user_infos->ID, 'first_name', true);
            $last_name = get_user_meta($user_infos->ID, 'last_name', true);
            /** Create an activation key **/
            $token = wp_generate_password(20, false);
            $wpdb->update($wpdb->users, array('user_activation_key' => $token), array('user_login' => $user_infos->user_login));
            $permalink_option = get_option('permalink_structure');
            $link = '<a href="' . get_permalink(wpshop_tools::get_page_id(get_option('wpshop_checkout_page_id'))) . (!empty($permalink_option) ? '?' : '&') . 'action=direct_payment_link&token=' . $token . '&login=' . rawurlencode($user_infos->user_login) . '&order_id=' . $order_id . '">' . __('Click here to pay your order', 'wpshop') . '</a>';
            /** Send message **/
            $wps_message = new wps_message_ctr();
            $wps_message->wpshop_prepared_email($user_infos->user_email, 'WPSHOP_DIRECT_PAYMENT_LINK_MESSAGE', array('customer_first_name' => $first_name, 'customer_last_name' => $last_name, 'direct_payment_link' => $link, 'order_content' => ''));
            $response = __('Direct payment link has been send', 'wpshop');
            $status = true;
        } else {
            $response = __('An error was occured', 'wpshop');
        }
    } else {
        $response = __('An error was occured, no Order ID defined', 'wpshop');
    }
    echo json_encode(array('status' => $status, 'response' => $response));
    die;
}
开发者ID:pronoSoupe,项目名称:pronobo_soupe,代码行数:33,代码来源:wpshop_ajax.php


示例15: list_table_column_content

 /**
  * Display the content into list table column
  *
  * @param string $column THe column identifier to modify output for
  * @param integer $post_id The current post identifier
  */
 function list_table_column_content($column, $post_id)
 {
     global $wpdb;
     /**	Get wp_users idenfifier from customer id	*/
     $query = $wpdb->prepare("SELECT post_author FROM {$wpdb->posts} WHERE ID = %d", $post_id);
     $current_user_id_in_list = $wpdb->get_var($query);
     /**	Get current post informations	*/
     $customer_post = get_post($post_id);
     /**	Get user data	*/
     $current_user_datas = get_userdata($current_user_id_in_list);
     /**	Switch current column for custom case	*/
     $use_template = true;
     switch ($column) {
         case 'customer_identifier':
             echo $post_id;
             $use_template = false;
             break;
         case 'customer_date_subscription':
             echo mysql2date(get_option('date_format'), $current_user_datas->user_registered, true);
             $use_template = false;
             break;
         case 'customer_date_lastlogin':
             $last_login = get_user_meta($current_user_id_in_list, 'last_login_time', true);
             if (!empty($last_login)) {
                 echo mysql2date(get_option('date_format') . ' ' . get_option('time_format'), $last_login, true);
             } else {
                 _e('Never logged in', 'wpshop');
             }
             $use_template = false;
             break;
     }
     /**	Require the template for displaying the current column	*/
     if ($use_template) {
         $template = wpshop_tools::get_template_part(WPS_ACCOUNT_DIR, WPS_ACCOUNT_PATH . WPS_ACCOUNT_DIR . '/templates/', 'backend', 'customer_listtable/' . $column);
         if (is_file($template)) {
             require $template;
         }
     }
 }
开发者ID:pronoSoupe,项目名称:pronobo_soupe,代码行数:45,代码来源:wps_customer_ctr.php


示例16: foreach

<div class="wps-gridwrapper6-marged">
<?php 
$step_finished = false;
foreach ($steps as $step_id => $step) {
    $step_id += 1;
    $step_class = $default_step == $step_id ? 'wps-checkout-step-current' : ($default_step > $step_id ? 'wps-checkout-step-finished' : 'wps-checkout-step');
    $step_finished = $default_step > $step_id ? true : false;
    require wpshop_tools::get_template_part(WPS_CLASSIC_CHECKOUT_DIR, $this->template_dir, "frontend", "checkout_step_indicator/checkout_step_indicator_step");
}
?>
</div>

开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:11,代码来源:checkout_step_indicator.php


示例17: wps_orders_update_cart_informations

 /**
  * AJAX - Update cart informations
  */
 function wps_orders_update_cart_informations()
 {
     $status = false;
     $order_id = !empty($_POST['order_id']) ? intval($_POST['order_id']) : '';
     $shipping_cost = !empty($_POST['shipping_cost']) ? wpshop_tools::varSanitizer($_POST['shipping_cost']) : '';
     $discount_value = !empty($_POST['discount_amount']) ? wpshop_tools::varSanitizer($_POST['discount_amount']) : '';
     $discount_type = !empty($_POST['discount_type']) ? wpshop_tools::varSanitizer($_POST['discount_type']) : '';
     if (!empty($order_id)) {
         $order_meta = get_post_meta($order_id, '_order_postmeta', true);
         $order_meta['order_shipping_cost'] = $shipping_cost;
         //Add discounts if exists
         if (!empty($discount_value) && !empty($discount_type)) {
             $order_meta['order_discount_type'] = $discount_type;
             $order_meta['order_discount_value'] = $discount_value;
         }
         $wps_cart = new wps_cart();
         $order_meta = $wps_cart->calcul_cart_information(array(), '', $order_meta, true);
         update_post_meta($order_id, '_order_postmeta', $order_meta);
         $status = true;
     }
     echo json_encode(array('status' => $status));
     wp_die();
 }
开发者ID:pronoSoupe,项目名称:pronobo_soupe,代码行数:26,代码来源:wps_orders_in_back_office.php


示例18: _e

		<h2><?php 
_e('WP-Shop POS Software', 'wps-pos-i18n');
?>
 <a class="add-new-h2" href="<?php 
echo admin_url('admin.php?page=wps-pos&new_order=yes');
?>
"><?php 
_e('Create a new order', 'wps-pos-i18n');
?>
</a></h2>
	<!-- 	<div class="wpspos-main-actions-buttons-container" ><?php 
require_once wpshop_tools::get_template_part(WPSPOS_DIR, WPSPOS_TEMPLATES_MAIN_DIR, 'backend', 'pos', 'top_button');
?>
</div> -->
		<?php 
require_once wpshop_tools::get_template_part(WPSPOS_DIR, WPSPOS_TEMPLATES_MAIN_DIR, 'backend', 'tab_pos');
?>
	</div>

	<div id="wpspos-dashboard-widgetswrap" class="metabox-holder" ><?php 
/**	Create nonce for metabox order saving securisation	*/
wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false);
/**	Create nonce for metabox order saving securisation	*/
wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
/**	Call the different fonction to add meta boxes on dashboard	*/
do_meta_boxes('wpspos-dashboard', 'wpspos-dashboard-summary', null);
?>
		<div class="wpspos-dashboard-contents wpspos-current-step-<?php 
echo $current_step;
?>
" >
开发者ID:pronoSoupe,项目名称:pronobo_soupe,代码行数:31,代码来源:pos.php


示例19: wps_dashboard_help


//.........这里部分代码省略.........
             $help_cases['download_newsletter_contacts'] = array('edge' => 'left', 'at' => 'left bottom', 'my' => 'left top', 'pointer_id' => '#download_newsletter_contacts');
             break;
         case 'wpshop_product':
             $help_cases['product_page_categories'] = array('edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_product_categorydiv');
             $help_cases['product_datas_configuration'] = array('edge' => 'bottom', 'at' => 'center top', 'my' => 'bottom right', 'pointer_id' => '#wpshop_product_fixed_tab');
             $help_cases['product_display_configuration'] = array('edge' => 'bottom', 'at' => 'right bottom', 'my' => 'bottom', 'pointer_id' => '.wpshop_product_data_display_tab');
             $help_cases['product_variations'] = array('edge' => 'bottom', 'at' => 'right bottom', 'my' => 'bottom', 'pointer_id' => '#wpshop_new_variation_list_button');
             $help_cases['product_variations_configuration'] = array('edge' => 'bottom', 'at' => 'right bottom', 'my' => 'bottom', 'pointer_id' => '#wpshop_variation_parameters_button');
             $help_cases['add_product_automaticly_to_cart'] = array('edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_product_options');
             break;
         case 'edit-wpshop_product_category':
             $help_cases['category_filterable_attributes'] = array('edge' => 'bottom', 'at' => 'top', 'my' => 'bottom', 'pointer_id' => '.filterable_attributes_container');
             $help_cases['category_picture'] = array('edge' => 'bottom', 'at' => '', 'my' => 'bottom', 'pointer_id' => '.category_new_picture_upload');
             break;
         case 'wpshop_shop_order':
             $help_cases['order_customer_comment'] = array('edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_order_customer_comment');
             $help_cases['order_notification_message'] = array('edge' => 'bottom', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_order_private_comments');
             $help_cases['order_shipping_box'] = array('edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_order_shipping');
             break;
         case 'wpshop_shop_message':
             $help_cases['message_historic'] = array('edge' => 'bottom', 'at' => '', 'my' => '', 'pointer_id' => '#wpshop_message_histo');
             break;
         case 'settings_page_wpshop_option':
             $help_cases['options_payment_part'] = array('edge' => 'right', 'at' => '', 'my' => '', 'pointer_id' => '#wps_payment_mode_list_container');
             break;
     }
     if (!empty($help_cases)) {
         /** Get help data seen by user **/
         $closed_help_window = get_user_meta(get_current_user_id(), '_wps_closed_help', true);
         /**	Read the different help cases	*/
         foreach ($help_cases as $help_id => $help_case) {
             if (empty($closed_help_window) || !empty($closed_help_window) && !array_key_exists($help_id, $closed_help_window)) {
                 switch ($help_id) {
                     case 'download_newsletter_contacts':
                         $pointer_content = '<h3>' . __('Customers information download', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('You can download emails of customers who accept to receive your commercials offers or your partners commercials offers by newsletter', 'wpshop') . '</p>';
                         break;
                     case 'product_page_categories':
                         $pointer_content = '<h3>' . __('WPShop Categories', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('You can classify your products by category.', 'wpshop') . '<br/></p>';
                         $pointer_content .= '<p><a href="' . admin_url('edit-tags.php?taxonomy=wpshop_product_category&post_type=wpshop_product') . '" class="button-primary" target="_blank">' . __('Create my WPShop categories', 'wpshop') . '</a></p>';
                         break;
                     case 'product_datas_configuration':
                         $pointer_content = '<h3>' . __('Product configurations', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('Here, you can configure your product (Price, weight, reference and all attributes you want to create and affect to products', 'wpshop') . '</p>';
                         break;
                     case 'product_display_configuration':
                         $pointer_content = '<h3>' . __('Product display configurations', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('Here, you can manage what elements you want to display on your product page', 'wpshop') . '</p>';
                         break;
                     case 'product_variations':
                         $pointer_content = '<h3>' . __('Product variations', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('Here, you can generate your product variations.', 'wpshop') . '</p><br/>';
                         $pointer_content .= '<p><a href="http://www.wpshop.fr/documentations/configurer-un-produit-avec-des-options/" class="button-primary" target="_blank">' . __('Read the tutorial', 'wpshop') . '</a></p>';
                         break;
                     case 'product_variations_configuration':
                         $pointer_content = '<h3>' . __('Variations configuration', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('Here, you can manage your product variations configurations (Display "Price from", variation price priority...).', 'wpshop') . '</p>';
                         break;
                     case 'add_product_automaticly_to_cart':
                         $pointer_content = '<h3>' . __('Add product to cart', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('If you check this checkbox, this produc will be add automaticly to cart. This functionnality is helpful if you want to bill fees for example.', 'wpshop') . '</p>';
                         break;
                     case 'category_filterable_attributes':
                         $pointer_content = '<h3>' . __('Filterable search', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('You can add a filter search to your WPShop, here will be display all available attributes for a filter search in this category', 'wpshop') . '</p><br/>';
                         $pointer_content .= '<p><a href="http://www.wpshop.fr/documentations/la-recherche-par-filtre/" class="button-primary" target="_blank">' . __('Read the filter search tutorial', 'wpshop') . '</a></p>';
                         break;
                     case 'category_picture':
                         $pointer_content = '<h3>' . __('Category image', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('You can add a picture to illustrate your category', 'wpshop') . '</p>';
                         break;
                     case 'order_customer_comment':
                         $pointer_content = '<h3>' . __('Order customer comment', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('Here is displayed the customer comment wrote during the order', 'wpshop') . '</p>';
                         break;
                     case 'message_historic':
                         $pointer_content = '<h3>' . __('Message Historic', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('This is this message historic. You can check here if an automatic e-mail was send to a customer', 'wpshop') . '</p>';
                         break;
                     case 'order_notification_message':
                         $pointer_content = '<h3>' . __('Order notification', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('You can add a private comment to the order or send an comment to customer about this order', 'wpshop') . '</p>';
                         break;
                     case 'order_shipping_box':
                         $pointer_content = '<h3>' . __('Shipping actions', 'wpshop') . '</h3>';
                         $pointer_content .= '<p>' . __('Here, you can manage your shipping actions, download the shipping slip.', 'wpshop') . '</p>';
                         break;
                     case 'options_payment_part':
                         $pointer_content = '<h3>' . __('Payment configuration', 'wpshop') . '</h3><p>' . __('You can manage your payment methods (Change name, add description, add a logo and apply configurations ). You can add others payment methods', 'wpshop') . '</p><br/><p><a href="http://shop.eoxia.com/boutique/shop/modules-wpshop/modules-de-paiement/" class="button-primary" target="_blank">' . __('See available payment methods', 'wpshop') . '</a></p>';
                         break;
                     default:
                         $pointer_content = '';
                         break;
                 }
                 require wpshop_tools::get_template_part(WPS_HELP_DIR, WPS_HELP_TEMPLATES_MAIN_DIR, 'backend', 'help', 'container');
             }
         }
     }
 }
开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:101,代码来源:wps_help_ctr.php


示例20: _e

)</strong> : </label>
			<div class="wps-form"><input type="text" name="weight_rule" id="<?php 
echo $k;
?>
_weight_rule" class="shipping_rules_configuration_input"/></div>
		</div>

		<div class="wps-form-group">
			<label for="<?php 
echo $k;
?>
_shipping_price"><?php 
_e('Price', 'wpshop');
?>
 <strong>(<?php 
echo wpshop_tools::wpshop_get_currency();
?>
 <?php 
echo WPSHOP_PRODUCT_PRICE_PILOT;
?>
)</strong> : </label>
			<div class="wps-form"><input type="text" name="shipping_price" id="<?php 
echo $k;
?>
_shipping_price" class="shipping_rules_configuration_input"/></div>
		</div>
	</div>

	<div class="wps-row">
		<input type="checkbox" id="<?php 
echo $k;
开发者ID:fedeB-IT-dept,项目名称:fedeB_website,代码行数:31,代码来源:shipping-mode-configuration-interface.php



注:本文中的wpshop_tools类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP x2base类代码示例发布时间:2022-05-23
下一篇:
PHP wpl_request类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap