Disable popup and set mode list for change address

  • Posts: 2
  • Thank you received: 0
10 years 2 weeks ago #178887

-- 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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 2 weeks ago #178888

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.

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
10 years 2 weeks ago #178940

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

<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=)
<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: 10 years 2 weeks ago by erickb.
The following user(s) said Thank You: Xavier

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

  • Posts: 2
  • Thank you received: 0
10 years 2 weeks ago #178998

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

<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>
<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.

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
10 years 2 weeks ago #179002

in the second code box look at your delete link

<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: 10 years 2 weeks ago by erickb.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 week ago #179005

Hi,

1) Replace:

<?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:
<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:
<?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:
<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.

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

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.

  • Posts: 13201
  • Thank you received: 2322
8 years 10 months ago #225327

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.

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

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.

  • Posts: 13201
  • Thank you received: 2322
8 years 10 months ago #225366

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.

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

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 10 months ago #225444

Remove the

, true
piece in these pieces of code.

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

Time to create page: 0.114 seconds
Powered by Kunena Forum