Skip to main content

Disable popup and set mode list for change address

More
11 years 10 months ago #178887 by gruis28
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Firefox 33.0.3

Greetings to all forum

I have read other posts that had the same problem with pop-ups
to add or change the shipping address
and I followed all the advice, but I could not solve the problem.

To get around this so I set checkout -> Shipping and Payment ---> Address selector ---> list

Now let me set list (disabling the pop-up)
even when a user through the user control panel
going to change your address

And 'possible?

Thanks again for your valuable support

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

More
11 years 10 months ago #178888 by Jerome
Hi,

The address edition in the user control panel does not manage the new address system ; but it's in our TODO list for a future release.
It is something asked often since we introduced the new address editor in the checkout ; we wanted to have some feedback before add it in other parts of HikaShop.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

More
11 years 10 months ago - 11 years 10 months ago #178940 by erickb
I changed it myself , you can avoid the popup with a real link instead of the javascript popup (I try to avoid all popups, nearly nobody likes it)

find the modify buttons in the view
it should be something like
Code:
<a id="hikashop_checkout_billing_address_edit_1" title="Edit" class="hikashop_checkout_billing_address_edit" rel="{handler: 'iframe', size: {x: 450, y: 480}}" href="index.php?option=com_hikashop&amp;ctrl=address&amp;task=edit&amp;redirect=checkout&amp;address_id=1&amp;step=0&amp;type=billing&amp;Itemid=101&amp;tmpl=component" onclick="return hikashopEditAddress(this,1,false);"><img alt="edit" src="media/com_hikashop/images/edit.png" border="0"></a>

and put a normal link (remove the rel= and onclick=)
Code:
<a href="index.php?option=com_hikashop&amp;ctrl=address&amp;task=edit&amp;address_id=1&amp;Itemid=101">Edit</a>

same thing for adding a new address
Last edit: 11 years 10 months ago by erickb.
The following user(s) said Thank You: Xavier

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

More
11 years 10 months ago #178998 by gruis28
Thanks @Jerome for the reply
I hope that in future versions there is this possibility

Thaks @erickb for the suggestion
I think I found the code that handles this function in the file

components/com_hikashop/views/address/tmpl/listing.php

I will give a big hand
if you show me exactly what to replace
Code:
<table> <tr> <td><?php echo $this->popup->display( '<span class="icon-32-new" title="'. JText::_('HIKA_NEW').'"></span>'. JText::_('HIKA_NEW'), 'HIKA_NEW', hikashop_completeLink('address&task=add',true), 'hikashop_new_address_popup', 760, 480, '', '', 'link' ); ?></td> <td> <a href="<?php echo hikashop_completeLink('user');?>" > <span class="icon-32-back" title="<?php echo JText::_('HIKA_BACK'); ?>"></span> <?php echo JText::_('HIKA_BACK'); ?> </a> </td> </tr> </table>
Code:
<tr class="hikashop_address_listing_item"> <td class="hikashop_address_listing_item_default"> <input type="radio" name="address_default" value="<?php echo $this->address->address_id;?>"<?php if($this->address->address_default == 1) { echo ' checked="checked"'; } ?> onclick="this.form.submit();"/> </td> <td class="hikashop_address_listing_item_details"> <span><?php echo $addressClass->displayAddress($this->fields, $address, 'address'); ?></span> </td> <td class="hikashop_address_listing_item_actions"> <a href="<?php echo hikashop_completeLink('address&task=delete&address_id='.$address->address_id.'&'.$token.'=1&Itemid='.$Itemid);?>" title="<?php echo JText::_('HIKA_DELETE'); ?>"><img src="<?php echo HIKASHOP_IMAGES; ?>delete.png" alt="<?php echo JText::_('HIKA_DELETE'); ?>" /></a> <?php echo $this->popup->display( '<img src="'. HIKASHOP_IMAGES.'edit.png" title="'. JText::_('HIKA_EDIT').'" alt="'. JText::_('HIKA_EDIT').'" />', 'HIKA_EDIT', hikashop_completeLink('address&task=edit&address_id='.$address->address_id.'&Itemid='.$Itemid, true), 'hikashop_edit_address_popup_'.$address->address_id, 760, 480, '', '', 'link' ); ?> </td> </tr>

Thanks again for your support.

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

More
11 years 10 months ago - 11 years 10 months ago #179002 by erickb
in the second code box look at your delete link
Code:
<a href="<?php echo hikashop_completeLink('address&task=delete&address_id='.$address->address_id.'&'.$token.'=1&Itemid='.$Itemid);?>" title="<?php echo JText::_('HIKA_DELETE'); ?>"><img src="<?php echo HIKASHOP_IMAGES; ?>delete.png" alt="<?php echo JText::_('HIKA_DELETE'); ?>" /></a>

copy it a second time after and change all the words delete by edit (task , text and image) , that's all !

and comment // echo $this->popup->display
Last edit: 11 years 10 months ago by erickb.

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

More
11 years 10 months ago #179005 by Xavier
Hi,

1) Replace:
Code:
<?php echo $this->popup->display( '<span class="icon-32-new" title="'. JText::_('HIKA_NEW').'"></span>'. JText::_('HIKA_NEW'), 'HIKA_NEW', hikashop_completeLink('address&task=add',true), 'hikashop_new_address_popup', 760, 480, '', '', 'link' ); ?>
By:
Code:
<a href="<?php echo hikashop_completeLink('address&task=add',true); ?>"> <span class="icon-32-new" title="'. JText::_('HIKA_NEW').'"></span> <?php echo JText::_('HIKA_NEW'); ?> </a>

2) Replace:
Code:
<?php echo $this->popup->display( '<img src="'. HIKASHOP_IMAGES.'edit.png" title="'. JText::_('HIKA_EDIT').'" alt="'. JText::_('HIKA_EDIT').'" />', 'HIKA_EDIT', hikashop_completeLink('address&task=edit&address_id='.$address->address_id.'&Itemid='.$Itemid, true), 'hikashop_edit_address_popup_'.$address->address_id, 760, 480, '', '', 'link' ); ?>
By:
Code:
<a href="<?php echo hikashop_completeLink('address&task=edit&address_id='.$address->address_id.'&Itemid='.$Itemid, true); ?>"><img src="'. HIKASHOP_IMAGES.'edit.png" title="'. JText::_('HIKA_EDIT').'" alt="'. JText::_('HIKA_EDIT').'" /></a>

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

More
10 years 8 months ago #225314 by mymall
Dear Sir
sorry for reopening this thread, I made the changes and no pop up appear now, however, the address (new and edit) appears with no header and footer of my website, it just opened in blank page with address information to enter.
please advice how I can have all my header and footer of my website

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

More
10 years 8 months ago #225327 by Xavier
Hi,

There was a lot of modifications since one year ;)
So if you want to display the address no more in popup but in another edition mode, you can change the value of the option "Address selector" in Configuration > Checkout, no need to edit any code.

If you have an issue, please try to remove the overrides and install the latest version of HikaShop over the current one.

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

More
10 years 8 months ago #225361 by mymall
thanks for the info
this fix the address in the checkout porcess, what about edit my address in the user control panel

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

More
10 years 8 months ago #225366 by Xavier
Hi,

We don't yet ported the modifications to edit addresses in another mode than popup in the control panel.
It is on our todo list :)

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

More
10 years 8 months ago #225410 by mymall
thanks
so back to the solution above (changing components/com_hikashop/views/address/tmpl/listing.php) as you suggested, how I can add my website headers and footers?

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

More
10 years 8 months ago #225444 by nicolas
Remove the
Code:
, true
piece in these pieces of code.

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

Time to create page: 0.273 seconds
Powered by Kunena Forum