Show shortcuts to other category product: BUG?

  • Posts: 108
  • Thank you received: 0
11 years 5 months ago #149698

Hi there/Salut,

Show shortcuts to other category product: is defined as per your Help function as:
Display Previous and Next button, switch between the products of the same category.

The option is turned on/Yes in the Configuration --> Display --> Default parameters for products --> Show shortcuts to other category product

But then WHY am I getting product from other Categories?
see category listing:
www.noveltylei.com/index.php/store/categ...-plumeria-ribbon-lei

1st product listing:
www.noveltylei.com/index.php/store/produ...bon-lei-yellow-green

Click Next arrow and you find yourself in a different sub-category ? :(
There are 4 items in this sub-category and I'm getting products from other sub-categories that are not related...

And yes, the products are only in 1 category and yes I have rebuilt the Menu Structure and cleared cache just in case and no I haven't edited any of the Views.

Help :)

Thanks,

Emmanuel.

-- url of the page with the problem -- : www.noveltylei.com/index.php
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : any browser
-- Error-message(debug-mod must be tuned on) -- : none

Attachments:
Last edit: 11 years 5 months ago by exlemor.

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

  • Posts: 84290
  • Thank you received: 13691
  • MODERATOR
11 years 5 months ago #149765

Hi,

I would indeed have asked to check if the products were in another category as well :)
Could you provide a backend access so that we can check your settings ?

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

  • Posts: 108
  • Thank you received: 0
11 years 5 months ago #149781

Salut Nicolas,

I have emailed you backend credentials.

www.noveltylei.com/administrator/

Frontend:

www.noveltylei.com/index.php
[not www.noveltylei.com/ ]

Cheers,

Emmanuel.

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

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

Hi,

Indeed, it's strange. Everything seems to be well configured.
I will need a FTP access in order to see what's happening in the view.html.php file.

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

  • Posts: 108
  • Thank you received: 0
11 years 5 months ago #149934

Salut Xavier,

Où`dois-je / comment dois-je envoyer cela?

Au cas ou j'ai bien deviner, j'ai envoyé cela à This email address is being protected from spambots. You need JavaScript enabled to view it.

Merci,

Emmanuel.

Last edit: 11 years 5 months ago by exlemor.

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

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

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();

Ce problème est général, nous allons améliorer cette partie pour la prochaine release.

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

  • Posts: 108
  • Thank you received: 0
11 years 5 months ago #150257

Hi there Xavier,

Malheureusement/Sadly, all that that did was create a Blank page on the entire site as soon as I inserted that code after that line.

I tried putting it many places around there before, after, a bit further down etc no luck :(

Perhaps if you could attach a full working copy of the file might be better ? or email it to me [exlemor @ gmail.com]
[either way]

Cheers,

Emmanuel.

Last edit: 11 years 5 months ago by exlemor.

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

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

Corrected! I think that you make a mistake while editing

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

Time to create page: 0.078 seconds
Powered by Kunena Forum