Title: Sync quantity enabled by default
Last modified: January 16, 2021

---

# Sync quantity enabled by default

 *  [codehouseno](https://wordpress.org/support/users/codehouseno/)
 * (@codehouseno)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/sync-quantity-enabled-by-default/)
 * Would it be possible to have “Sync quantity” enabled by default? Would be great
   to be able to change default state of this (and maybe also the other options)
   from the plugin options, or with filters in child theme/snippets.

Viewing 1 replies (of 1 total)

 *  Plugin Author [WPClever](https://wordpress.org/support/users/wpclever/)
 * (@wpclever)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/sync-quantity-enabled-by-default/#post-13920512)
 * Hi [@codehouseno](https://wordpress.org/support/users/codehouseno/)
 * Please try to add the below code to current-theme (or child-theme)/functions.
   php
 *     ```
       add_action( 'admin_footer', 'woobt_custom_js' );
       function woobt_custom_js() {
       	?>
           <script type="text/javascript">
             jQuery(document).ready(function($) {
               $('#woobt_sync_qty').prop('checked', true).trigger('change');
             });
           </script>
       	<?php
       }
       ```
   
 * You can do the same will other options.

Viewing 1 replies (of 1 total)

The topic ‘Sync quantity enabled by default’ is closed to new replies.

 * ![](https://ps.w.org/woo-bought-together/assets/icon-128x128.png?rev=1858214)
 * [WPC Frequently Bought Together for WooCommerce](https://wordpress.org/plugins/woo-bought-together/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-bought-together/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-bought-together/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-bought-together/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-bought-together/reviews/)

## Tags

 * [default](https://wordpress.org/support/topic-tag/default/)
 * [enabled](https://wordpress.org/support/topic-tag/enabled/)

 * 1 reply
 * 2 participants
 * Last reply from: [WPClever](https://wordpress.org/support/users/wpclever/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/sync-quantity-enabled-by-default/#post-13920512)
 * Status: not resolved