As of the latest 6.x DEV version (4/6/2009) the block will show up automatically in the $node->content object. In your own custom themes you can invoke the Upsell block anywhere using simply:
Hi torgosPizza - Great Module, thanks for sharing.
Small issues with the latest 6-dev
1. The related items block within node content is wrapper is a container called <div class="content">
This is the same div class used by the core node.tpl.php them to wrap the content.
There is no read need for this extra div wrapper.
On the next div just add another class perhaps such that it reads <div class="upsell-block" id="upsell-block-0">
2. The same block appears above the 'add to cart' bottom and any attribute options.
By default, I believe it should really appear below this.
Could it be added to admin/store/settings/products/edit/fields as an option?
Regards
Alan
Comments
Comment #1
torgospizzaHi, thanks for pointing this out. I have committed these changes (as well as adding some more CSS declarations) into the latest DEV release, which should be available sometime today. (You can always grab the latest .module file from the CVS repository, of course.)
I did have one question regarding point #2 - You said "the same block appears above".. those elements, however this isn't the case for me. I can test it in the Garland theme, and the block appears below the attributes selection and "Add to cart" button. (You can of course override this in your template file and CSS.)
I made an additional Commit just now that adds a Weight setting to the block configuration at admin/build/block/configure/uc_upsell, and sets the default to 20. (I forgot that D6 has a much wider range of Weights you can choose from). You can override this setting to change where in the $node->content object the block appears.
Let me know if this new version fixes your issues - again, you'll have to wait for the DEV packaging script to run, or you can grab the code directly from CVS.
Comment #2
torgospizzaThis code is being used on a live 6.x site with no issues, so I'm closing this. Feel free to open a new issue if you encounter any problems.