woocommerce / woocommerce-subscriptions-importer-exporter

Import your subscribers to WooCommerce from a CSV. Or export your subscription data from WooCommerce to CSV.
GNU General Public License v3.0
149 stars 57 forks source link

Order Item is always Total : 0 with Synchronized subscription import #253

Closed g-man-jones closed 2 years ago

g-man-jones commented 2 years ago

Trying to import Users with a Synchronized subscription product. Whether I use order_items with only product ID, or explicitly set the total cost using: product_id:1045|quantity:1|total:10.00

The Subscriptions totals always reads as follows: Product : $10 / year Subtotal : $10.00 Total : $0.00

Early renewal is therefore not avaialable. I have the filter "wcs_allow_synced_product_early_renewal" enabled.

The synchronized subscription product is working as expected if the User joins the site manually.

g-man-jones commented 2 years ago

I was missing the order_total value, assuming it would pick up the order value from the product ID in the order_items column.