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

#   Need a payment for ZERO total amount (coupon)

##

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

Less More

- Posts: 79
- Thank you received: 0
-
-

11 years 4 days ago [\#220303](#220303) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  *[Need a payment for ZERO total amount (coupon)](/forum/29-payment-methods/880406-need-a-payment-for-zero-total-amount-coupon#220303 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi I have coupons in my shop and because of that it is possible that the total price of an order is zero. I need to display a message in the checkout step &quot;payment&quot;, so I trying to setup a &quot;payment&quot; for zero total amount orders.  But, I can't catch them with a payment method.  I've tried limit maximum amount 0 I've tried limit minimum amount 0.1  But, the payment method is ignored. I've tried to use the collectondelivery.  It is possible it is ignored because there is nothing to pay? Is there a solution for this then?")* was created by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5.23

Hi
I have coupons in my shop and because of that it is possible that the total price of an order is zero.
I need to display a message in the checkout step "payment", so I trying to setup a "payment" for zero total amount orders.

But, I can't catch them with a payment method.

I've tried limit maximum amount 0
I've tried limit minimum amount 0.1

But, the payment method is ignored.
I've tried to use the collectondelivery.

It is possible it is ignored because there is nothing to pay?
Is there a solution for this then?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODA0MDYtbmVlZC1hLXBheW1lbnQtZm9yLXplcm8tdG90YWwtYW1vdW50LWNvdXBvbj90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

11 years 4 days ago [\#220333](#220333) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Need a payment for ZERO total amount (coupon)](/forum/29-payment-methods/880406-need-a-payment-for-zero-total-amount-coupon#220333 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi I have coupons in my shop and because of that it is possible that the total price of an order is zero. I need to display a message in the checkout step &quot;payment&quot;, so I trying to setup a &quot;payment&quot; for zero total amount orders.  But, I can't catch them with a payment method.  I've tried limit maximum amount 0 I've tried limit minimum amount 0.1  But, the payment method is ignored. I've tried to use the collectondelivery.  It is possible it is ignored because there is nothing to pay? Is there a solution for this then?")*

Hi,

When the total amount is 0, the payment methods selection is not displayed. The order is automatically created without any payment method when the customer clicks on the finish button.

In that case, you would have to modify the file "payment" of the view "checkout" via the menu Display&gt;Views in order to add your custom text.

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

11 years 2 days ago [\#220550](#220550) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  Replied by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")* on topic *[Need a payment for ZERO total amount (coupon)](/forum/29-payment-methods/880406-need-a-payment-for-zero-total-amount-coupon#220550 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi I have coupons in my shop and because of that it is possible that the total price of an order is zero. I need to display a message in the checkout step &quot;payment&quot;, so I trying to setup a &quot;payment&quot; for zero total amount orders.  But, I can't catch them with a payment method.  I've tried limit maximum amount 0 I've tried limit minimum amount 0.1  But, the payment method is ignored. I've tried to use the collectondelivery.  It is possible it is ignored because there is nothing to pay? Is there a solution for this then?")*

Hello,
but this would affect all orders and not all my orders are zero.

I need a way to select a payment for the zero amount orders
or
can i use an if statement in the file "payment" of the view "checkout? If so, please show an example

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODA0MDYtbmVlZC1hLXBheW1lbnQtZm9yLXplcm8tdG90YWwtYW1vdW50LWNvdXBvbj90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

11 years 2 days ago [\#220561](#220561) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Need a payment for ZERO total amount (coupon)](/forum/29-payment-methods/880406-need-a-payment-for-zero-total-amount-coupon#220561 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi I have coupons in my shop and because of that it is possible that the total price of an order is zero. I need to display a message in the checkout step &quot;payment&quot;, so I trying to setup a &quot;payment&quot; for zero total amount orders.  But, I can't catch them with a payment method.  I've tried limit maximum amount 0 I've tried limit minimum amount 0.1  But, the payment method is ignored. I've tried to use the collectondelivery.  It is possible it is ignored because there is nothing to pay? Is there a solution for this then?")*

Hi,

Yes, you'll have to use an if statement.
It's really easy if you know a bit of PHP...
You can use such code for example at the end of the file: Code:

else{ echo "my text for 0 total amount"; }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODA0MDYtbmVlZC1hLXBheW1lbnQtZm9yLXplcm8tdG90YWwtYW1vdW50LWNvdXBvbj90bXBsPW1hcmtkb3du) 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.048 seconds

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