Hi,
I am currently using the sexists function below to check to see if we have a customer photo on file. The only problem I am having is I need it to check for several file extensions instead of just ".jpg". I wanted to have it check for .bmp, .png, .tif as well.
<mvt:item name="toolkit" param="sassign|filename|/images/customers/photo/%photo_name%_photo.jpg" />
<mvt:item name="toolkit" param="vglosub|filename,%photo_name%,g.basket:cust _id" />
<mvt:item name="toolkit" param="sexists|vpath|filename" />
<mvt:if expr="vpath GT 0">
Use my photo on file from my previous order.
<input type="hidden" name="Product_Attributes[ 43 ]:code" value="BCG" />
<input type="hidden" name="Product_Attributes[ 43 ]:template_code" value="Phonfile" />
<input type="hidden" name="Product_Attributes[43]:value" value="&mvt:global:basket:cust_id;_photo.jpg">
<mvt:else>
We currently do not have a photo on file for you.
</mvt:if>
Thanks,
Mike
I am currently using the sexists function below to check to see if we have a customer photo on file. The only problem I am having is I need it to check for several file extensions instead of just ".jpg". I wanted to have it check for .bmp, .png, .tif as well.
<mvt:item name="toolkit" param="sassign|filename|/images/customers/photo/%photo_name%_photo.jpg" />
<mvt:item name="toolkit" param="vglosub|filename,%photo_name%,g.basket:cust _id" />
<mvt:item name="toolkit" param="sexists|vpath|filename" />
<mvt:if expr="vpath GT 0">
Use my photo on file from my previous order.
<input type="hidden" name="Product_Attributes[ 43 ]:code" value="BCG" />
<input type="hidden" name="Product_Attributes[ 43 ]:template_code" value="Phonfile" />
<input type="hidden" name="Product_Attributes[43]:value" value="&mvt:global:basket:cust_id;_photo.jpg">
<mvt:else>
We currently do not have a photo on file for you.
</mvt:if>
Thanks,
Mike
Comment