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?
What happens without your override?
Have you turned on "Show the product navigation? " in VM Configuration/Shopfront?
Thank´s for your reply.
I also did the test.
Rename the folder and the problem is the same.
What product order did you choose in VM configuration?
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
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.
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]
Sorry, I dont get the bugfix idea. please write the code which is there and should be replaced with. :-)
Do you have the same problem if you temporarily switch your frontend template to one of the Joome default templates (i.e. Beez)?
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.
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]