Skip to main content

edit credit card after next step

More
14 years 11 months ago #26670 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

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

More
14 years 11 months ago #26689 by nicolas
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){

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

More
14 years 10 months ago - 14 years 10 months ago #31236 by robv
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))){
Last edit: 14 years 10 months ago by robv.

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

More
14 years 10 months ago #31261 by nicolas
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
Powered by Kunena Forum