English 中文(简体)
WP 所有进口,如价格报表
原标题:WP All import if statement for prices

我正在通过JSON文档从供应商进口产品。 我有一个习惯领域,为我的网站的批发客户和根据我从供应商那里获得的价格更新的正常销售价格设定。

我正在努力实现这一目标: 如果供应商提供等于0的批发价,要么离开现场,要么将其定为相当于正常价格。

除此以外,出售价格的情况大致相同: 并非所有产品都有销售价格,如果我将销售价格定在供应商再次提供的价格上,客户将获得100%的折扣。

WP 所有进口网站的这种解释令我感到困惑:

[IF({price[.=0]})]Zero[ELSE]Not Zero[ENDIF]

I have tried to implement the [IF({price[.=0]})]Zero[ELSE]Not Zero[ENDIF] following the documentation in WP All Import but with no success.

问题回答

在那儿,我终于找到了解决办法。 利用国际红十字与红新月联会:

[IF({p_price2[1][.="0"]})][ELSE]{p_price2[1]}[ENDIF]




相关问题
Remove shipping for specific products in WooCommerce

I am looking to remove the shipping from few variable products in WooCommerce. I need that few products from cart directly go to PayPal. I added the following code in my theme s functions.php file: ...

Call a function after geolocalization in Woocommerce

I am using the plugin FOX – Currency Switcher Professional for WooCommerce (former name is WOOCS) and everything was working smoothly. Then I have installed a budgeter plugin. Unfortunately, it is not ...

Woocommerce Dynamic Custom Price not updating in checkout

I m trying to update a custom price in checkout via a Woocommerce action hook. I m storing my dynamic price in Session variable. But when I used session variable in hook functions, it shows up on the ...

FiboSearch plugin Woocommerce

Would you please help me adding a Scroll of a result while I am using Fibosearch plugin woocommerce ? I tried to get the ID of the item that is a wrapper for the product list but I could not. I ll be ...

hide button class from logged out user woo commerce

hide button class = "vc_button" from logged out user woocommerce I have tried .logged-out .vc_button{ display: none; } & <?php if ( is_user_logged_in() ) { echo Welcome, ...

热门标签