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

author author     2022-12-12     485

关键词:

<?php

/**
 * Add This whole code in working theme functions.php inside php tag to alter woocommerce native positions
 * Theme: https://themeforest.net/item/eva-responsive-woocommerce-theme/19331563
 * XL WooCommerce Sales Trigger Class Instance
 */
add_action('wp', 'eva_wcst_modify_positions', 90);
if (!function_exists('eva_wcst_modify_positions')) 

    function eva_wcst_modify_positions() 
        if (class_exists('WCST_Core')) 
          $wcst_core = WCST_Core::get_instance();
                
			    // removing duplicate price
			    remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10);
			    
			    // removing wcst action hooks on theme
			    remove_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_above_title'), 2.2);
			    remove_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_below_title'), 9.2);
			    remove_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_below_review'), 11);
			    remove_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_below_price'), 17.2);
			    remove_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_below_short_desc'), 21.2);
			    remove_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_below_add_cart'), 39.2);
			    remove_action('woocommerce_single_product_summary', array($wcst_core, 'wcst_position_below_meta'), 41.2);
			    
			    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);

			    // adding wcst action hooks on theme
			    add_action('woocommerce_single_product_summary_single_title', array($wcst_core, 'wcst_position_above_title'), 4);
			    add_action('woocommerce_single_product_summary_single_title', array($wcst_core, 'wcst_position_below_title'), 6);
			    add_action('woocommerce_single_product_summary_single_rating', array($wcst_core, 'wcst_position_below_review'), 12);
			    add_action('woocommerce_single_product_summary_single_price', array($wcst_core, 'wcst_position_below_price'), 12);
			    add_action('woocommerce_single_product_summary_single_excerpt', array($wcst_core, 'wcst_position_below_short_desc'), 22);
			    add_action('woocommerce_single_product_summary_single_add_to_cart', array($wcst_core, 'wcst_position_below_add_cart'), 32);
			    add_action('woocommerce_single_product_summary_single_meta', array($wcst_core, 'wcst_position_below_meta'), 42);
			    
			    add_action('woocommerce_after_single_product_summary_data_tabs', array($wcst_core, 'wcst_position_above_tab_area'), 8);
			    add_action('woocommerce_after_single_product_summary_related_products', array($wcst_core, 'wcst_position_below_related_products'), 22);
        
    

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

查看详情

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

查看详情

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

查看详情

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

查看详情

php为finale更改woocommerce单一产品页面位置为thegem主题:woocommerce销售倒数计时器和折扣插件(代码片段)

查看详情

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

查看详情

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

查看详情

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

查看详情

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

查看详情

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

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

如何触发jQuery asual的地址插件的更改事件?

】如何触发jQueryasual的地址插件的更改事件?【英文标题】:HowtotriggerjQueryasual\'saddressplugin\'schangeevent?【发布时间】:2012-04-2420:16:28【问题描述】:我正在使用jQueryAsualAddress插件:http://www.asual.com/jquery/address/jQueryAsualAddress插件是... 查看详情

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

查看详情

当作为弹出框触发时更改 MasterViewController 的大小

】当作为弹出框触发时更改MasterViewController的大小【英文标题】:ChangethesizeofMasterViewControllerwhenfiredasapopover【发布时间】:2012-03-3112:24:31【问题描述】:当使用溢出视图控制器时,我有一个主视图和详细视图。当iPad处于纵向模式... 查看详情

为 kendo ui Combobox 触发了两次更改事件

】为kendouiCombobox触发了两次更改事件【英文标题】:ChangeeventfiredtwiceforkendouiCombobox【发布时间】:2018-07-1308:18:14【问题描述】:我注意到我的应用程序中的所有组合框都有一些奇怪的行为,一段时间后我注意到KendoUI组合框两次... 查看详情

php更改计时器和触发器对wc本机位置的位置(代码片段)

查看详情

将Kong插件配置为仅触发一种或多种方法?

】将Kong插件配置为仅触发一种或多种方法?【英文标题】:ConfigureKongplugintoonlytriggerforoneormoremethods?【发布时间】:2021-02-1001:49:19【问题描述】:有没有什么方法可以配置一个插件只触发一个给定的方法或一组方法?-routes:-name:so... 查看详情

Jenkins 也为共享库更改运行轮询或推送触发器作业

】Jenkins也为共享库更改运行轮询或推送触发器作业【英文标题】:Jenkinspollorpushtriggerjobrunforsharedlibrarychangestoo【发布时间】:2020-02-2517:59:19【问题描述】:我在我的git存储库中定义了JenkinsPipeline工作。//File:deployment/jenkinsfiles/stagi... 查看详情

如果通过API添加,如何在谷歌表格中添加更改销售数据

】如果通过API添加,如何在谷歌表格中添加更改销售数据【英文标题】:HowtoadddataofchangingsellingooglesheetsifitaddsthroughAPI【发布时间】:2020-06-1003:05:10【问题描述】:A在Google表格中有一个表格,我通过API从网站联系表中获取数据。... 查看详情