I noticed that the add them feature wasn't working when I had selected similar products on the product edit form. I set up 3 items per block and added less than three items on the product edit form. I expected to see the added items and then random items from the taxonomy. However I was usually seeing just three random taxonomy items. Looking at uc_upsell_core.inc it seems that shuffle is called after the product edit form items and the taxonomy items are joined producing a randomized list of all of them and the possibility that the selected items will not show in the block.

The attached patch moves shuffle up to where the taxonomy items are called. It means that the selected items will always be in the same position, but I can live with that for my purposes.

All the best

Ian

CommentFileSizeAuthor
uc_upsell_core.patch1.03 KBian-moran

Comments

ian-moran’s picture

Status: Active » Needs review