fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Swatches for composite product components

T Tempel

Hi guys,

 

Really like the functionality of this plugin. Great job on that part!

Could you help me figure out a way to also use these swatches for selecting options among composite product’s components?
In this case the composite product is the parent of it’s components (child). The difference is that these components aren’t attributes but also products in there own right.

This is the data structure documentation and this is the filter reference.

Could you please take a look and see if there is a way to get your plugin to also work for component options?

Kind regards, Matt

 

Please find the product editor for this product type attached below.

I also have an add-to-cart URL structure example that helps you understand the possibility for parsing the data into a redirect/add-to-cart URL if that’s easier then editing the plugin source files.

https://krygersports.nl/staging/product/home-gym-box/?wccps_c0=5529&wccps_c1=2634&wccpq_c0=1&wccpq_c1=1&wccpv_c1=2690&wccp_attribute_pa_coating_c1=blue-grey&component_1626554349_bundle_quantity_80=2&component_1626554349_bundle_quantity_81=4&component_1626554349_bundle_quantity_82=1&component_1626554349_bundle_quantity_83=1&component_1626554349_bundle_quantity_84=2&component_1626554349_bundle_quantity_85=2&component_1626554349_bundle_quantity_86=1&component_1626554349_bundle_quantity_87=1&quantity=1&wccpm0=1626554349&wccpm1=1633798361&wccpl=2&add-to-cart=5525#bundle

 

 

T Tempel

I’d also like to add that there’s quite a lot of people on the elementor forum that are also looking for a way to configure the composite products type, so this feature might actually land you quite a few extra customers.

 

Hakik Zaman

Hello T Tempel,

Thanks for reaching out to us. Unfortunately, the feature is not currently available.

Our plugin was developed for Variable type products.

But it is a great idea, you can put this feature request here- https://storepress.fider.io/

I will discuss this with my team.

Cheers!

T Tempel

hi, thanks for getting back to me!

 

I might have work-around, but I need some help.
Hi,

Is there a way to change the add-to-cart button in your widget in such a way that it doesn’t have a function/action, but rather parse a specifiek data-field into the ‘action field’ attached to it?

I’d like to dynamically pull a bit of text (a url in this case) from the selected varitation’s description field and parse it into the add-to-cart button’s action field. I don’t mind changing the widget files.

Or is it possible to use the ‘add-to-cart-selector’ option in your widget’s settings? If yes, how would i go about finding the right selector to pull data from the product variation’s description box? (I’ve manually added unique add-to-cart-URL’s for each possible composite. The variable product is just a ‘pseudo’ product that allows me to use your widget in the front end.)

any clue?

Hakik Zaman

Hello T Tempel,

Here is add to cart button selector we use-

.wvs_add_to_cart_button

We use the default WooCommerce add-to-cart.php template to cart a variation from the archive page.

Here is the path woocommerce > templates > loop > add-to-cart.php

You will get add to cart related js here-

woo-variation-swatches-pro > assets > js > add-to-cart-variaion.js

Note: We don’t have a widget for add to cart button.

Thanks