There's no built-in way to show images for order items at the moment, although you could get it working with a little effort. You'd need to override the relevant template as you're already doing, and apply your own template tag that looks up the product images via order item SKU.
As for showing images in PDFs or any other format that isn't in the website, make sure you prefix the image URLs with the full host, eg http://www.example.com/static/foo.gif - A PDF file has no idea where to find "/static/foo.gif" on its own. On Tue, Jul 15, 2014 at 11:50 PM, Christoph H. Larsen < [email protected]> wrote: > > Dear All, > First of all, a huge thank you to everybody who has been contributing to > this fantastic project (Mezzanine as well as Cartridge)! > I have an issue in an e-commerce installation that does not use any > automated payment gateways, as each item sold is bespoke in nature. > Therefore, SHOP_PAYMENT_STEP_ENABLED is set to False, and nothing more > than order details are required. > The left-to-right template is in > templates/shop/includes/order_details.html. I wish to add a colum with a > small thumbnail image of each purchased item to the table of "Items > Ordered". However, I seem to be unable to pull in the right fields for the > "item", having tried to add a table column with: > <td><img alt="{{ item.description }}" src="{{ MEDIA_URL }}{% thumbnail > item.image 30 30 %}"></td> > to no avail. > Any hints? > I did manage to add the company logo to the letterhead, but noted that the > .pdf version of the same document does not print any graphics whatsoever. > Am I missing something in this respect? > Thanks a million for any hints - > Bests from Vietnam, > Chris > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
