VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: vlopez on August 28, 2013, 09:01:02 AM

Title: Problems with navigation products in the detailed view product page
Post by: vlopez on August 28, 2013, 09:01:02 AM
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?
Title: Re: Problems with navigation products in the detailed view product page
Post by: jenkinhill on August 28, 2013, 11:17:26 AM
What happens without your override?

Have you turned on "Show the product navigation? " in VM Configuration/Shopfront?
Title: Re: Problems with navigation products in the detailed view product page
Post by: vlopez on August 28, 2013, 11:39:41 AM
Thank´s for your reply.

I also did the test.
Rename the folder and the problem is the same.
Title: Re: Problems with navigation products in the detailed view product page
Post by: Maxim Pishnyak on August 28, 2013, 15:10:47 PM
What product order did you choose in VM configuration?
Title: Re: Problems with navigation products in the detailed view product page
Post by: vlopez on August 28, 2013, 16:00:40 PM
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
Title: Re: Problems with navigation products in the detailed view product page
Post by: Maxim Pishnyak on August 28, 2013, 20:06:42 PM
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.
Title: Re: Problems with navigation products in the detailed view product page
Post by: vlopez on August 29, 2013, 10:21:45 AM
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]
Title: Re: Problems with navigation products in the detailed view product page
Post by: 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. :-)
Title: Re: Problems with navigation products in the detailed view product page
Post by: 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)?
Title: Re: Problems with navigation products in the detailed view product page
Post by: vlopez on September 02, 2013, 13:30:50 PM
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.
Title: Re: Problems with navigation products in the detailed view product page
Post by: jjk on September 02, 2013, 14:03:49 PM
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]