- Posts: 29
- Thank you received: 0
edit credit card after next step
14 years 11 months ago #26670
by sepyh
edit credit card after next step was created by sepyh
is it possible for the user to edit their credit card info (card owner) after they have clicked next step?
at the moment, its not possible by going back in the browser as the fields have changed to in-editable (XXXXXXXXXXX6776)
Hope yo understand,
Thanks
at the moment, its not possible by going back in the browser as the fields have changed to in-editable (XXXXXXXXXXX6776)
Hope yo understand,
Thanks
Please Log in or Create an account to join the conversation.
14 years 11 months ago #26689
by nicolas
Replied by nicolas on topic Re: edit credit card after next step
You would have to edit the file "payment" of the view "checkout" via the menu Display->Views and change the code:
if(!empty($cc_number) && !empty($cc_month) && !empty($cc_year) && (!empty($cc_CCV)|| empty($method->ask_ccv)) && (!empty($cc_owner)|| empty($method->ask_owner)) && (!empty($cc_type)|| empty($method->ask_cctype))){
to:
if(false){
if(!empty($cc_number) && !empty($cc_month) && !empty($cc_year) && (!empty($cc_CCV)|| empty($method->ask_ccv)) && (!empty($cc_owner)|| empty($method->ask_owner)) && (!empty($cc_type)|| empty($method->ask_cctype))){
to:
if(false){
Please Log in or Create an account to join the conversation.
14 years 10 months ago - 14 years 10 months ago #31236
by robv
Replied by robv on topic Re: edit credit card after next step
That's kind of silly. The customer should be able to change the payment information after the fact.
Update:
Please let me know if I'm mistaken but line ~818 of components/com_hikashop/controllers/checkout.php also needs to be changed to always be true and update the stored card information. Otherwise Hikashop will continue to use the previously stored credit data.
if(empty($cc_number) || empty($cc_month) || empty($cc_year) || (empty($cc_CCV)&&!empty($paymentData->ask_ccv)) || (empty($cc_owner)&&!empty($paymentData->ask_owner))) {
to something like:
if(true || empty($cc_number) || empty($cc_month) || empty($cc_year) || (empty($cc_CCV)&&!empty($paymentData->ask_ccv)) || (empty($cc_owner)&&!empty($paymentData->ask_owner))){
Update:
Please let me know if I'm mistaken but line ~818 of components/com_hikashop/controllers/checkout.php also needs to be changed to always be true and update the stored card information. Otherwise Hikashop will continue to use the previously stored credit data.
if(empty($cc_number) || empty($cc_month) || empty($cc_year) || (empty($cc_CCV)&&!empty($paymentData->ask_ccv)) || (empty($cc_owner)&&!empty($paymentData->ask_owner))) {
to something like:
if(true || empty($cc_number) || empty($cc_month) || empty($cc_year) || (empty($cc_CCV)&&!empty($paymentData->ask_ccv)) || (empty($cc_owner)&&!empty($paymentData->ask_owner))){
Last edit: 14 years 10 months ago by robv.
Please Log in or Create an account to join the conversation.
14 years 10 months ago #31261
by nicolas
Replied by nicolas on topic Re: edit credit card after next step
Indeed, you will also need that second change so that the information can be updated if the user changes it.
Please Log in or Create an account to join the conversation.
Time to create page: 0.246 seconds