User panel Back and Apply buttons

  • Posts: 250
  • Thank you received: 7
10 years 2 weeks ago #210694

-- url of the page with the problem -- : www.artistpapers.co.uk
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- Error-message(debug-mod must be tuned on) -- : 500 - Layout listing not found

I am having problems with the back and apply buttons in the various elements of the user control panel.

I have a main menu item "Account" which links to the user panel url .../account

However the "Back" buttons for "View your orders", "Manage your Addresses" and "Access to the Affiliate program" all generate incorrect urls

Orders tries to go back to .../account/order# which doesn't exist
Addresses tries to go back to .../account/user which doesn't exist
Affiliate tries to go back to .../account/affiliate# which doesn't exist

However the back buttons on the Wishlists and Show the Carts pages both work correctly linking back to the .../account page.

There is also something strange with the apply button on the affiliate page
The affiliate page is at ..../account/affiliate
If you click the apply button you stay on the affiliate page but the url is .../account/affiliate/affiliate

I have SEF enabled and am using SH404SEF set to use the Joomla router for Hikashop.

What is going on?

Thanks,

Ian

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 2 weeks ago #210712

Hi,

I'm sorry but I don't follow you.
I you take a look at our demo website, you will see that the links are the "same".
For the order/user/affiliate the back button is a javascript button which submit the form with the "cancel" action.
So there is no link for the button, it's just a "#" ; but there is some javascript which is called when you click on it.

demo.hikashop.com/index.php/fr/other-fea...-control-panel/order

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: 250
  • Thank you received: 7
10 years 2 weeks ago #210753

Hi Jerome,

Actually the links on your demo site are similar to mine, by that I mean if you hover over the back button the link that shows in the status bar in the browser, which is the link the browser tries to go back to. The difference is yours work and mine don't

On my site the "back" links are
Orders tries to go back to .../account/order#
Addresses tries to go back to .../account/user
Affiliate tries to go back to .../account/affiliate#

On demo site the "back" links are ...
Orders - demo.hikashop.com/index.php/en/other-features /user-control-panel/order#
Addresses - demo.hikashop.com/index.php/en/other-features /user-control-panel/user
Affiliates - demo.hikashop.com/index.php/en/other-features /user-control-panel/affiliate#

Which are essentially the same as mine, but mine bring up a 500 error and I can't figure out why.

Ian

Last edit: 10 years 2 weeks ago by iedwards.

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 1 week ago #210761

Hi,

As I wrote just before ; there button does not have links ; they have some javascript to submit a form.
So that is not there where you have to look ; just take a look at the code in the view :

	<a onclick="javascript:submitbutton('cancel'); return false;" href="#" >
		<span class="icon-32-back" title="<?php echo JText::_('HIKA_BACK'); ?>">
		</span>
		<?php echo JText::_('HIKA_BACK'); ?>
	</a>
There is NO link.
So the issue is not the link.

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: 250
  • Thank you received: 7
10 years 1 week ago #210871

Hi Jerome,

The issue isn't whether it's a link or not, the issue is that for some reason the back buttons on those pages don't work on my site.

To get round it I have replaced that javascript with a conventional "back" function

<script>
function goBack() {
    window.history.back();
}
</script>               
   <a onclick="goBack()">
               <span class="icon-32-back" title="<?php echo JText::_('HIKA_BACK'); ?>">
    </span>
    <?php echo JText::_('HIKA_BACK'); ?>
   </a>

There is probably a reason why this isn't a good idea but it seems to work.

Ian

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

Time to create page: 0.062 seconds
Powered by Kunena Forum