Problems with navigation products in the detailed view product page

Started by vlopez, August 28, 2013, 09:01:02 AM

Previous topic - Next topic

vlopez

Regards

Joomla: 2.5.14
Virtuemart: 2.0.22a
Template overwritten (templates/my_template/html/com_virtuemart/productdetails/default.php)

In the product view page does not show navigation products.
I found several threads about this but none gives a valid solution.
I even changed the core code, but got rid because changes had no effect.
Is there any solutions?

jenkinhill

What happens without your override?

Have you turned on "Show the product navigation? " in VM Configuration/Shopfront?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

vlopez

Thank´s for your reply.

I also did the test.
Rename the folder and the problem is the same.

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

vlopez

Greetings.
I experimented with the default order, as I read in a thread, but without result.
At this time, the order is: product name and notification of low stock

Maxim Pishnyak

administrator\components\com_virtuemart\models\product.php):
around getNeighborProducts
before
$q .= ' and `slug` ' . $op . ' "' . $product->slug . '" ';
after
if($this->filter_order !='pc.ordering' ){
$q .= ' and `slug` ' . $op . ' "' . $product->slug . '" ';
}
else{
$q .= ' and pc.ordering'.$op.$product->ordering;
}

before
$orderBy = ' ORDER BY `'.$this->filter_order.'` ';
after
$orderBy = ' ORDER BY '.$this->filter_order.' ';
Proposed by Boro.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

vlopez

Greetings and thanks for the reply.

I made ​​the changes in the file administrator / components / com_virtuemart / models / product.php
Without positive result

I have also updated to 2.0.22b Virtuemart, continuing the problem.

I will try to expose as many details as possible.
1. - Attached configuration image Virtuemart Template tab. (The image that I bring is that which contains the fields that can affect the problem at issue).
2. - Attached image Virtuemart configuration, Product tab order settings.
3. - The template is js-Wright, and I've overwritten as described in the documentation of Virtuemart.
4. - Virtuemart is used only as a catalog.

I found three problems, all related to paging and navigation inside the store-catalog:

The first problem is this thread itself. No product navigation appears on the product detail page. Analyzing the page with Firebug, I notice that appears called product-neighbors div, but the div does not display anything.
Another problem, not shown navigation between subcategories within a main category. Analyzing the page with Firebug, I notice that appears div called vm-pagination, but shows nothing.
Finally, the back button of the product page always returns to the home page of Virtuemart.

I think all the problems are related, and the fact that the related div display on pages (product detail and subcategory) makes me think that the problem is not related to the template.

Thanks in advance.

[attachment cleanup by admin]

Milbo

Sorry, I dont get the bugfix idea. please write the code which is there and should be replaced with. :-)
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jjk

Do you have the same problem if you temporarily switch your frontend template to one of the Joome default templates (i.e. Beez)?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

vlopez

Quote from: Milbo on September 01, 2013, 14:37:22 PM
Sorry, I dont get the bugfix idea. please write the code which is there and should be replaced with. :-)

The code written by Maxim Pishnyak appears in this thread.

Quote from: jjk on September 01, 2013, 15:25:35 PM
Do you have the same problem if you temporarily switch your frontend template to one of the Joome default templates (i.e. Beez)?

I tested with default joomla templates: Atomic, Beez5 and Beez2, and still do not see the navefación between products in the product page.


Thanks in advance.

jjk

Are you shure you have enabled your navigation (see screenshot below) and disabled your override of ...templates/my_template/html/com_virtuemart/productdetails/default.php?
BTW - I would recommend to disable files by adding a .bak to the filename, in this case rename default.php to default.php.bak

[attachment cleanup by admin]
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations