Follow the steps below to enable the minimum items per product for your wholesale order. Also, if you are selling your product in packs, you can enable this feature here.
On your Fena Toolkit Account
Step 1. Enable it in the Settings on your Fena Toolkit under Apps and for the Shopify store you connected
It's especially relevant for people who sell in packs
On your Shopify Store
In Settings
Step 2. If not added already, add and enable Fena Checkout Rule in Shopify Settings > Checkout and then scroll to the bottom of. the page and enable Fena Wholesale Checkout Validation under Checkout rules
Theme code customisation
Step 3. Under the theme customisation, in the theme.liquid right before the </head> tag paste this code(if you already included it while setting up Collection Snippet - Skip this step)
<script async src="https://fena-b2b-app-public.s3.eu-west-2.amazonaws.com/theme-scripts/theme-frontend-components.js"></script>
Step 4. In your theme product file (e.g. for Down: sections/main-product.liquid) at the top of the file paste this code:
<fena-b2b-app-pack-quantity data-variant-metafields='{{ product.selected_or_first_available_variant.metafields["fena-b2b-app"] | json | base64_encode }}' data-customer-tags='{{ customer.tags | json | base64_encode }}' data-cart-currency-iso='{{ cart.currency.iso_code }}' data-target="product" data-variant-id="{{ product.selected_or_first_available_variant.id }}" data-input-selector="#Quantity-{{ section.id }}" data-form-selector="#product-form-{{ section.id }}" data-is-active="{{shop.metafields['fena-b2b-app'].packQuantityEnabled }}" > </fena-b2b-app-pack-quantity>
Step 5. In you theme cart file ( e.g. for Dawn: sections/main-cart-items.liquid ) after the line {%- for item in cart.items -%} paste this code:
{% assign variantId = item.product.selected_or_first_available_variant.id %} <fena-b2b-app-pack-quantity data-variant-metafields='{{ item.product.selected_or_first_available_variant.metafields["fena-b2b-app"] | json | base64_encode }}' data-customer-tags='{{ customer.tags | json | base64_encode }}' data-cart-currency-iso='{{ cart.currency.iso_code }}' data-target="cart" data-variant-id="{{ item.product.selected_or_first_available_variant.id }}" data-input-selector='input[data-quantity-variant-id="{{ variantId}}"]' data-form-selector="#product-form-{{ section.id }}" data-is-active="{{shop.metafields['fena-b2b-app'].packQuantityEnabled }}"> </fena-b2b-app-pack-quantity>
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article