I've installed the latest 6.x DEV version (4/18). The related prodcuts panel won't show up on cart page. It only shows up if it is configured to display random products. Cart pane setting is also enabled. Now sure what's wrong with it. any suggesstions?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | uc_upsell_core.inc_.cartpane.dmadruga.patch | 577 bytes | dmadruga |
| #5 | uc_upsell.module.cartpane2.patch | 4.27 KB | torgospizza |
| #3 | uc_upsell.module.cartpane.patch | 4.27 KB | torgospizza |
Comments
Comment #1
kash99 commentedIt apears that it is caused by the the code in last patch (uc_upsell.module.cartlinks.patch) http://drupal.org/node/423232 as well.
Comment #2
torgospizzaLooks like I can reproduce this. Thanks, I'll check it out.
Comment #3
torgospizzaOk, here's a patch that should work against the most recent Dev version (which should include the most recent patch from #423232: Cart Pane related product URLs incorrect). If this patch doesn't work, the next Dev release will include it. The issue was using arg(1) instead of a $nid variable. The changes are easy and I can show them in a separate post if you like.
Comment #4
torgospizzaComment #5
torgospizzaDuring some more testing I was able to still reproduce it. I believe this patch fixes it, although more testing is still needed. Please ignore the previous patch and use this one instead.
Comment #6
dmadruga commentedI was experiencing the same issue with v 1.7.2.21 (dev 2009-May-22). The problem seems to be in uc_upsell_core.inc. In the end of the foreach loop that starts in the line 171 the array $related is cleared (line 199) if no product is found that relates to the node being processed.
I've done some small modifications that worked fine for me. Find the patch file attached to this message.
Comment #7
torgospizzaHmm, interesting. Thanks for taking a look at Dev first. I'll apply this patch locally and do some testing. And thanks for the patch!
Comment #8
kenwen commentedI've experienced the same problem but under specific circumstances; I need to add a product which has no associations first, this then causes further additions to the cart, even if they have associated products, to not show the related products in the cart pane
Comment #9
torgospizzaBumping this so I can take a closer look.
Comment #10
torgospizzaThis issue was fixed in Dev. The reason was because I moved the cart_nids array out of the function it was originally in. The latest Dev package sees this moved to its own helper function so it can be called throughout the module.
Give it a try, and let me know if it works for you!