Go back Button

  • Posts: 69
  • Thank you received: 0
11 years 7 months ago #140668

Hello,

I wanted to ask if it is possible to put a button Go back to the product page?

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #140675

Hi,
I think that the best solution will be to use the Joomla breadcrumb module so that your customer will be able to "go back", but note that you still can add your "go back" button through your product description or by editing the code of the "show_default" file of the "'product" view of your front-end template through the page "HIkashop->Display->Views".

Last edit: 11 years 7 months ago by Mohamed Thelji.

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

  • Posts: 69
  • Thank you received: 0
11 years 7 months ago #140794

What code would have to add in "show_default" to bring up the "Go Back"?

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

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #140850

A simple solution can be to use the same link for all your product, this link will be a link to a your product listing page, and you'll just have to use some code like this :

<span id="goback">
<a href="Product_listing_link">Go back !</a>
</span>
Don't forget to replace the Product_listing_link word by your product listing link.

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

  • Posts: 69
  • Thank you received: 0
11 years 7 months ago #141006

But if I have to put a default url, I would have to make a different button for almost every product

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

  • Posts: 84243
  • Thank you received: 13686
  • MODERATOR
11 years 7 months ago #141052

Do like that:

<a href="#" onclick="window.history.back(); return false;">Go back !</a>

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

  • Posts: 69
  • Thank you received: 0
11 years 7 months ago #141268

OK, that´s perfect.

And if I want to put that button also in the categories?

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

  • Posts: 26266
  • Thank you received: 4044
  • MODERATOR
11 years 7 months ago #141325

Hi,

"in the categories" is a too vague.
What I can tell you is that it will be in a view of the "category" section and not in the "product" section.

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.

Time to create page: 0.074 seconds
Powered by Kunena Forum