Acymailing integration

  • Posts: 272
  • Thank you received: 3
5 years 10 months ago #293882

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.8
-- PHP version -- : 7.2

At the moment there is image, title, description and price. Is it possible to add product codes to the information that is listed?

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
5 years 10 months ago #293888

Hi,

You can follow the instructions here to create your own template for product display using the tags in AcyMailing newsletters:
www.acyba.com/acymailing/161-acymailing-...ashop.html#customize
Only the main tags are mentioned there. The product code tag is not mentioned, but you can still use it in your template file with the tag: {product_code}

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 3
5 years 10 months ago #293928

We will check out the documentation and let you know how we get on. Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 3
5 years 10 months ago #293943

We followed the instructions on the AcyMailing help. The only problem is that in the preview/send the product image does not display correctly. {pictHTML} is replaced by

../images/hikashop/upload/thumbnails/250x250/caresseblanche.png


This is our code:
<div class="acymailing_content">
<h2><a href="{link}">{product_name} {finalPrice}</a></h2>
<table style="font-family:Arial, Helvetica, sans-serif;font-size:15px;display:block;" class="w200" cellspacing="0" cellpadding="0" border="0" align="left" width="200">
	<tbody>
		<tr style="line-height: 0px;">
			<td class="w200" style="box-sizing: border-box; text-align: left;" width="200" valign="top">
			{pictHTML}
			</td>
		</tr>
	</tbody>
</table>
<table style="font-family:Arial, Helvetica, sans-serif;font-size:15px;display:block;" class="w320" cellspacing="0" cellpadding="0" border="0" align="right" width="320">
	<tbody>
		<tr>
			<td class="w320" style="text-align: left;" width="320" valign="top">
				<?php echo JText::_('HIKASHOP_PRODUCT_CODE'); ?>: {product_code}
				{product_description}
			</td>
		</tr>
	</tbody>
</table>
</div>

If we remove the custom template and go back to the original the product image shows correctly. Is there another tag for the image we should be using?

Please Log in or Create an account to join the conversation.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
5 years 10 months ago #293945

Hi,

It's the correct tag, but you want to add and img tag for it, like that:

<img src="{pictHTML}" />

The following user(s) said Thank You: jameswadsworth

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum