Title: dc47's Replies | WordPress.org

---

# dc47

  [  ](https://wordpress.org/support/users/dc47/)

 *   [Profile](https://wordpress.org/support/users/dc47/)
 *   [Topics Started](https://wordpress.org/support/users/dc47/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dc47/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dc47/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dc47/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dc47/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dc47/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] No product quantity in cart for individually sold products](https://wordpress.org/support/topic/no-product-quantity-in-cart-for-individually-sold-products/)
 *  [dc47](https://wordpress.org/support/users/dc47/)
 * (@dc47)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/no-product-quantity-in-cart-for-individually-sold-products/#post-16588093)
 * Found a solution. since the cart.php is a template file move it to your theme
   folder then find this line
 * 
   echo apply_filters( ‘woocommerce_cart_item_quantity’, $product_quantity, $cart_item_key,
   $cart_item ); // PHPCS: XSS ok.then right after that add the below code. if (
   $_product->is_sold_individually() ) {echo “1”;}
    -  This reply was modified 3 years, 2 months ago by [dc47](https://wordpress.org/support/users/dc47/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Set billing country to be user address country](https://wordpress.org/support/topic/set-billing-country-to-be-user-address-country/)
 *  Thread Starter [dc47](https://wordpress.org/support/users/dc47/)
 * (@dc47)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/set-billing-country-to-be-user-address-country/#post-16496123)
 * Yes, I tried it too, seems it works when we update our billing address within
   my account. So I think the issue is with my gravity forms user registration add-
   on. It’s not populating the billing address country when user get registered.
 * I haven’t figured out a way to fix it yet will update here once I do. Let me 
   know if you have any ideas too.
    -  This reply was modified 3 years, 3 months ago by [dc47](https://wordpress.org/support/users/dc47/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Import products with stock in decimal values using REST API](https://wordpress.org/support/topic/import-products-with-stock-in-decimal-values-using-rest-api/)
 *  Thread Starter [dc47](https://wordpress.org/support/users/dc47/)
 * (@dc47)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/import-products-with-stock-in-decimal-values-using-rest-api/#post-16485908)
 * [@viablethought](https://wordpress.org/support/users/viablethought/) thank you!
   I will check it out! really appreciate the help!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Import products with stock in decimal values using REST API](https://wordpress.org/support/topic/import-products-with-stock-in-decimal-values-using-rest-api/)
 *  Thread Starter [dc47](https://wordpress.org/support/users/dc47/)
 * (@dc47)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/import-products-with-stock-in-decimal-values-using-rest-api/#post-16482570)
 * [@viablethought](https://wordpress.org/support/users/viablethought/) hey, yeah
   I was wondering about that too. But I wasn’t able to get it working even after
   I edited those files. Would you be able to share the file paths and which lines
   you replaced if possible? We are currently stuck with a project which we cant
   deliver because of this issue.
 * [@ihereira](https://wordpress.org/support/users/ihereira/) noted. Yeah we have
   already contacted the plugin developers through WooCommerce support. but they
   said that plugin works without any issues and we will have to contact the ERP
   system and check with them if they are rounding the values when they are sending
   data. Of course that’s the first thing we did when we had the issue. So now we
   are stuck with this project till we find a workaround. Would you be able to help
   us out on this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Import products with stock in decimal values using REST API](https://wordpress.org/support/topic/import-products-with-stock-in-decimal-values-using-rest-api/)
 *  Thread Starter [dc47](https://wordpress.org/support/users/dc47/)
 * (@dc47)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/import-products-with-stock-in-decimal-values-using-rest-api/#post-16477058)
 * I have already tried those steps as well, but no luck for me. would you be able
   to help me with changing the core file values? I might have made a mistake maybe?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Import products with stock in decimal values using REST API](https://wordpress.org/support/topic/import-products-with-stock-in-decimal-values-using-rest-api/)
 *  Thread Starter [dc47](https://wordpress.org/support/users/dc47/)
 * (@dc47)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/import-products-with-stock-in-decimal-values-using-rest-api/#post-16471783)
 * Hi [@xue28](https://wordpress.org/support/users/xue28/)
 * Thank you for the reply, but that thread is to enable decimal values for the 
   Woocommerce. I’m using the smart quantity plugin to achieve that. the issue I’m
   having is with the REST API. when we import a product from our ERP system the
   REST API rounds the value. because it’s only accepting integer values. Is it 
   possible to make the REST API accept decimal values for stock quantity from our
   website?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Block Lab] if empty hide field](https://wordpress.org/support/topic/if-empty-hide-field/)
 *  Thread Starter [dc47](https://wordpress.org/support/users/dc47/)
 * (@dc47)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/if-empty-hide-field/#post-13856244)
 * Hey is it possible to add 2 inputs in the same echo?
 *     ```
       <?php 
   
       $prd_img = block_value( 'prod-image' ); 
       $img_alt = block_value( 'alt_img' ); 
       if ( $prd_img ) && ($img_alt) {echo '<img class="ic_prdct_img" src="' . $prd_img . '"alt="' . $img_alt . '">' ;} 
   
       ?>
       ```
   
    -  This reply was modified 5 years, 5 months ago by [dc47](https://wordpress.org/support/users/dc47/).
    -  This reply was modified 5 years, 5 months ago by [dc47](https://wordpress.org/support/users/dc47/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Block Lab] if empty hide field](https://wordpress.org/support/topic/if-empty-hide-field/)
 *  Thread Starter [dc47](https://wordpress.org/support/users/dc47/)
 * (@dc47)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/if-empty-hide-field/#post-13826359)
 * Thank you!

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