No payment method with free products

  • Posts: 15
  • Thank you received: 0
9 years 7 months ago #198376

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.0

Dear HIkashop,

I have an free product my customer can order.

But when you go to checkout at payment page, no payment is shown when ordering just the free product.
I tried creating a payment method with restrictions (€ 0,-) but with no succes.

It seems logical that you dont see a payment method ordering a free product, maar i dont want my customers to see an
empty page with a continue button. I would like to have a sentence like: no payment needed.

I could use a custom field to explain this to the customer, but the custom field is already taken for other purposses at checkout. And as far
as i know, you can only use 1 custom field at checkout.


When I set the free product to 1 euro (as a test), it work fine.

I tried this page, www.hikashop.com/support/documentation/i...ins-listing.html#faq
But that seems to be alright.


Can you help me out?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 7 months ago #198384

Hi,

When the order total is "0" ; there is no need of payment method, because there is nothing to pay.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 0
9 years 7 months ago #198506

Hi Jerome,

I know, thats why i said:

It seems logical that you dont see a payment method ordering a free product, maar i dont want my customers to see an
empty page with a continue button. I would like to have a sentence like: no payment needed.


I dont understand why there cant be a payment method: no payment needed

Thanks

Last edit: 9 years 7 months ago by quantexcasper123.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 7 months ago #198511

Hi,

If you want to add that text ; you can create a view override for the view "checkout | payment" and replace at the end of the file

	</fieldset>
</div>
<?php
	}
}
Into
	</fieldset>
</div>
<?php
	}
} else {
  echo JText::_('NO_PAYMENT_NEEDED');
}
And create a translation override for the key "NO_PAYMENT_NEEDED".
You can if you want, display the text in a span or in a div ; if you want to customize the display to have a better look.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: quantexcasper123

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 0
9 years 7 months ago #198822

Dear Jerome,

Thanks for you reply.

But your solution will always show the text at the payment page?

We sell more products, and just 1 is free. So it has to be dynamic.

The text should be shown only if a customer orders a free products, not all the time


I tried your solution, and it works like charm!!
Many thanks!


Thanks in advance

Last edit: 9 years 7 months ago by quantexcasper123.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 7 months ago #198856

Hi,

You're welcome !

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum