"Back" button not working correctly on cart

  • Posts: 247
  • Thank you received: 2
  • Hikashop Business Hikashop Essential
7 years 2 weeks ago #282119

-- url of the page with the problem -- : www.beeswaxcandleshop.com/
-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.8.2
-- PHP version -- : 7.1.11

Thank you for your previous help on this site. This was a site I re-created to simplify and get rid of some errors.

In my shopping cart, The "Back" button goes to a wrong page asking fo a login - which I do not use on the site.

How can I make it go back to the previous page - or just remove the whole button.

Attachments:

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
7 years 2 weeks ago #282127

Hi,

That's a good catch. The back button should only appear when you're logged in since it's going back to the user control panel or the listing of carts which is accessible only when you're logged in.
We'll add some code for that.
Edit the file "show" of the view "cart" via the menu Display>Views and remove that bit:

<td>
				<a href="<?php echo $link; ?>">
					<span class="icon-32-back" title="<?php echo JText::_('HIKA_BACK'); ?>"></span> <?php echo JText::_('HIKA_BACK'); ?>
				</a>
			</td>

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

Time to create page: 0.154 seconds
Powered by Kunena Forum