How to update a product WooCommerce in a snippet

Hello everyone,

I search how to update a product Woocommerce in a snippet (like when we click manually on the button update in the panel admin). We use a snippet that’s fired when a new product is added to Woocommerce. The shipping class succefully updated but as long as update manually the product, the shipping cost are not included in the checkout.

Does anyone know why it does this?

Before clicking on update:

After:

Hi,

Let me know if you use HivePress Marketplace or there’s another solution? Our Marketplace extension is not fully suitable for physical products, since it generates Virtual linked products for listings (these don’t have shipping enabled), there’s no cart and front-end shipping features, etc. - changing this would require advanced customizations.

We are using Hivepress, Hivepress Marketplace and Woocommerce to receive payments. Automatically, when a user add a listing to our plateform, a product is created in Woocommerce. But when we click « buy now » in the product page, we can see the description of the price, but until we manually update the product via the WordPress > Woocommerce > products admin panel, it looks like the product is not “validated” and the shipping costs are not not noted in this description.

Yes, Marketplace generates products of Virtual type so shipping is not enabled for them, this extension is not fully suitable for physical goods. You’d have to customize it or manually update products.

P.S. If you purchased a theme or extension, please enter the license key in the forum profile settings, this will enable the Premium Support badge and ensure a 24-hour turnaround time.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.