dc47
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] No product quantity in cart for individually sold productsFound 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, 1 month ago by dc47.
Forum: Plugins
In reply to: [WooCommerce] Set billing country to be user address countryYes, 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, 2 months ago by dc47.
Forum: Plugins
In reply to: [WooCommerce] Import products with stock in decimal values using REST API@viablethought thank you! I will check it out! really appreciate the help!
Forum: Plugins
In reply to: [WooCommerce] Import products with stock in decimal values using REST API@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 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
In reply to: [WooCommerce] Import products with stock in decimal values using REST APII 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
In reply to: [WooCommerce] Import products with stock in decimal values using REST APIHi @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
In reply to: [Block Lab] if empty hide fieldHey 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 . '">' ;} ?>Forum: Plugins
In reply to: [Block Lab] if empty hide fieldThank you!