Add initial support for native product images

Definitely not perfect yet, but a start..
This commit is contained in:
Lance Edgar 2017-02-23 13:21:19 -06:00
parent 507f742edf
commit cf059baffa
2 changed files with 24 additions and 2 deletions

View file

@ -110,7 +110,11 @@
${self.render_main_fields(form)}
</div>
% if image_url:
${h.image(image_url, "Product Image", id='product-image', path=image_path, use_pil=False)}
% if image_path is not Undefined:
${h.image(image_url, "Product Image", id='product-image', path=image_path, use_pil=False)}
% else:
${h.image(image_url, "Product Image", id='product-image', width=150, height=150)}
% endif
% endif
</div>
</div>