• Resolved dilrubaummer

    (@dilrubaummer)


    I have created a new block variation for the WooCommerce checkout block, and while it functions correctly on the frontend checkout page, it fails to work in the Gutenberg editor after a page reload.

    import {registerBlockVariation} from '@wordpress/blocks';
    
    registerBlockVariation(
    	'woocommerce/checkout',
    	{
    		name: 'themehigh-checkout-form-block',
    		title: 'ThemeHigh Checkout Form Block',
            category: "themehigh-checkout-block",
    		attributes: {
    			align: 'wide',
    		},
            innerBlocks: [
               
    			 [
    				'core/paragraph',
    				{
    					placeholder: 'Enter content here...'
    				} 
    			],
                
            ],
            isDefault: true
    	}
    );
    • This topic was modified 2 years, 8 months ago by dilrubaummer.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @dilrubaummer

    It seems to me that your code is correct. However, the issue you’re experiencing could be due to several reasons such as caching issues, plugin conflicts, theme conflicts, or compatibility issues.

    Can you try performing a conflict test to make sure? You can find a more detailed explanation of how to do a conflict test here.

    Also try to clear your website’s cache by going to WooCommerceStatusTools, and do the following:

    • WooCommerce transients – Clear
    • Expired transients – Clear
    • Clear template cache – Clear

    Please also note that we can’t provide support for code customization as per our support policy. Still, if you need customization, we do our best to offer advice and direct you to appropriate resources. Based on the feedback we get from our customers, we highly recommend contacting one of the services on our Customization page. On the other hand, I’ll keep this thread open, allowing other members of the community to contribute their expertise.

    I hope it helps!

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Block variation’ is closed to new replies.