Re: Release 2.0.13a Can you eliminate child products from being displayed on parent category pages?

Started by klattr1, November 12, 2012, 20:06:05 PM

Previous topic - Next topic

klattr1


Milbo

I am sorry, I dont understand what you mean.

ahh maybe this. In Vm2 there is the rule that you should not give a child a category. If you use your parent as pattern give your child a category, else let it empty.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

klattr1

I went ahead and made sure all child products have no category selected, but after doing so, some of the SEF URL's get messed up. For example...

1) Visit http://www.deatschwerks.com
2) Visit http://www.deatschwerks.com/products/accessories/other-4cyl-o-ring-kits-detail (this is another child product page)
3) Once on the page above, in the top navigation menu, rollover "Products", then click on "DW200 In-Tank Fuel Pump"
4) Once on the page above, go the drop-down menu to select any of the child products. For example, by selecting "9-201-0883" renders the URL as http://www.deatschwerks.com/products/accessories/9-201-0883-detail instead of http://www.deatschwerks.com/products/fuel-pumps/9-201-0883-detail

Notice above that by navigating to the 2nd child product page, it takes on the category URL/path of the previous child product viewed. It also screws up the breadcrumbs path (doubling categories out of order).

How can I prevent this from happening? Only way I can get around the issue is by not clicking on the item in Step #3 above. So it seems like a conflict in using the VM "Category Layout" menu item to pinpoint users to subcategories.

Milbo

ai

there is a conflict, I assumed, that visiting a child is either coming from the parent or the search, so I use for the link the last set category of the session. Imho, I think I do that,.. hmmm. Can you provide even more data? Interesting problem.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

klattr1

Quote from: Milbo on November 26, 2012, 21:41:08 PM
ai

there is a conflict, I assumed, that visiting a child is either coming from the parent or the search, so I use for the link the last set category of the session. Imho, I think I do that,.. hmmm. Can you provide even more data? Interesting problem.
Not sure exactly what other data you may want, but here's some things to note or what I've tested. The problem still occurs when:
1) SH404SEF is turned off (it's using Joomla router for VM anyways)
2) I've renamed the VM template override folder and the problem still exists
3) The problem seems like it's related to the actual menu item links; reason I mention that is the URL's dont' get screwed up if you visit them using the steps outlined above from the top-level "Products" menu item.

klattr1

It looks like the parent product always has the correct SEF URL...but the child products that are accessible through the drop-down on the parent product page have the wrong URL path. And the URL path it uses is from a previously viewed child product...for example, here's the code to the drop-down form on the DW300 page (notice the first parent product page has the correct URL whereas the remaining ones shouldn't have "accessories" in it):

<select id="field0custom_value" name="field[0][custom_value]" onchange="window.top.location.href=this.options[this.selectedIndex].value" size="1" class="inputbox">
<option value="/products/fuel-pumps/dw300-in-tank-fuel-pump" selected="selected">DW300 In-Tank Fuel Pump</option>
<option value="/products/accessories/9-301-0791-detail">9-301-0791</option>
<option value="/products/accessories/9-301s-1003-detail">9-301s-1003</option>
<option value="/products/accessories/9-301s-1007-detail">9-301s-1007</option>
<option value="/products/accessories/9-301s-1006-detail">9-301s-1006</option>
<option value="/products/accessories/9-301-0847-detail">9-301-0847</option>
<option value="/products/accessories/9-301-0836-detail">9-301-0836</option>
<option value="/products/accessories/9-301-0766-detail">9-301-0766</option>
<option value="/products/accessories/9-301-1000-detail">9-301-1000</option>
<option value="/products/accessories/9-301s-1004-detail">9-301s-1004</option>
<option value="/products/accessories/9-301s-1005-detail">9-301s-1005</option>
<option value="/products/accessories/9-301-0848-detail">9-301-0848</option>
<option value="/products/accessories/9-301-0846-detail">9-301-0846</option>
<option value="/products/accessories/9-301-0883-detail">9-301-0883</option>
</select>


The only way I can get around it is by eliminating all of the links to product pages within the main menu navigation under "Products" or by selecting a category that the child products belong to (which someone mentioned I should leave out)

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/