Helpcenter +918010117117 https://help.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" [email protected] https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India
call to replace anchor tags contains '/admin' in href

How to change product image ratio substore wise?

Add a startup widget in admin > site > startup widgets.

Name : You can provide any name according to remembrence.
like: 'Change image ratio'

Template: Add the code/examples given below in template acxcording to ur requirement and save.

Examples:

1. If your substore name(alias) is 'abc' and you want to show a rectangle image in abc substore than put the image accordingly and change the image ratio like : 3:1

<div ng-if="ms.user.store == 'abc' ">
  <div ng-init="ms.variables.product_image_ratio = '3:1'">
</div>

2. If your substore name(alias) is 'xyz' and you want to show a square image in xyz substore than put the image accordingly and change the image ratio
like : 1:1

<div ng-if="ms.user.store == 'xyz' ">
  <div ng-init="ms.variables.product_image_ratio = '1:1'">
</div>

2019-09-30T07:09:07.587Z