I need some help from the woocommerce experts! Have an php script for automatically / programatically insert of products. In the backend it looks all fine after insert, but in the frontend there is no connecting to the categorie side bar. Looked so much time on DB for finding out the reason, but couldn't find it till now. If I save / refresh / update only one product in the backend per categorie by hand, so all the other products from the categories are will be placed at categorie side bar in frontend. Cause of this reason I'm looking for a php code for "save/refresh/update" the products, wich I can insert to cronjob, who can run after programatically product insert.
关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
woocommerce产品自动/编程插入产品后保存/刷新/更新php代码
收起
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 微信扫一扫点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
追加酬金 (90%的用户在追加酬金后获得了解决方案)
当前问题酬金
¥ 0 (可追加 ¥500)
支付方式
扫码支付
加载中...
0条回答 默认 最新
报告相同问题?
提交
- 2018-04-20 12:17回答 1 已采纳 The filter hook woocommerce_add_to_cart_fragments is missing from your function… To get it work,
- 2018-02-08 11:17回答 2 已采纳 Install plugin WP Rollback and then click rollback in the installed plugins menu on woocommerce. H
- 2019-02-26 16:08回答 1 已采纳 So I fixed this myself. I don't know where I got my previous code from, but I guess this part was
- 2021-02-13 10:12条件块2.0 + WooCommerce 用于基于WooCommerce产品/购物车创建条件块的代码片段 这些示例代码段基于条件块2.0中的自定义PHP逻辑条件
- 2019-04-30 07:51回答 1 已采纳 The following code will display a checkbox field on checkout page that will enable/disable a custo
- 2015-01-28 11:40回答 1 已采纳 I ended up having to change the query to include the $term_id, using the following foreach to get
- 2018-09-25 16:52回答 1 已采纳 found the answer himself. wc_downloadable_file_permission($pd_object->get_id(),$order_product-
- 2021-04-30 08:56郭小闲的博客 上周我更新到PHP 7,我也将WooCommerce更新到3.0.x....当我进一步搜索页面底部的WooCommerce系统状态时,我发现了这个错误customtheme/woocommerce/cart/cart.php version 2.1.0 is out of date.The co...
- 2018-05-29 20:47回答 1 已采纳 it should be something like this: $terms = array( 'exclude-from-search', 'exclude-from-catalog' )
- 2017-10-15 15:06回答 1 已采纳 I would suggest not use custom ID because it might hamper the internal functioning of wordpress.
- 2018-06-12 18:51回答 1 已采纳 Your code is fine just need to change one condition which check the dimension is exist or not. Re
- 2021-04-29 05:35WooSimple 简化的WooCommerce产品页面,通过该页面上的简单设置即可启用。 WooSimple提供简化的WooCommerce产品编辑体验,让您仅关注最重要的领域。 当您尝试添加简单的产品时,产品屏幕上的所有选项不知所措? 翻转...
- 2019-04-20 12:29回答 1 已采纳 I have revisited and completed your existing code as for example it was not working on product var
- 2021-05-05 04:19Yeonhi的博客 我想为相关产品类别设置不同的模板.我更改了single-product.php文件if (is_product_category( 'first-category' )) {woocommerce_get_template_part( 'content', 'single-product' );}else{woocommerce_get_template...
- 2021-05-06 03:39weixin_39559486的博客 商城里的各类商品,排列的顺序也很灵活,管理员可以方便的设置按更新时间排列,随机排列,销量排列等等。可是方便是方便,当一个商城里不同类别的产品,想采用不同的排列方式时,这就有一定难...
- 2021-05-05 04:43WooCommerce API-PHP客户端 WooCommerce REST APIPHP包装器。 使用此库,可以轻松地与WooCommerce REST API进行安全交互。 如果使用HTTPS连接,则该库使用BasicAuth,否则使用Oauth提供与WooCommerce的安全连接。 ...
- 2021-04-26 20:33为禽兽而匿的博客 以下是通过代码的方式: 插件\ woocommerce \模板\单品\产品image.phpif (has_post_thumbnail()) {$image_caption = get_post(get_post_thumbnail_id())->post_excerpt;$image_link = wp_get_attachment_url(get_...
- 2021-05-18 09:37#Woocommerce API 2.2PHP API客户端 ##工作正在进行中
- 2021-05-02 09:56WordPress插件,通过WP GraphQL插件公开WooCommerce产品 query GET_PRODUCTS { products(last: 20) { edges { node { description, content, price, thumbnail, is_on_sale, sale_price, categories { ...
- 2021-04-30 06:01操作一波的博客 我正在尝试插入一个插件,我正在编写产品的变体ID.这是我写的:class mass {public function __construct(){add_action('woocommerce_product_after_variable_attributes',array($this,'thfo_mass'));}public ...
- 没有解决我的问题, 去提问
悬赏问题
- ¥15 GDI处理通道视频时总是带有白色锯齿
- ¥20 用雷电模拟器安装百达屋apk一直闪退
- ¥15 算能科技20240506咨询(拒绝大模型回答)
- ¥15 自适应 AR 模型 参数估计Matlab程序
- ¥100 角动量包络面如何用MATLAB绘制
- ¥15 merge函数占用内存过大
- ¥15 Revit2020下载问题
- ¥15 使用EMD去噪处理RML2016数据集时候的原理
- ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
- ¥15 单片机无法进入HAL_TIM_PWM_PulseFinishedCallback回调函数