Article suivant...

  • Posts: 261
  • Thank you received: 6
  • Hikaserial Standard
10 years 1 month ago #150026

-- url of the page with the problem -- : www.sudkarting.fr/boutique
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 2.5.19
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message
Bonjour,

Depuis la version 2.3.0 il y a la possibilité dans la vue article de la boutique de passer à l'article suivant ou l'article précédent (Très bonne idée en tous les cas!), mais on passe à l'article d'une autre catégorie...
Ex: si on regarde le 1er article d'un catégorie, si on fait suivant on passe au 1er article de la catégorie suivante et si on fait précédent on passe au 1er article de la catégorie précédente...

Est il possible de "naviguer" uniquement dans la même catégorie? Si oui comment?

Merci

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #150241

Bonjour,

Merci d'éditer le fichier "components/com_hikashop/views/product/view.html.php", dans la fonction "show()" ajoutez:

$filters['category'] = 'a.category_id = '.(int)$category_id;
Après (dans le "if"):
			if(empty($category_id)){
				$query='SELECT a.category_id FROM '.hikashop_table('product_category').' AS a WHERE a.product_id='.(int)$product_id.' ORDER BY a.product_category_id ASC';
				$database->setQuery($query);
				$category_id = $database->loadResult();

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

  • Posts: 261
  • Thank you received: 6
  • Hikaserial Standard
10 years 1 month ago #150300

Top!!!

Merci beaucoup.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum