Add Address/Modify Address button doesn't work

  • Posts: 90
  • Thank you received: 2
10 years 1 month ago #148636

Hello,

First - I have the latest Joomla + The latest Hikashop.

Second: I use the pop-up for the addresses.

My problem: when I go to My Account and then to my Addresses all I can do is erase them.

If I click on the "pencil" icon to modify it, nothing happens. If I click on + Add Address nothing happens. The only way to add an address is to make an order and use the checkout proccess to add an address where the popup does appear and I can enter a new address.
I also disabled SEF urls but that was not the problem.

Website link: nfx.ro:88/oneart.ro

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
10 years 1 month ago #148671

Hi,

This comes from a javascript error on the page which prevents the popup library of joomla to initialize the buttons when the page is displayed.
Most of the time, it comes from an incompatibility between mootools and jquery, and in such case, most of the times, it can be solved with jquery easy ( extensions.joomla.org/extensions/core-en...jquery-scripts/18327 ).
If that doesn't help, check the javascript error log of your browser for any error message while on that page.

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

  • Posts: 90
  • Thank you received: 2
10 years 1 month ago #148757

Hello,

I tried the extension you mentioned. No change.
I checked firebug - no javascript errors.

Please help me fix this. Tell me how to disable the pop-up and use a normal page for adding addresses, something.

Thank you!

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
10 years 1 month ago #148804

Hi,

I checked your address management interface, and I can see that the popup content actually displays but at the bottom of the page.
That's typical of the bootstrap.css file missing from your template while you have the bootstrap.js loaded.
So if you fix your template by loading the bootstrap.css file on the pages, it will work.
Another solution would be to change the "popup mode" option of the HikaShop configuration so that it doesn't use the bootstrap library for them.

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

  • Posts: 90
  • Thank you received: 2
10 years 1 month ago #148898

I activated MooTools and disabled the bootstrap.

I can Add addresses now.

I made 3 screenshots.

1) Add Address - everything is ok
2) View Address - everything is ok
3) Edit Address - everything is NOT ok. As you can see the design is broken and the address info is not pulled into the edit form - the street, zip and other info are missing.

Please help me fix it.

Thank you.





Attachments:

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
10 years 1 month ago #148955

Hi,

We are working on the migration of the address edition in the user control panel and I forgot to put a security to force the old popup system.
In the view "components/com_hikashop/views/address/tmpl/listing.php" please replace

hikashop_completeLink('address&task=edit&address_id='.$address->address_id.'&Itemid='.$Itemid,true),
By:
hikashop_completeLink('address&task=edit&address_id='.$address->address_id.'&mode=popup&Itemid='.$Itemid,true),

In the controller "components/com_hikashop/controllers/address.php" please replace
	function edit() {
		$tmpl = JRequest::getCmd('tmpl', '');
		$config = hikashop_config();
		if($tmpl == 'component' && $config->get('checkout_address_selector', 0)) {
By:
	function edit() {
		$tmpl = JRequest::getCmd('tmpl', '');
		$mode = JRequest::getCmd('mode', '');
		$config = hikashop_config();
		if($tmpl == 'component' && $mode != 'popup' && $config->get('checkout_address_selector', 0)) {
It will force the popup mode in the user address edition.
We will include this patch in the next "hot fix" package and we should have the new address edition system ready for the next big release.

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.
The following user(s) said Thank You: pepecortez

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

  • Posts: 90
  • Thank you received: 2
10 years 1 month ago #148966

It worked! THank you!

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

  • Posts: 90
  • Thank you received: 2
10 years 1 month ago #148967

There's still a problem. If i try to edit the address during the checkout process - the same lack of template pop-up appears.

How do I solve this one?

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
10 years 1 month ago #148972

Hi,

Can you please explain the problem using a screenshot ?

Thanks


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: 90
  • Thank you received: 2
10 years 1 month ago #149049

Yes, of course.

This is the Address in the Checkout process



This is I believe the Billing Address


And this is what happens when i click on the Edit pencil.

Attachments:

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

  • Posts: 171
  • Thank you received: 9
10 years 1 month ago #149051

Hi lex131,

Same problem was here, later I realized a new shipping system was created for checkout process.

Maybe you have (as me) a template override, try to remove in your /templates/TEMPLATENAME/html/com_hikashop/checkout/ all the files starting with "address". Or you can style it with your own after updating the mentioned files from /components/com_hikashop/views/checkout/tmpl/.

Hopefully this helps you out. I like the new address editor much better than popup style.

PePe

The following user(s) said Thank You: lex131

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

  • Posts: 90
  • Thank you received: 2
10 years 1 month ago #149055

Damn.

Thank you a lot!

I just did that, didn't even remember changing the address layout. I just removed that customization and bang - beautiful editing :).

This same editor should be present in My Account - My Addresses - Edit?

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

  • Posts: 171
  • Thank you received: 9
10 years 1 month ago #149056

lex131 wrote: Damn.

Thank you a lot!

I just did that, didn't even remember changing the address layout. I just removed that customization and bang - beautiful editing :).

This same editor should be present in My Account - My Addresses - Edit?


Unfortunately not yet in this version. Promised to be released later.

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

  • Posts: 90
  • Thank you received: 2
10 years 1 month ago #149057

Ok, so it's not my fault (editing some files).

But I just realised that the customisation I made actually made only One address appear. Now in the checkout process I have Billing and Shipping address.

How can I remove the billing one?

I will now take advantage of you and your knowledge :)

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

  • Posts: 171
  • Thank you received: 9
10 years 1 month ago #149060

lex131 wrote: Ok, so it's not my fault (editing some files).

But I just realised that the customisation I made actually made only One address appear. Now in the checkout process I have Billing and Shipping address.

How can I remove the billing one?

I will now take advantage of you and your knowledge :)


If I understand your question correctly, there's two way to do it:
1.) By CSS: Add to your template css: div.Billing{display:none; visibility:hidden;} (Billing is the div name at my tempate that contains the Billing block)
2.) By Template Override: copy the core updated address file from /components/com_hikashop/views/checkout/tmpl/address.php to your /templates/TEMPLATENAME/html/com_hikashop/checkout/

In address php file search for:
<?php
			$this->type = 'billing';
			echo $this->loadTemplate('view');

			if($this->has_shipping) {
		?>

and remove line
echo $this->loadTemplate('view');

Hopefully I was able to help you.

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
10 years 1 month ago #149092

Hi,

I am working on a patch for the address system but I really need to have useful information about your HikaShop configuration (for the address..) and about your view override.
Which address selector are you using ?
Do you have some view overrides in "checkout" or "address" ?

For the moment, I think the best patch will be in the address controller (components/com_hikashop/controllers/address.php) by replacing

	function edit() {
		$tmpl = JRequest::getCmd('tmpl', '');
		$config = hikashop_config();
		if($tmpl == 'component' && $config->get('checkout_address_selector', 0)) {
By
	function edit() {
		$tmpl = JRequest::getCmd('tmpl', '');
		$subtask = JRequest::getCmd('subtask', '');
		$addrtype = JRequest::getCmd('address_type', '');
		$config = hikashop_config();
		if($tmpl == 'component' && ($addrtype != '' || $subtask != '') && $config->get('checkout_address_selector', 0)) {
In order to check some of new parameters are right here to display the new address system content.

But I can't be sure without precise information.

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: 34
  • Thank you received: 2
3 years 6 months ago #324224

cannot add, change or delete new addresses when logged in.

When I put my right mouse button on the pencil and open the link as a new page, I can change addresses.

Where are things going wrong?

creanita.eu/index.php/hikashop-menu-for-...ts-listing/afrekenen

Username: Test
Password: Test1!

Last edit: 3 years 6 months ago by MH1981.

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

  • Posts: 4519
  • Thank you received: 611
  • MODERATOR
3 years 6 months ago #324235

Hello,

To better understand the situation, we will need to see the context (your website) and process some tests.
You can use the contact us form to provide these references if required, just add an url link to this topic in your message.

Here, your Url link don't allow us to see this, and so we are awaiting to be able to.
Regards

Last edit: 3 years 6 months ago by Philip.

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

Time to create page: 0.124 seconds
Powered by Kunena Forum