• Resolved atrabile

    (@atrabile)


    Hi, nice plugin but I find myself facing a problem : when I add the belt to the basket, the leather goes into the basket without the variations.

    all leather variations are recorded and work well alone…

    Could it be Divi who create the problem?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @atrabile,

    Please ensure that you added variation for each attributes combination. That means you can’t use “Any…” here https://www.screencast.com/t/fzoFiYecbm

    For more quickly, you can use the bulk actions https://www.screencast.com/t/uoM6BwVpnC

    After that, the grouped product will work fine.

    Regards,

    Thread Starter atrabile

    (@atrabile)

    Hi,
    thank you for your reply.

    i already did…..

    variations.gif

    • This reply was modified 3 years, 4 months ago by atrabile.
    Thread Starter atrabile

    (@atrabile)

    Well, i was right, i made a test with the 2021 worpdress theme and it works fine so the problem come from Divi theme…

    Could you solve the problem please, i’m sure i’m not the only one to use divi for a shop.
    Making it compatible with Divi would be a big plus for you.

    Plugin Author WPClever

    (@wpclever)

    Hi @atrabile

    I’ve checked and seen that your theme is missing a class for <body> element.

    Please try to add the below snippet (How to add custom code?):

    add_filter( 'body_class', 'woosg_body_class' );
    function woosg_body_class( $classes ) {
    	global $post;
    	$woosg_product = wc_get_product( $post->ID );
    
    	if ( $woosg_product && $woosg_product->is_type( 'woosg' ) ) {
    		$classes[] = 'product-type-woosg';
    	}
    
    	return $classes;
    }

    If it doesn’t work, please try another snippet:

    add_filter( 'woosg_container_selector', 'your_woosg_container_selector' );
    function your_woosg_container_selector() {
    	return 'body.single-product';
    }
    Thread Starter atrabile

    (@atrabile)

    Hi,

    you saved my life ! first snippet did the trick !

    thank you for the speed of your answers and the troubleshooting.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘the variation is not saved in the basket’ is closed to new replies.