Title: Block variation
Last modified: September 14, 2023

---

# Block variation

 *  Resolved [dilrubaummer](https://wordpress.org/support/users/dilrubaummer/)
 * (@dilrubaummer)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/block-variation/)
 * `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.`
 *     ```wp-block-code
       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](https://wordpress.org/support/users/dilrubaummer/).

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

 *  [hrn1995 (woo-hc)](https://wordpress.org/support/users/aguinaldodarla/)
 * (@aguinaldodarla)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/block-variation/#post-17057463)
 * Hi [@dilrubaummer](https://wordpress.org/support/users/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](https://docs.woocommerce.com/document/how-to-test-for-conflicts/).
   
   Also try to clear your website’s cache by going to **WooCommerce** → **Status**
   → **Tools**, 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](https://www.woocommerce.com/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.](https://woocommerce.com/experts/)
   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](https://wordpress.org/support/users/gabrielfuentes/)
 * (@gabrielfuentes)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/block-variation/#post-17077214)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-gutenberg-products-block_71608f.
   svg)
 * [WooCommerce Blocks](https://wordpress.org/plugins/woo-gutenberg-products-block/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-gutenberg-products-block/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-gutenberg-products-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-gutenberg-products-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-gutenberg-products-block/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Gabriel – a11n](https://wordpress.org/support/users/gabrielfuentes/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/block-variation/#post-17077214)
 * Status: resolved