- Posts: 344
- Thank you received: 3
Prev/next product buttons problem
I have enabled the "Show shortcuts to other category products"
The prev/next buttons are displaying fine.
There are two problems:
1. The button on the right side ain't working, you can't click on it.
The button on the left side works. How can I fix it ?
2. When I click on the button to the left (the one that works) it does not take me to the previos product, it looks like it takes me to a random picked product.
How can I fix this ?
URL for my test site is:
www.kvikkimedia.no/nettbutikk/
please check.
Tnx
Please Log in or Create an account to join the conversation.
1. That's because the right product part div is hover the button, so you can't click on it. Try to set these properties in the css file:
2. These buttons are here to navigate between products in the same category, I think that your products are in many categories, that's why the products related seem's to be random picked.
Please Log in or Create an account to join the conversation.
Tnx for reply
I fixed the CSS problem, so that's OK.
Yes that is correct that my product are in different categories.
Is there anyway we can get the navigation next/prev only to switch products within the given category ?
Please Log in or Create an account to join the conversation.
How do you want to specify this given category ?
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.
Anyway this is the way it should be:
The navgation buttons do not navigate you to a new category even tough the product is placed in two categories, and the navigation button should also follow the product order that is set in the front'end.
Is there any way to fix this ?
Tnx
Please Log in or Create an account to join the conversation.
It's our first request about the navigation buttons, so I think that it's a "special" case.
If you want to change the products linked, you have to edit the file "components/com_hikashop/views/product/view.html.php" and in the function "show()" you can change the request which is loading the related products.
This part is:
It require some PHP knowledge.
Regards.
Please Log in or Create an account to join the conversation.
Since my PHP skille are very bad could you please give me some more pointers how to fix this in the "view.html.php" file ?
Please Log in or Create an account to join the conversation.
By this way, your next/previous products displayed will be the products of the wanted category.
Else you can maybe add something like, "if($product_id == '...') $category_id = '...';" before the code above to set a category to a product.
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.
To get the name of the previous/ next element, you will have to edit the file "components/com_hikashop_views_product/view.html.php" function "show()" and replace:
And then edit the view "product / sqhow" via the menu Display > Views, and display the name which will be in the variable:
$this->links->previousName and $this->links->nextName
Be careful, the changes made in the view.html.php file will be lost at each update.
We will improve the code to make it easiest to get some values of the next and previous products in the future.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Yes some improvements have been made in October.
Please Log in or Create an account to join the conversation.