VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Ads4ever on August 18, 2013, 21:13:30 PM

Title: Click twice to get the category layout
Post by: Ads4ever on August 18, 2013, 21:13:30 PM
Hello,

Steps to follow:

1/ Visit tuniads.com/co/
2/ Click on menu link "store"
3/ Click on a product for example "Drill"
4/ Now click again on menu link "store"

==> it will show you the category "Indoor Tools" not like when you clicked first time in step 2
==> now when you click again on the link "store" il will show you the correct view like in step 2 (all products)


is there any solution


Virtuemart version : 2.0.22a
Joomla version :      2.5.14
No third-party plug-ins
No overrides
Use easy jQuery to avoid JS conflict
No JS error displayed by Firebug



Title: Re: Click twice to get the category layout
Post by: sadrem on August 19, 2013, 09:36:32 AM
Hello
My suggestion is:
1) Create category "Joomla extensions". Create sub categories of that category: "Components", "Plugins", etc. Put products accordingly to their category  "Components", "Plugins", etc.
2) Create  menu link -> create menu item of type "Virtuemart Store Front". Go to configuration -> template . Put "V" on only display categories for "display front"
3) In main menu create link to every category "Components", "Plugins", etc

Quoteand when the user click of the image of the product it show the detail of the product not the facybox of the image, is it possible with Virtuemart

easy template ovveride
Title: Re: Click twice to get the category layout
Post by: Maxim Pishnyak on August 19, 2013, 10:47:50 AM
Link?
Title: Re: Click twice to get the category layout
Post by: Ads4ever on August 19, 2013, 18:35:05 PM
Quote from: sadrem on August 19, 2013, 09:36:32 AM
Hello
My suggestion is:
1) Create category "Joomla extensions". Create sub categories of that category: "Components", "Plugins", etc. Put products accordingly to their category  "Components", "Plugins", etc.
2) Create  menu link -> create menu item of type "Virtuemart Store Front". Go to configuration -> template . Put "V" on only display categories for "display front"
3) In main menu create link to every category "Components", "Plugins", etc

Quoteand when the user click of the image of the product it show the detail of the product not the facybox of the image, is it possible with Virtuemart

easy template ovveride


Hello,
thank you for your replay, but I just want to have one link that shows me all the products of "Plugins" and "Modules", it should works when I create a link "category layout" with the option "Select a Category" set to "Top level category", but there is a bug as I mentioned before...


QuoteLink?

I installed a fresh virtuemart in a live website with sample data to show you the problem


Steps to follow:

1/ Visit tuniads.com/co/
2/ Click on menu link "store"
3/ Click on a product for example "Drill"
4/ Now click again on menu link "store"

==> it will show you the category "Indoor Tools" not like when you clicked first time in step 2
==> now when you click again on the link "store" il will show you the correct view like in step 2 (all products)

link "store" is link of "category layout" with the option "Select a Category" set to "Top level category"

the existent categories (all top level category):

Outdoor Tools 
Indoor Tools    
Hand Tools    
Garden Tools
Title: Re: Click twice to get the category layout
Post by: jenkinhill on August 19, 2013, 19:30:25 PM
Use VirtueMart homepage as your main link. Make sure all VM modules & plugins are assigned to that item. Then you can have two category links, but assuming they are both top level cats they will show on the VM homepage. It is too easy to get in a mess when playing with Joomla manu items.
Title: Re: Click twice to get the category layout
Post by: Ads4ever on August 20, 2013, 04:11:25 AM
Quote from: jenkinhill on August 19, 2013, 19:30:25 PM
Use VirtueMart homepage as your main link. Make sure all VM modules & plugins are assigned to that item. Then you can have two category links, but assuming they are both top level cats they will show on the VM homepage. It is too easy to get in a mess when playing with Joomla manu items.

Thank you very much for your help, but I think that you didn't understand the bug please to understand my problem can you follow this steps :


Steps to follow:

1/ Visit tuniads.com/co/
2/ Click on menu link "store"
3/ Click on a product for example "Drill"
4/ Now click again on menu link "store"

==> it will show you the category "Indoor Tools" not like when you clicked first time in step 2
==> now when you click again on the link "store" il will show you the correct view like in step 2 (all products)


is there any solution
Title: Re: Click twice to get the category layout
Post by: sadrem on August 20, 2013, 09:07:02 AM
Hello
It's not a bug!
You can't assign products to Top category (id=0)

As car don't know to fly vm don't know assign products to category 0  :)

If You want solution follow the steps:

1) Create category "Joomla extensions". Create sub categories of that category: "Components", "Plugins", etc.
Assign products accordingly to their category  "Components", "Plugins", etc. and Joomla extensions
2) link "store" is link of "category layout" with the option "Select a Category" set to "Joomla extensions"
Title: Re: Click twice to get the category layout
Post by: Ads4ever on August 20, 2013, 15:34:00 PM
Quote from: sadrem on August 20, 2013, 09:07:02 AM
Hello
It's not a bug!
You can't assign products to Top category (id=0)

As car don't know to fly vm don't know assign products to category 0  :)

If You want solution follow the steps:

1) Create category "Joomla extensions". Create sub categories of that category: "Components", "Plugins", etc.
Assign products accordingly to their category  "Components", "Plugins", etc. and Joomla extensions
2) link "store" is link of "category layout" with the option "Select a Category" set to "Joomla extensions"

Hello, thank you very much for your replay, but I you know with your suggested solution I got a blank page, here is some screen shots

here is the categories, there is no product under the root category :

(http://i39.tinypic.com/4f981.png)


Here is the link like you said :

(http://i39.tinypic.com/34gllp4.png)

here is the configuration of front since I want only all the products and no categories

(http://i43.tinypic.com/25t83kn.png)

here is the result :

(http://i40.tinypic.com/2gu08hu.png)

Virtuemart show only the products of the category and not the products of it's child categories, this is why I get a blank page, are you sure that the behaivor that I mentioned nit a bug ! the same link give us two views !
Title: Click twice to get the correct category layout
Post by: Ads4ever on August 21, 2013, 17:50:25 PM
Hello,

Steps to follow:

1/ Visit tuniads.com/co/
2/ Click on menu link "store"
3/ Click on a product for example "Drill"
4/ Now click again on menu link "store"

==> it will show you the category "Indoor Tools" not like when you clicked first time in step 2
==> now when you click again on the link "store" il will show you the correct view like in step 2 (all products)

in All templates even Beez2

Virtuemart version : 2.0.22a
Joomla version :      2.5.14
No third-party plug-ins
No overrides
Use easy jQuery to avoid JS conflict
No JS error displayed by Firebug
Title: Re: Click twice to get the correct category layout
Post by: Maxim Pishnyak on August 21, 2013, 20:46:27 PM
Quote from: Ads4ever on August 21, 2013, 17:50:25 PM
Use easy jQuery to avoid JS conflict
You still have two jquery on that page.
Title: Re: Click twice to get the correct category layout
Post by: Ads4ever on August 22, 2013, 00:27:51 AM
Quote from: Maxim Pishnyak on August 21, 2013, 20:46:27 PM
Quote from: Ads4ever on August 21, 2013, 17:50:25 PM
Use easy jQuery to avoid JS conflict
You still have two jquery on that page.

Thank you, but it's the same result, I have enabled the easy JQuery, you can see now that it have not any realation with JQuery, I think it's a bug of Virtuemart in redirection ... any help please ?
Title: Re: Click twice to get the category layout
Post by: sadrem on August 22, 2013, 09:06:40 AM
Excellent.
Now assign all products to "root" category . So for example You have one product assigned to 2 categories (root and Hand Tools)
Title: Re: Click twice to get the category layout
Post by: Ads4ever on August 22, 2013, 15:51:59 PM
Quote from: sadrem on August 22, 2013, 09:06:40 AM
Excellent.
Now assign all products to "root" category . So for example You have one product assigned to 2 categories (root and Hand Tools)

thank you it was a useful replay, it solves the problem, but now all products shows "back to root" and not to their direct category, so there is now way to access the products of a specific category, from the "category layout", can I change it to be "back to Indoor Tools" or go to "Indoor Tools", all I need is the show a link in the details view of a product to let the users to see all the product of that category not of the "root category"