0

once Registered user upload custom image on product view page and click on Custom button "save design"

for each click on "save design" , we are creating new row in table : "my_Designs" & we are sending email when each row created.

enter image description here

suppose customer clicked on "save design" button 3 times after uploading 3 images at each time, only one [first] email is delivering to customer with first image.

<?php echo Mage::getModel('catalog/product')->load($this->getProductId())->getName() ?>
<img src="<?php echo $this->getValue() ?>" alt="Mage::getModel('catalog/product')->load($this->getProductId())->getName()" />

Edit : full code :

hi <?php echo $this->getCustomerName() ?>,
<br>


<?php echo Mage::getModel('catalog/product')->load($this->getProductId())->getName() ?>
<img src="<?php echo $this->getValue() ?>" alt="Mage::getModel('catalog/product')->load($this->getProductId())->getName()" />

<br>

<center>
  <a href="<?php echo $this->getRestoreCartUrl() ?>" class="button">Finish Checkout</a>
</center>
  • Could you add a code by which you are sending emails? – Siarhey Uchukhlebau Mar 27 '17 at 10:58
  • @SiarheyUchukhlebau please check edit part in question, i am using only those code to send emails..... – Baby in Magento Mar 27 '17 at 11:03
  • Update your Controller email code. this is not email code – Magento 2 Mar 27 '17 at 11:04
  • @SiarheyUchukhlebau Thanks for support..... – Baby in Magento Mar 27 '17 at 12:09
0

As we are using 3rd party module to send emails, there was a configuration in that for sending email on time basis. Once we removed that settings, now we can able to send email per each second....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.