Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Woocommerce Variations Through Hook

I want to add variations on my website using wordpress.
I've tried a lot of plugins but they are not working according to my requirements.

Requirements:
I want to variate prices according to given variations:

1) Colors
2) Lining
3) Sizes
4) Leather Type

Please check the image

Anyone can refer plugin or function?

like image 967
Enas Avatar asked Mar 09 '19 09:03

Enas


People also ask

How do I create a custom hook in WooCommerce?

To “hook on” to a function, you'll need: The label of the hook you want to hook onto (for example, `woo_loop_after`). A function which we'll use to display your custom content. An `add_action()` line to perform the “hooking”.


1 Answers

-> Select variable product in product-data dropdown

-> Create 4 attributes 1. Color 2. Lining 3. Size 4. Leather Type enter image description here -> Goto variations and select create variation from all attribute from the dropdown enter image description here -> Add price to the variation and click on update

-> so now your product variation will look like this enter image description here

-> Now you can design color and and lining as check boxes using this plugin enter image description here Using the above steps and mentioned plugin will fill your requirement completly

Please accept as answer if it is helpfull to you Thank You xD

like image 52
Mohammed Muzammil Avatar answered Oct 21 '22 06:10

Mohammed Muzammil