samleemc
Forum Replies Created
-
Forum: Plugins
In reply to: [Points and Rewards for WooCommerce] Referral Link Broken@wpssupport please check the screenshot below. it is captured from our staging site, and it is a brand new installation of the Points and Rewards plugin. The referral link is redirecting a new user to /cart page for no reason.
Forum: Plugins
In reply to: [Points and Rewards for WooCommerce] Referral Link Broken@wpssupport As I mentioned in my ticket above, it is NOT redirected to the homepage, instead, it is being redirect to a /cart page. But since the customer didn’t have anything in the cart, the first page after a new user click the referral button will display an empty cart, which is awful.
How can I fix this?I have duplicated the topic. Let’s discuss in this https://ww.wp.xz.cn/support/topic/order-page-ui-can-not-update-order-status-when-decimal-quantity-product-in-the-c-2/
@frankremmy @shahzeenfarooq I think this is caused by the fact that woocommerce has change the step=any to step=0, and caused this problem?
also, there is no one replying to my question on GitHub as well. Can you guys help here instead?
- This reply was modified 9 months, 2 weeks ago by samleemc.
Hi @frankremmy ,
I have raised the same ticket on woocommercw’s GitHub page. In that ticket, it contain the step to reproduce.
https://github.com/woocommerce/woocommerce/issues/60510
One thing to update, the decimal function is enabled by this plugin “Unit Price for Woocommerce”
But we have not updated this plugin in the past 2 weeks, but this issue came up within the past 2 weeks which we have updated woocommerce from 10.0.4 -> 10.1.1.
Also, we have found that, the “step” attribute has been set to 0, which is not correct, it should be set to “any” or “0.1” which will allow decimal qty. Can you confirm if this is change in the most recent Woocommerce updates?My support team came up with the below code to temporarily fix the issue. That why we can be sure this attribute is causing the issue.
add_action('admin_head', function() {
?>
<script>
window.addEventListener('load', function() {
if (jQuery && jQuery('body').hasClass('post-type-shop_order')) {
setInterval(function() {
jQuery('input[name^="order_item_qty"]').attr('step', 'any');
}, 500);
}
});
</script>
<?php
});Sam
- This reply was modified 9 months, 2 weeks ago by samleemc.
hi @frankremmy
- No, I am not using any plugin or custom code to enable decimal.
- Yes, my website support team have deactivated all the plugin, and the decimal qty still wouldn’t work in the admin UI order page. Once the decimal qty is change to a whole number, it work immediately.
- Yes, only in the admin UI. I can update the status with decimal qty in the cart via the API or even via the bulk action in the listing UI page.
- Yes, all products.
- One additional piece of info, my site has went through 2 woocommerce updates recently, 10.0.4 -> 10.1.0 -> 10.1.1, not sure which one triggered this issue, but according to my memory it was working perfectly at 10.0.4.
Regards,
Sam
- This reply was modified 9 months, 2 weeks ago by samleemc.
I am not able to attach my screenshot. But I am now attaching it from my web hosting.

Forum: Plugins
In reply to: [Unit Price for WooCommerce] Unit meta can not be added using admin portalThanks for your reply!
1. I am at Woocommerce 9.2.3, but still, decimal quantity is NOT supported on WooCommerce’s REST API4. Will try now
Sam
Forum: Plugins
In reply to: [WooCommerce] Allow Float for Order Line Item Quantityhi @ckadenge ,
Thanks for coming back to us. If we are using the latest checkout block (not sure if it ever is related), what is/are the best hook we should use to process the api request before the data is write back to the database and trigger other workflow?
Sam
Forum: Plugins
In reply to: [Unit Price for WooCommerce] Unit meta can not be added using admin portalI have follow your instruction above, and here is all my criteria:
- Order status : pending
- “_has_unit_items” = “true”
- the relevant items have metadata of:
_upw_measurement = weight - added unit_qty to the product metadata too
But it is still not showing in the frontend.
Forum: Plugins
In reply to: [Unit Price for WooCommerce] Unit meta can not be added using admin portal@condless Thanks for your feedback!
Speaking of giving item metadata, I tried to amend item using the wordpress restful API. But whenever I tried to update the item that created by unit_weight plugin, and quantity is not integer, WP restful API will give me an error saying the quantity is not an integer and will not execute my API request to update the item in the order.Is there any way we can bypass this please?
Forum: Plugins
In reply to: [Unit Price for WooCommerce] Price on display different to price chargedHi Condless
Thanks for your support as usual/
In a nutshell, as we sell fish which is the intended use case, what we want to do is below.
1. Display both the unit price (per kg) and the charge price(default to 2kg or 0.5kg depending on the items, for example, some big fish are roughly 2kg per fish, and some smaller one are 0.5kg per fish)
2. Customer to be charged on the default weight (2
Is this something we can achieve?
lets say the fish is £35 per kg, and the fish is default to 2kg.
At the moment, it is really strange
1. On the product page, it is display correctly the unit price and the item price (per 2kg and £70)
2. In the mini cart, the item was added with correct price in item level (2kg £70), but the subtotal in the mini cart only showed £35.
3. Checkout also only charge £35.
Can the cart and the checkout also charge £70?
Thank you!Hi Condless,
Thanks, it was resolved by elementor support.Sam