Move the "next" and "previous" button on bottom

  • Posts: 46
  • Thank you received: 0
11 years 5 months ago #136462

Hello,
What I need to to to move the NEXT and PREVIOUS button to navigate products on the bottom instead of the top?

And maybe is possible change the images with the word "next" e "previous"?

thanks
Giorgio

Last edit: 11 years 5 months ago by giorgiofox.

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

  • Posts: 83831
  • Thank you received: 13572
  • MODERATOR
11 years 5 months ago #136524

Hi,

You can edit the file "show" of the view "product" via the menu Display>Views and move the code:

if(!empty($this->links->previous))
		echo "<a title='".JText :: _('PREVIOUS_PRODUCT')."' href='".$this->links->previous."'><span class='hikashop_previous_product'></span></a>";
	if(!empty($this->links->next))
		echo "<a title='".JText :: _('NEXT_PRODUCT')."' href='".$this->links->next."'><span class='hikashop_next_product'></span></a>";
If you want to change the images, you can edit the frontend CSS file of HikaShop via the Display tab of the configuration and change the code:
.hikashop_next_product{
	background-color: transparent !important;
	float:right;
	width: 35px;
	height: 35px;
	background-image:url(../images/icons/next.png);
}

.hikashop_previous_product{
	background-color: transparent !important;
	float:left;
	width: 35px;
	height: 35px;
	background-image:url(../images/icons/prev.png);
}

Last edit: 11 years 5 months ago by nicolas.

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

  • Posts: 46
  • Thank you received: 0
11 years 5 months ago #137195

HELP!
upgrading to 2.2.3 the buttons are disappeared!

I've moved the button to down, and also moved the left button to right in CSS, what I need to do to enable again button?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #137206

Hi,

Thanks to check if the option "Show shortcuts to other category products" in Configuration > Display > Default parameters for products is still enabled.

We don't make any changes on these buttons in this release. So you have maybe broken something when editing the view "product / show", or the image set is no more in the desired folder, or maybe a permissions issue.

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

  • Posts: 46
  • Thank you received: 0
11 years 5 months ago #137209

I've already checked it. I've simple reinstalled the 2.2.2 and the button work again, please check the 2.2.3
thank you
Giorgio

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

  • Posts: 83831
  • Thank you received: 13572
  • MODERATOR
11 years 5 months ago #137273

We don't have the problem on our end. The next/previous buttons work fine in the latest version in our tests.
We would need more information on the issue to be able to help you.
Can you provide a link to a product page with the issue ?
Can you turn on the debug mode of the joomla configuration and provide a copy/paste of the traces at the bottom of that product page while that option is turned on ?

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

  • Posts: 3
  • Thank you received: 0
11 years 4 months ago #138050

Hello Sirs,

I have same problem.
After the 2.2.3 upgrade, the netxt / prev buttoms are missing. ( the Show shortcuts to other category products is YES )
But,
If I set the Simplified breadcrumbs to NO , the buttoms are ready.
Unfortunally it is not solve the problem, without the simplified breadcrumbs function the URLs changed to : xyz_productname/category_pathway-65.html and the google can not find the indexed product pages anymore.
Any solutions ?

BR,

Peter

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

  • Posts: 83831
  • Thank you received: 13572
  • MODERATOR
11 years 4 months ago #138116

Hi,

Unfortunately, I can only reply the same thing that I already replied:

We don't have the problem on our end. The next/previous buttons work fine in the latest version in our tests.
We would need more information on the issue to be able to help you.
Can you provide a link to a product page with the issue ?
Can you turn on the debug mode of the joomla configuration and provide a copy/paste of the traces at the bottom of that product page while that option is turned on ?

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

  • Posts: 3
  • Thank you received: 0
11 years 4 months ago #138164

Hi Nicolas,

Thank you for your quick reply.

This is the link: www.radiosystems.eu/product/280-rigol-ds1052e.html

I tried to switch on the debug mode.
What information do you need, please.
Database queries ? please see at : www.radiosystems.eu/database.doc

BR,

Peter

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

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #138225

Hi,

Was this working fine before the update ?
From which version do you have updated ?

Thanks to give us a ftp access in order to debug that problem.
I think that there is a problem when getting the category_id which allow to get the products in the same category than the current product.

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

  • Posts: 3
  • Thank you received: 0
11 years 4 months ago #138227

Hi,

The arrows at 2.2.2 forking fine. After the 2.2.2 -> 2.2.3 update , the arrows are missing.
The Joomla CMS uppdated from 2.5.16 to 2.5.17 , too.

Peter

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

  • Posts: 83831
  • Thank you received: 13572
  • MODERATOR
11 years 4 months ago #138252

Hi,

So the query

30.	SELECT DISTINCT a.product_id 
  FROM parnm_hikashop_product_category AS a 
  LEFT JOIN parnm_hikashop_product AS b 
  ON a.product_id=b.product_id 
  WHERE b.product_published=1 
  AND a.category_id = 2 
  AND b.product_type='main' 
  GROUP BY a.product_id 
  ORDER BY a.ordering ASC
is the one which tries to get the next and previous products for the current product based on the category of the current product.
So this means that either the current menu item is set to display the products of the main category (id 2), or that the product itself is directly in that category (id 2).

The following user(s) said Thank You: radiosystems

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

Time to create page: 0.210 seconds
Powered by Kunena Forum