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

PHP woocommerce_upsell_display函数代码示例

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

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



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

示例1: dt_woocommerce_output_upsells

		function dt_woocommerce_output_upsells() {
			$page_layout = dttheme_option('woo',"product-layout");
			$page_layout = !empty($page_layout) ? $page_layout : "content-full-width";
	
			$upsell_products = ( $page_layout === "content-full-width" ) ? 4 : 3;
	
			$output = "";
			ob_start();
			woocommerce_upsell_display($upsell_products,$upsell_products); // X products, X columns
			$content = ob_get_clean();
			if($content):
				$output .= "<div class='upsell-products-container'>{$content}</div>";
			endif;
			echo $output;
		}
开发者ID:namnguyen2312,项目名称:spa,代码行数:15,代码来源:index.php


示例2: wpv_woo_show_upsell_func

 /**
  * Outputs items for upsell.
  * You can configure items for upsell by following this WooCommerce guide.
  * http://docs.woothemes.com/document/related-products-up-sells-and-cross-sells/
  * This is tested to work on single-product pages.
  * @access public
  * @return void
  */
 public function wpv_woo_show_upsell_func()
 {
     global $post, $woocommerce;
     ob_start();
     if (is_object($woocommerce)) {
         //WooCommerce plugin activated
         //Get products
         $product = $this->wcviews_setup_product_data($post);
         if (isset($product) && is_product()) {
             //Executable only on single product page
             //Check if product_type is set
             if (isset($product->product_type)) {
                 //Set check if defined
                 $product_type = $product->product_type;
                 if (!empty($product_type)) {
                     //Defined
                     //Simple or variable products
                     if (function_exists('woocommerce_upsell_display')) {
                         //Call WooCommerce core public function on outputting upsell items
                         woocommerce_upsell_display();
                     }
                     return ob_get_clean();
                 }
             }
         }
     }
 }
开发者ID:rebeccayshen,项目名称:kitlist,代码行数:35,代码来源:Class_WooCommerce_Views.php


示例3: avia_woocommerce_output_upsells

function avia_woocommerce_output_upsells()
{
    global $avia_config;
    $output = "";
    ob_start();
    woocommerce_upsell_display($avia_config['shop_single_column_items'], $avia_config['shop_single_column']);
    // 4 products, 4 columns
    $content = ob_get_clean();
    if ($content) {
        $output .= "<div class='product_column product_column_" . $avia_config['shop_single_column'] . "'>";
        //$output .= "<h3>".(__('You may also like', 'avia_framework'))."</h3>";
        $output .= $content;
        $output .= "</div>";
    }
    $avia_config['woo_upsells'] = $output;
}
开发者ID:Jiersone,项目名称:mac,代码行数:16,代码来源:config.php


示例4: highwind_woocommerce_upsell_display

/**
 * Display upsells in 3 columns
 * @since 1.1.0
 */
function highwind_woocommerce_upsell_display()
{
    woocommerce_upsell_display(-1, 3);
}
开发者ID:hkarriche,项目名称:wordpress,代码行数:8,代码来源:template.php


示例5: avia_woocommerce_output_upsells

function avia_woocommerce_output_upsells()
{
    global $avia_config;
    echo "<div class='product_column product_column_" . $avia_config['shop_single_column'] . "'>";
    woocommerce_upsell_display($avia_config['shop_single_column_items'], $avia_config['shop_single_column']);
    // 4 products, 4 columns
    echo "</div>";
}
开发者ID:eddiewilson,项目名称:new-ke,代码行数:8,代码来源:config.php


示例6: upsell_display

 /**
  * Change products per row for upsells.
  *
  * @since 2.0.0
  */
 public static function upsell_display()
 {
     woocommerce_upsell_display(wpex_get_mod('woocommerce_upsells_count', '4'), wpex_get_mod('woocommerce_upsells_columns', '4'));
 }
开发者ID:iq007,项目名称:MadScape,代码行数:9,代码来源:woocommerce-config.php


示例7: woocommerce_output_upsells

 function woocommerce_output_upsells()
 {
     woocommerce_upsell_display(2, 1);
     // Display 3 products in rows of 3
 }
开发者ID:kiddyhpzx94,项目名称:ISCProject,代码行数:5,代码来源:accesspress-function.php


示例8: spyropress_wc_upsell_display

/** Set limit and column on upsell products */
function spyropress_wc_upsell_display($args)
{
    if (get_setting('shop_upsell', false)) {
        return;
    }
    $limit = get_setting('shop_upsell_limit', 4);
    $columns = get_setting('shop_upsell_columns', 4);
    woocommerce_upsell_display($limit, $columns);
}
开发者ID:rinodung,项目名称:myfreetheme,代码行数:10,代码来源:woocommerce-init.php


示例9: woocommerce_template_single_title

							<div class="uncont">
								<?php 
if ($show_body_title) {
    woocommerce_template_single_title();
}
woocommerce_template_single_rating();
woocommerce_template_single_price();
woocommerce_template_single_excerpt();
woocommerce_template_single_add_to_cart();
woocommerce_template_single_meta();
woocommerce_template_single_sharing();
?>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<?php 
ob_start();
woocommerce_output_product_data_tabs();
woocommerce_upsell_display();
$the_content = ob_get_clean();
echo uncode_get_row_template($the_content, '', '', '', ' product', false, false, false);
ob_start();
woocommerce_output_related_products();
$the_content = ob_get_clean();
echo uncode_get_row_template($the_content, '', $limit_content_width, '', ' row-related', false, true, false);
开发者ID:b0123498765,项目名称:fithealthyandwealthy,代码行数:31,代码来源:content-single-product.php


示例10: woo_wc_upsell_display

 function woo_wc_upsell_display()
 {
     woocommerce_upsell_display(-1, 3);
 }
开发者ID:pwillems,项目名称:mimosa-contents,代码行数:4,代码来源:theme-woocommerce.php


示例11: dt_woocommerce_output_upsells

 function dt_woocommerce_output_upsells()
 {
     $page_layout = dttheme_option('woo', "product-layout");
     $page_layout = !empty($page_layout) ? $page_layout : "content-full-width";
     $upsell_products = $page_layout === "content-full-width" ? 4 : 2;
     $output = "";
     ob_start();
     woocommerce_upsell_display($upsell_products, $upsell_products);
     // X products, X columns
     $content = ob_get_clean();
     if ($content) {
         $content = str_replace('<h2>', '<div class="border-title"><h2>', $content);
         $content = str_replace('</h2>', '<span></span></h2></div>', $content);
         $output .= "<div class='upsell-products-container'>{$content}</div>";
     }
     echo $output;
 }
开发者ID:PNW3DEV,项目名称:iesdb-v1,代码行数:17,代码来源:index.php


示例12: woocommerce_output_upsells

 function woocommerce_output_upsells()
 {
     woocommerce_upsell_display(3, 3);
 }
开发者ID:ksan5835,项目名称:maadithottam,代码行数:4,代码来源:woocommerce.php


示例13: woo_upsell_display

 function woo_upsell_display()
 {
     // Display up sells in correct layout.
     woocommerce_upsell_display(-1, 3);
 }
开发者ID:vanminh0910,项目名称:shangri-la,代码行数:5,代码来源:theme-woocommerce.php


示例14: aggression_woocommerce_product_page_cross_sell_output

 function aggression_woocommerce_product_page_cross_sell_output()
 {
     woocommerce_upsell_display(get_theme_mod('aggression_woocommerce_set_cross_sell_product_limit'), 4);
     // Display 4 products in rows of 4
 }
开发者ID:TheAggressive,项目名称:aggression,代码行数:5,代码来源:woocommerce-settings.php


示例15: woocommerce_pdc_upsells

 function woocommerce_pdc_upsells()
 {
     $columns = get_option('wc_pdc_columns');
     woocommerce_upsell_display(-1, $columns);
 }
开发者ID:sawan34,项目名称:tanzi,代码行数:5,代码来源:details-customiser.php


示例16: ht_redefine_upsell_display

function ht_redefine_upsell_display()
{
    woocommerce_upsell_display('-1', 3);
}
开发者ID:naffan2014,项目名称:greenhomeland,代码行数:4,代码来源:woocommerce.php


示例17: pinnacle_woocommerce_output_upsells

function pinnacle_woocommerce_output_upsells()
{
    woocommerce_upsell_display(4, 4);
}
开发者ID:oeuvrayjoris,项目名称:grece,代码行数:4,代码来源:custom-woocommerce.php


示例18: updateUpsellLimit

 /**
  * Updates upsell limit
  *
  * @access public
  * @return void
  */
 public static function updateUpsellLimit()
 {
     $columns = 4;
     $limit = ThemexCore::getOption('product_upsell_number', 4);
     woocommerce_upsell_display($limit, $columns);
 }
开发者ID:haythameyd,项目名称:powrly,代码行数:12,代码来源:themex.woo.php


示例19: woocommerce_output_upsells

function woocommerce_output_upsells()
{
    $output = null;
    ob_start();
    woocommerce_upsell_display(4, 4);
    $content = ob_get_clean();
    if ($content) {
        $output .= $content;
    }
    echo $output;
}
开发者ID:AntonioColeman,项目名称:Clairvoyant,代码行数:11,代码来源:functions.php


示例20: storefront_upsell_display

 function storefront_upsell_display()
 {
     woocommerce_upsell_display(-1, 3);
 }
开发者ID:karyband,项目名称:Rettner-Website,代码行数:4,代码来源:template-tagsnew.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP woocommerce_wp_checkbox函数代码示例发布时间:2022-05-23
下一篇:
PHP woocommerce_update_order_item_meta函数代码示例发布时间: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