Add initial support for native product images
Definitely not perfect yet, but a start..
This commit is contained in:
parent
507f742edf
commit
cf059baffa
2 changed files with 24 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue