I need to change the img src dynamic after what product it is on for it to show the right image.
Here is the code i have tried. but the php-part doesn't work (it doesn't echo sku, the <php> tag shows on the product page).
<div class="custom-block"> <a aria-hidden="true" href="[login to view URL]<?php /* @escapeNotVerified */ echo $_product->getSku() ?>" rel="nofollow">
<img style="width: 150px; height: auto;" src="[login to view URL]<?php /* @escapeNotVerified */ echo $_product->getSku() ?>" />
</a></div>
And a link to a product page: [login to view URL] (the image is right below the add to cart-button)
Hello Monali here,
I have checked your job description carefully and I keep to get an opportunity to work with you.
I have over 4+ years of experience in Magento Theme & Plugin Development & customisation.
I can start work on your project on the spot and can give your work with good quality.
Thanks