deleting address continues checkout process!!!

  • Posts: 32
  • Thank you received: 1
11 years 9 months ago #117731

-- url of the page with the problem -- : Not allowed to give!
-- HikaShop version -- : 2.2.0
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.4.16
-- Browser(s) name and version -- : ALL BROWSERS

Dear brilliant minds of Hikashop and all of it members,

I checked the FAQ, documentation and looked on the forum but haven't found an answer.

I have a rather strange problem. On the checkout page a user can add an extra address. This works perfectly. Only when a user wants to delete an address then it wont delete. But instead it continues the order process. And the order process is only one page so when it continues it immediately makes the order.

Let me describe it from the beginning:

1. user adds product to cart
2. user goes to cart
3. user is asked "Existing client or new client"
4. user logs in as existing client.
5. user sees 2 addresses but the last address is no longer correct so he/she wants to delete it.
6. user presses the delete button.
7. user receives the message thank you for your order.

And the address is not deleted.
Everything is up to date!

I have made some changes to an file:
JoomlaBackend->Components->Hikashop->Display->Views->
View = Checkout
File = address_view.php

In here i made the following change:

<a title="<?php echo JText::_('HIKA_DELETE'); ?>" class="hikashop_checkout_<?php echo $this->type;?>_address_delete" href="<?php echo hikashop_completeLink('checkout&step='.$this->step.'&redirect=checkout&task=deleteaddress&address_id='.$address->address_id.'&'.hikashop_getFormToken().'=1'.$url_itemid);?>"><button><?php echo JText::_('HIKA_DELETE'); ?></button></a>

before i made the change it was like this:
<a title="<?php echo JText::_('HIKA_DELETE'); ?>" class="hikashop_checkout_<?php echo $this->type;?>_address_delete" href="<?php echo hikashop_completeLink('checkout&step='.$this->step.'&redirect=checkout&task=deleteaddress&address_id='.$address->address_id.'&'.hikashop_getFormToken().'=1'.$url_itemid);?>"><img alt="<?php echo JText::_('HIKA_DELETE'); ?>" src="<?php echo HIKASHOP_IMAGES; ?>delete.png" border="0" /></a>

I cannot believe that the problem is related to this change because i just changed the img in a button.

Last edit: 11 years 9 months ago by loginsecure.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 9 months ago #117775

Hi,

And without your changes, was it working fine ?
If it is, so your change cause the problem, you need maybe to use '<button type="button">', and be sure that you template is in HTML5.

The following user(s) said Thank You: loginsecure

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

  • Posts: 32
  • Thank you received: 1
11 years 9 months ago #118088

Without the changes it does the same thing but I fixed it now on a different way. I disabled the delete button in the checkout progress.
I did not want this functionality anyhow I just posted it so that if it is a common bug it could get fixed.

I want my users to be able to add an address and if they want to change it they can do it in the checkout. When they want to delete an address then they can do it through the usermenu but no longer during checkout.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum