- Posts: 72
- Thank you received: 0
New Address in checkout
10 years 6 months ago #232434
by mymall
New Address in checkout was created by mymall
-- 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:
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.
-- 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:
Code:
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.
Less
More
- Posts: 12953
- Thank you received: 1778
10 years 6 months ago #232459
by Mohamed Thelji
Replied by Mohamed Thelji on topic New Address in checkout
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 didn't totally understood what you wanted to do, can you give us more information about it through some screenshots for example ?
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 ?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.
10 years 6 months ago #232563
by mymall
Replied by mymall on topic New Address in checkout
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
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
Please Log in or Create an account to join the conversation.
10 years 6 months ago #232590
by nicolas
Replied by nicolas on topic New Address in checkout
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.
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.263 seconds