当前位置: 动力学知识库 > 问答 > 编程问答 >

mysql - Woocommerce add upsells in database

问题描述:

I'm trying to add some upsells and crosssell products in woocommerce.

The last thing i want to do is to add everything manually, so created

query with random selected products and came up with this:

INSERT INTO wp_postmeta VALUES(DEFAULT, product_id, '_crosssell_ids', 'a:3:{i:0;s:3:"crosssell_product_id";i:1;s:3:"crosssell_product_id";i:2;s:3:"crosssell_product_id";}');

But it is not being shown under the product. Is there any flag that indicates

whether this specific product has or not the upsell/crosssell associated?

Is there any other way to add crosssale/upsell products?

Thanks

分享给朋友:
您可能感兴趣的文章:
随机阅读: