- Posts: 38
- Thank you received: 0
Where does hikashop decide to skip credit card ?
15 years 1 month ago - 15 years 1 month ago #24855
by mrdan
Where does hikashop decide to skip credit card ? was created by mrdan
I want to add some custom code where hikashop decides whether to skip collecting of credit card info for free products. What PHP file has this code?
Thanks for your help.
Thanks for your help.
Last edit: 15 years 1 month ago by mrdan. Reason: typo
Please Log in or Create an account to join the conversation.
15 years 1 month ago #24859
by nicolas
Replied by nicolas on topic Re: Where does hikashop decide to skip credit card ?
The modification needs to be done at several places:
1. in the components/com_hikashop/controllers/checkout.php in the functions before_payment,check_payment and after_payment
where you have the check:
if(empty($cart->full_total->prices[0]->price_value_with_tax) || bccomp($cart->full_total->prices[0]->price_value_with_tax,0,5)==0){
2. in the file components/com_hikashop/views/tmpl/payment.php you have a similar check at the beginning.
1. in the components/com_hikashop/controllers/checkout.php in the functions before_payment,check_payment and after_payment
where you have the check:
if(empty($cart->full_total->prices[0]->price_value_with_tax) || bccomp($cart->full_total->prices[0]->price_value_with_tax,0,5)==0){
2. in the file components/com_hikashop/views/tmpl/payment.php you have a similar check at the beginning.
Please Log in or Create an account to join the conversation.
Time to create page: 0.142 seconds