edit credit card after next step

  • Posts: 29
  • Thank you received: 0
13 years 3 months ago #26670

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.

  • Posts: 83103
  • Thank you received: 13413
  • MODERATOR
13 years 3 months ago #26689

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.

  • Posts: 1
  • Thank you received: 0
13 years 1 month ago #31236

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: 13 years 1 month ago by robv.

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

  • Posts: 83103
  • Thank you received: 13413
  • MODERATOR
13 years 1 month ago #31261

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.042 seconds
Powered by Kunena Forum