Help with accessing PowerPhoto photo’s
-
I’m currently trying to implement a product overview into a WordPress website using the Alexa CRM plug-in. At this moment I am a bit lost on how to correctly fetch images from PowerPhoto and display them on the website.
Below is an example of the code, which currently isn’t working:
[msdyncrm_twig] {% fetchxml collection="product" cache="PT30M" %} <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"> <entity name="product"> <attribute name="productnumber"/> <filter type="and"> <condition attribute="statecode" operator="eq" value="0"/> </filter> ???? <link-entity name="product" from="productid" to="{po_oid}" alias="ac"> ??? <attribute name="po_defaultimage" /> <filter type="and"> <condition attribute="productid" operator="eq" value="{{productid}}" /> ????? </filter> ??? </link-entity> </entity> </fetch> {% endfetchxml %} {% for product in product.results.entities %} <img src="'data:image;base64,{{ product.po_defaultimage }}');" /> {% endfor %} [/msdyncrm_twig]
Could someone help me out and show me how to correctly fetch images from PowerPhoto and display them on the website? Thanks in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Help with accessing PowerPhoto photo’s’ is closed to new replies.