How can I hook into your wpcss-products POST to get full WooCommerce cart data (including variation ID and attributes)? I need it to be compatible with a plugin that relies on standard Woo cart requests.
Seems I was premature in my success. I am working with the plugin 3DP (https://www.wp3dprinting.com/) which creates an items with some unique attributers. I am getting an error when clicking "add selected items to cart" which leads me to "Invalid Value posted for Printer"
"When using the Share Cart plugin with variable products that have attributes stored as custom taxonomies (e.g., pa_p3d_printer), does Share Cart POST the selected attribute values using the term ID, slug, or label?"
(Follow-up: Can this behavior be configured?)
2. Attribute Validation Compatibility:
"WooCommerce 7.8+ and 9.x have stricter variation attribute validation.
Is Share Cart explicitly preparing the posted attribute fields in a format WooCommerce expects for variable products, or does it just dump the cart's raw attribute values?"
(Follow-up: If not corrected automatically, is there a hook to intercept/modify the attributes before submit?)
3. Customization Hooks or Filters:
"Is there an official hook or filter inside Share Cart to modify the attributes or cart item data before the 'Add Selected Products to Cart' form is submitted or processed?"
(Follow-up: If so, where is it documented or can you provide an example?)
How can I hook into your wpcss-products POST to get full WooCommerce cart data (including variation ID and attributes)? I need it to be compatible with a plugin that relies on standard Woo cart requests.
Hi Jason,
Each shared cart has a key. You can retrieve the cart data from a key like this:
Best regards,
Dustin
Thank you! With this help I was able to get my functionality back! Thank you!
Seems I was premature in my success. I am working with the plugin 3DP (https://www.wp3dprinting.com/) which creates an items with some unique attributers. I am getting an error when clicking "add selected items to cart" which leads me to "Invalid Value posted for Printer"
1. Share Cart POST Format for Variable Products:
"When using the Share Cart plugin with variable products that have attributes stored as custom taxonomies (e.g., pa_p3d_printer), does Share Cart POST the selected attribute values using the term ID, slug, or label?"(Follow-up: Can this behavior be configured?)
2. Attribute Validation Compatibility:
"WooCommerce 7.8+ and 9.x have stricter variation attribute validation.Is Share Cart explicitly preparing the posted attribute fields in a format WooCommerce expects for variable products, or does it just dump the cart's raw attribute values?"
(Follow-up: If not corrected automatically, is there a hook to intercept/modify the attributes before submit?)
3. Customization Hooks or Filters:
"Is there an official hook or filter inside Share Cart to modify the attributes or cart item data before the 'Add Selected Products to Cart' form is submitted or processed?"(Follow-up: If so, where is it documented or can you provide an example?)