[Skip to main content](#vessel-content)

#   Require a specific item in the cart for checkout

##

- **[dhopkins](/forum/user/28504-dhopkins "View dhopkins's Profile")**
- [![dhopkins's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28504-dhopkins "View dhopkins's Profile") Topic Author
- [ Offline](/forum/user/28504-dhopkins)

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 11 months ago [\#130615](#130615) by [dhopkins](/forum/user/28504-dhopkins "View dhopkins's Profile")  *[Require a specific item in the cart for checkout](/forum/27-checkout/863306-require-a-specific-item-in-the-cart-for-checkout#130615 "-- HikaShop version -- : HikaShop Essential 2.2 -- Joomla version -- : 2.5x -- PHP version -- : 5.3.x  Hello, Is it possible to have Hikashop require a specific item to be in the cart before allowing the customer to checkout? For example, every order must choose a Soda/Type. No matter what other items the customer has in the cast, if the customer doesn't have a soda in the cart, they aren't allowed to complete the checkout and receive an error message.  I've tried to set the minimum number of the product to 1 but that didn't have the result I wanted.")* was created by *[dhopkins](/forum/user/28504-dhopkins "View dhopkins's Profile")*

-- HikaShop version -- : HikaShop Essential 2.2
-- Joomla version -- : 2.5x
-- PHP version -- : 5.3.x

Hello,
Is it possible to have Hikashop require a specific item to be in the cart before allowing the customer to checkout? For example, every order must choose a Soda/Type. No matter what other items the customer has in the cast, if the customer doesn't have a soda in the cart, they aren't allowed to complete the checkout and receive an error message.

I've tried to set the minimum number of the product to 1 but that didn't have the result I wanted.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MzMwNi1yZXF1aXJlLWEtc3BlY2lmaWMtaXRlbS1pbi10aGUtY2FydC1mb3ItY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14274
-
-

12 years 11 months ago [\#130685](#130685) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Require a specific item in the cart for checkout](/forum/27-checkout/863306-require-a-specific-item-in-the-cart-for-checkout#130685 "-- HikaShop version -- : HikaShop Essential 2.2 -- Joomla version -- : 2.5x -- PHP version -- : 5.3.x  Hello, Is it possible to have Hikashop require a specific item to be in the cart before allowing the customer to checkout? For example, every order must choose a Soda/Type. No matter what other items the customer has in the cast, if the customer doesn't have a soda in the cart, they aren't allowed to complete the checkout and receive an error message.  I've tried to set the minimum number of the product to 1 but that didn't have the result I wanted.")*

Hi,

You can't do it directly like that. The minimum number of items of a product will force the user to purchase at least that amount of items for that product if they want to purchase it. But if they don't purchase the product, then nothing is done.

I'll have to use some trick to do what you want. I think that you should use the volume of the products and restrictions on the volume in your shipping methods in order to not have any matching shipping methods if there is no product with a volume in the cart and only add dimensions in your products of the soda type. That way, the checkout won't let you finish and will display an error message that no shipping methods were found because of the volume. then, you can simply change that text with a translation override to explain to the user that he needs to add a soda to be able to finish the checkout.

The following user(s) said Thank You: [dhopkins](/forum/user/28504-dhopkins "View dhopkins's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MzMwNi1yZXF1aXJlLWEtc3BlY2lmaWMtaXRlbS1pbi10aGUtY2FydC1mb3ItY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[dhopkins](/forum/user/28504-dhopkins "View dhopkins's Profile")**
- [![dhopkins's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28504-dhopkins "View dhopkins's Profile") Topic Author
- [ Offline](/forum/user/28504-dhopkins)

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 11 months ago [\#130956](#130956) by [dhopkins](/forum/user/28504-dhopkins "View dhopkins's Profile")  Replied by *[dhopkins](/forum/user/28504-dhopkins "View dhopkins's Profile")* on topic *[Require a specific item in the cart for checkout](/forum/27-checkout/863306-require-a-specific-item-in-the-cart-for-checkout#130956 "-- HikaShop version -- : HikaShop Essential 2.2 -- Joomla version -- : 2.5x -- PHP version -- : 5.3.x  Hello, Is it possible to have Hikashop require a specific item to be in the cart before allowing the customer to checkout? For example, every order must choose a Soda/Type. No matter what other items the customer has in the cast, if the customer doesn't have a soda in the cart, they aren't allowed to complete the checkout and receive an error message.  I've tried to set the minimum number of the product to 1 but that didn't have the result I wanted.")*

Thanks a lot. I'll try that out.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2MzMwNi1yZXF1aXJlLWEtc3BlY2lmaWMtaXRlbS1pbi10aGUtY2FydC1mb3ItY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.079 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
