New Address in checkout

  • Posts: 72
  • Thank you received: 0
8 years 8 months ago #232434

-- HikaShop version -- : 2.5.1
-- Joomla version -- : 3.4.6

Dear Sir
during checkout, if the customer do not have address, a message will be displayed asking to "Please create or select an address", I want change this to display the new address form instead, I know where to edit but could not figure what to code to put
in checkout/address_view.php.
I see the below IF statement which I want to replace with the display address form and pass the required parameters to it:

if(!JRequest::getVar( HIKASHOP_COMPONENT.'.address_error')){  
JRequest::setVar( HIKASHOP_COMPONENT.'.address_error',1);
$this->app->enqueueMessage( JText::_('CREATE_OR_SELECT_ADDRESS'), 'error' );
	}

am using popup as Address selector, however, I changed the popup to be full page instead
I know you have the above behavior if I select List as Address selector, but am forced to keep the popup as Address selector as I need the address to be in full page.

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

  • Posts: 12953
  • Thank you received: 1778
8 years 8 months ago #232459

Hello,
I didn't totally understood what you wanted to do, can you give us more information about it through some screenshots for example ?

I know you have the above behavior if I select List as Address selector, but am forced to keep the popup as Address selector as I need the address to be in full page.

You want to replace that message by the address form, but you also want to keep the address popup mode, so how do you want it to work ?

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

  • Posts: 72
  • Thank you received: 0
8 years 8 months ago #232563

Dear Sir
thanks for your fast response
I just need to replace that message by the address form and to be in the same page when there is no address
attached is 2 screens shot , the before.png is the current situation, and after,png is what I want to achieve

Attachments:

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 8 months ago #232590

Hi,

You could add an iframe with the URL of the popup as src of the iframe.
But it won't work great...
It would be better to use another address selector. The popup selector isn't meant to work like that.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum