No error message when billing address is not added

  • Posts: 4
  • Thank you received: 0
13 years 4 months ago #2609

Hello, if someone tries to checkout items in their cart, there is no message alerting them that they have not added a billing or shipping address.

Please view the shop here paullewis.ca/index.php/store/dvds

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
13 years 4 months ago #2611

I tried on yuor website and if I don't enter the information requested on the form I correctly get an error message.

Could you explain a bit more what you're are talking about ?

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

  • Posts: 4
  • Thank you received: 0
13 years 4 months ago #2622

For example I go to the link I posted above, I add a dvd to the shopping cart, I click "proceed to checkout", I login, on the checkout page I see "billing address" under that a "new" button, on the other side is "Shipping address" and "Use the same address as for billing." Under that is the details about my order. Then at the bottom of all this is a button that says "next".

If I hit the "next" button this page just reloads. I keep hitting it, the page keeps reloading and I have no idea why I'm not taken to the next step. Shouldn't there be an error message at this stage saying that my checkout can't finish because I haven't entered in a billing address?

I added an image of what I see after hitting the next button, am I missing something?

Attachments:
Last edit: 13 years 4 months ago by ncreatives. Reason: added screen cap

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
13 years 4 months ago #2629

Please try to change the code

if(empty($billing)){
			return false;
		}
to
if(empty($billing)){
			$app =& JFactory::getApplication();
			$app->enqueueMessage( JText::_('CREATE_OR_SELECT_ADDRESS') );
			return false;
		}
in the function after_address of the file components/com_hikashop/controllers/checkout.php near line 630 and try again.

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

  • Posts: 4
  • Thank you received: 0
13 years 4 months ago #2636

I'll try this out later when I get home, thanks!

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

  • Posts: 13
  • Thank you received: 0
13 years 4 months ago #2645

Thanks for this fix Nicolas. I found the code to modify at line 475 of checkout.php, in the function after_address().

Worked a treat :)

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

  • Posts: 4
  • Thank you received: 0
13 years 4 months ago #2663

Yay it works! Thank you very much!!! :cheer:

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

Time to create page: 0.075 seconds
Powered by Kunena Forum