Adding description to payment confirmation

  • Posts: 38
  • Thank you received: 0
13 years 8 months ago #9389

After the user enters their credit card data and presses "Next," they go to another screen that I am calling the confirmation screen. It has the PAN truncated CC number, and other CC data blanked out. Is there a way to put an explanatory header at the top. Something like "Please confirm your order and press next to submit"?


Cheers,
Todd

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9405

Sure. you can go in the menu Display->Views and edit the file step of the view checkout for that. There you can add some code to display your message on your step:

if($this->current==XX){ //XX needs to be replaced by the step number on which you want to display your message
echo 'Please confirm your order and press next to submit';
}

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

  • Posts: 38
  • Thank you received: 0
13 years 8 months ago #9533

I could not get this to work. I placed it just below the line the declares the form action:

<form action="<?php echo hikashop::completeLink('checkout&task=step&step='.($this->step+1).$url_itemid); ?>" method="post" name="hikashop_checkout_form" enctype="multipart/form-data">
<?php
}
echo 'Step '.$this->current;
if($this->current==2){
echo '<h2>Please confirm your order and press next to submit</h2>';
}
$this->nextButton = true;

But, this-->current is empty. I also tried using this-->step but it is always 1.


Cheers,
Todd

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9538

the number depends on your checkout workflow. With the default checkout workflow, you should use the code below and place it just before the next button display:
if($this->step==0 && $this->nextButton){

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

  • Posts: 38
  • Thank you received: 0
13 years 8 months ago #9596

Okay, I am seeing the issue on why it will not work. I am not using the standard workflow. I am using "login,address_shipping_payment_confirm_coupon_cart_status_fields,end" The reason is that with the SIM version of the authorize.net it asks for the Credit Card data on the registration screen, which is lost when you click register. Moving it to its own step removes the issue from the "user experience" (BTW, with user registration confirmation on (i.e. the test site) you also lose which selection they make and the refresh of changing selection causes a submit.)

In this case though, the screen for entering the CC details is Step=1 and when you press next you stay in step 1, it does not advance. If I change the flow yet again to "login,address_shipping_payment_coupon_cart_status_fields,confirm,end". I get the confrim view and it is step 2.

So, where the confusion happens is on entering the CC data and pressing enter the software does not advance a step, it refreshing the screen with PAN truncation on the card data. In request I was erroneously calling that a confirmation screen.

So, with all of that (hopefully it makes sense) do you have any suggestions?
TCW


Cheers,
Todd

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #9598

If you use the checkout workflow:
"login,address_shipping_payment_coupon_cart_status_fields,confirm,end" then, the code should be:
if($this->step==2){
since the confirm is on the step number 2.

If you want to remove the fact that the CC is displayed on the same step, you can remove the line:
return false;
in the code:
if($new_cc_valid){
$app->setUserState( HIKASHOP_COMPONENT.'.cc_number',base64_encode($cc_number));
$app->setUserState( HIKASHOP_COMPONENT.'.cc_month',base64_encode($cc_month));
$app->setUserState( HIKASHOP_COMPONENT.'.cc_year',base64_encode($cc_year));
$app->setUserState( HIKASHOP_COMPONENT.'.cc_CCV',base64_encode($cc_CCV));
$app->setUserState( HIKASHOP_COMPONENT.'.cc_owner',base64_encode($cc_owner));
}
return false;

in the file components/com_hikashop/controllers/checkout.php

I think that it makes sense to not have that supplementary step and you can still have it by creating an additional step.

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

  • Posts: 38
  • Thank you received: 0
13 years 8 months ago #9982

Removing that screen (your second option) worked very well. Thanks.


Cheers,
Todd

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

Time to create page: 0.070 seconds
Powered by Kunena Forum