Hello @Mamdouh_USD
Sorry for the late reply, brother. I was outside the whole day. Sure, I will describe the entire process below with screenshots.
Step 1: First, create a custom metafield for the products. See the shot https://prnt.sc/v7jNDAVncC5V → https://prnt.sc/ZYC2xU0Y5y2n
Step 2: Then go to products and you will see the metafield at the bottom. Put a quantity for that. See the shot https://prnt.sc/02jEVD5GO7DN
**Now the coding part. (**Go to theme code → https://prnt.sc/rJj3aG8y82Z8 )
For the product page
Step 3: Find the “main-product.liquid” file.
Step 4: Find the “quantity-input” component and follow the shot https://prnt.sc/rSqnp6b3PS9C
Step 5: Replace the data-min and min attribute whole with the code given below.
Code for the product page:
data-min="{{ product.metafields.namespace.key | default: product.selected_or_first_available_variant.quantity_rule.min }}"
min="{{ product.metafields.namespace.key | default: product.selected_or_first_available_variant.quantity_rule.min }}"
** For the namespace.key part use the namespace.key you copied earlier at Step 1. I used custom.minimum_order_quantity
For the cart page
Step 6: Find the “main-cart-items.liquid” file.
Step 7: Then find the “quantity-input” and dollow the shot https://prnt.sc/5cebyYacSjMA and do the same. I have given the code below.
Code for Cart Page:
min="{{ item.product.metafields.custom.minimum_order_quantity | default: 0 }}"
data-min="{{ item.product.metafields.custom.minimum_order_quantity | default: item.variant.quantity_rule.min }}"
** For the namespace.key part use the namespace.key you copied earlier at Step 1. I used custom.minimum_order_quantity
Let me know if you were able to do it. If you give me collab access, I can do it for you if you want.
Regards