That's an interesting re-use side-effect bug... I guess we could
either create a separate ftl file for the cross/up/etc-sells than the
one used for the category listings, or we could make the current one
more intelligent to know where it is being included from. Either way
is fine by me...
-David
On Aug 10, 2006, at 3:22 PM, Tim Ruppert wrote:
Are rendered using the productsummaryScreen - which is normally
fine. I found something strange when my products starting showing
up in multiple categories.
Picture Products A, B, & C which are all in the Coat Category. So,
you associate these as product_complements and when you're in the
Coat Category the URLs to the Suggested Products look something
like /ecommerce/control/crosssell/~category=100/~product_id=10000 -
(let's say this is to Product C). Let's say that A has the
associated products B & C, and the like for each of the others.
This is awesome, but what happens when you place A & B on special
and they show up on your main page? Well, then the detail page
looks the same except the URLs look like this /ecommerce/control/
crosssell/~category=SPECIALS/~product_id=10000 .
This is a problem because C is not actually in the SPECIALS - and
causes an error. I have fixed this by using a different
productsummaryScreen that removes the ~category component from the
URL - which is kinda weird, but it works.
Is this something we should fix in OFBiz?
Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com
o:801.649.6594
f:801.649.6595