php在xlwoocommerce销售触发插件的uncode主题中更改woocommerce单一产品位置(代码片段)

author author     2022-12-12     309

关键词:

/**
 * Add This whole code in working theme functions.php inside php tag to alter woocommerce native positions
 * Theme: https://themeforest.net/item/uncode-creative-multiuse-wordpress-theme/13373220
 * XL WooCommerce Sales Trigger Class Instance
 */
add_action('wp', 'uncode_wcst_modify_positions', 99);
if (!function_exists('uncode_wcst_modify_positions')) 

    function uncode_wcst_modify_positions() 
        if (class_exists('WCST_Core')) 
                $wcst_core = WCST_Core::get_instance();

                // removing below price and below add to cart buttton action hook of plugin
                remove_action('woocommerce_after_single_product_summary', array($wcst_core, 'wcst_position_above_tab_area'), 9.8);
                remove_action('woocommerce_after_single_product_summary', array($wcst_core, 'wcst_position_below_related_products'), 21.2);

                // hooking below functions for 'uncode' theme
                add_action('uncode_theme_above_tab_area', function () 
                    echo '<div class="row row-parent limit-width">';
                , 9);
                add_action('uncode_theme_above_tab_area', array($wcst_core, 'wcst_position_above_tab_area'), 10);
                add_action('uncode_theme_above_tab_area', function () 
                    echo '</div>';
                , 11);
                add_action('uncode_theme_below_related_products', array($wcst_core, 'wcst_position_below_related_products'), 10);
        
    



add_action('woocommerce_single_product_summary', function() 
    echo '<div style="clear:both;"></div>';
, 10);

add_action('woocommerce_before_template_part', 'wcst_theme_helper_uncode_before_template_part', 99);

function wcst_theme_helper_uncode_before_template_part($template_name = '', $template_path = '', $located = '', $args = array()) 
    if (empty($template_name)) 
        return '';
    
    if ($template_name == 'single-product/tabs/tabs.php') 
        do_action('uncode_theme_above_tab_area');
    


add_action('woocommerce_after_template_part', 'wcst_theme_helper_uncode_after_template_part', 99);

function wcst_theme_helper_uncode_after_template_part($template_name = '', $template_path = '', $located = '', $args = array()) 
    if (empty($template_name)) 
        return '';
    
    if ($template_name == 'single-product/related.php') 
        do_action('uncode_theme_below_related_products');
    

php更改woocommerce单个产品在wowmall主题中的位置,用于xlwoocommerce销售触发插件(代码片段)

查看详情

php为xlwoocommerce销售触发插件更改oxygen主题的woocommerce单品页面位置(代码片段)

查看详情

php为xlwoocommerce销售触发插件更改eva主题的woocommerce单一产品页面位置(代码片段)

查看详情

php为betheme改变woocommerce单一产品页面位置,用于xlwoocommerce销售触发插件(代码片段)

查看详情

php销售触发器:修改xlplugins的客户端“或”的销售代码段触发器输出(代码片段)

查看详情

php致电销售触发:低库存通过短代码触发至低于价格位置(代码片段)

查看详情

php触发joomla插件短代码(在模板中)(代码片段)

查看详情

php销售触发器:向salescount或salessnippet触发数据提取添加更多wc状态。(代码片段)

查看详情

MySQL 查询 - 创建一个触发器,在销售发生后更新库存水平

】MySQL查询-创建一个触发器,在销售发生后更新库存水平【英文标题】:MySQLQuery-CreateaTriggerthatupdatesstocklevelsonceasaletakesplace【发布时间】:2019-11-1316:59:52【问题描述】:每次购买产品时,我都需要创建一个触发器来更新我的库存... 查看详情

为什么s/4hana的销售订单创建会触发生产订单的创建

调用S/4HANA销售订单创建函数SD_SALES_DOCU_MAINTAIN创建一个销售订单时,会触发生产订单的创建。销售订单的每个行项目对应一个独立的生产订单,SD_SALES_DOCU_MAINTAIN相当于CRM里的CRM_ORDER_MAINTAIN,在LOOP里处理每一个行项目:观察这个... 查看详情

php更改woocommerce单个产品页面位置为结局的商人主题:woocommerce销售倒计时计时器和折扣插件(代码片段)

查看详情

无法激活插件,因为它触发了致命错误:意外的“require_once”

】无法激活插件,因为它触发了致命错误:意外的“require_once”【英文标题】:Plugincouldnotbeactivatedbecauseittriggeredafatalerror:unexpected\'require_once\'【发布时间】:2015-11-1820:23:16【问题描述】:我正在尝试使用插件在MySQL中创建自定义... 查看详情

选择的插件更改事件未触发

】选择的插件更改事件未触发【英文标题】:Chosenpluginchangeeventnottriggering【发布时间】:2014-02-1203:54:36【问题描述】:我正在使用ChosenjQuery插件并注意到change事件仅在页面加载时起作用,不是每次input字段正在改变。如何在每次... 查看详情

用户权限 - 用户角色触发代码 (Wordpress)

】用户权限-用户角色触发代码(Wordpress)【英文标题】:Userpermission-triggeringcodeonuserrole(Wordpress)【发布时间】:2011-01-0510:52:44【问题描述】:我正在用PHP开发一个自定义插件,因此现有插件无法使用。我想要实现的是我想在帖子中... 查看详情

插入或更新销售项目后的 oracle 触发器

】插入或更新销售项目后的oracle触发器【英文标题】:oracletriggerafterinsertingorupdatingasalesitem【发布时间】:2010-01-2023:17:48【问题描述】:我有这张表,它代表一个弱实体,是一个用于介绍订购项目的典型表:插入ITEM_FORNECIMENTO值... 查看详情

WooCommerce:如何在循环外显示销售产品

】WooCommerce:如何在循环外显示销售产品【英文标题】:WooCommerce:Howtoshowsaleproductsoutsideloop【发布时间】:2017-02-2116:42:50【问题描述】:我已经为我们的商店创建了一个标准的php页面模板,应该在销售页面上使用该模板,在该页... 查看详情

断点未使用 PHP/XAMPP/NetBeans/Moodle 触发

】断点未使用PHP/XAMPP/NetBeans/Moodle触发【英文标题】:BreakpointnotfiringusingPHP/XAMPP/NetBeans/Moodle【发布时间】:2010-10-0711:30:53【问题描述】:这个有点晦涩难懂。我的设置都在我的本地Windows机器上运行;我已经安装了NetBeansIDE、运行X... 查看详情

在 Eclipse 工作区中触发保存操作时执行自定义插件操作

】在Eclipse工作区中触发保存操作时执行自定义插件操作【英文标题】:Performacustompluginactionwhensaveactionistriggeredintheeclipseworkspace【发布时间】:2018-08-2906:18:52【问题描述】:我开发了一个插件来为工作空间中的文件生成UUID。我希... 查看详情