[Skip to main content](#vessel-content)

#   Acymailing hikashop plugin

##

- **[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")**
- [![jameswadsworth's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/556-jameswadsworth "View jameswadsworth's Profile") Topic Author
- [ Offline](/forum/user/556-jameswadsworth)

Less More

- Posts: 274
- Thank you received: 5
-
-
-
- [](http://www.deanimaconsulting.com)
-

8 years 2 months ago -  8 years 2 months ago [\#297758](#297758) by [jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")  *[Acymailing hikashop plugin](/forum/3-bug-report/895689-acymailing-hikashop-plugin#297758 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11  When creating a newsletter and inserting hikashop products with language tags, when you click on preview/send the language does not change. We looked at the function &#95;replaceProduct (line 817) in the acymailing hikashop plugin file.  We see in line 850 the product values are assigned to the varFields. However the translation takes place in the next block of code starting in line 854. To get is working we had to invert the code so it becomes  This way the product values are translated first before they are assigned to the $varFields")* was created by *[jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile")*

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.11

When creating a newsletter and inserting hikashop products with language tags, when you click on preview/send the language does not change. We looked at the function _replaceProduct (line 817) in the acymailing hikashop plugin file.

We see in line 850 the product values are assigned to the varFields. However the translation takes place in the next block of code starting in line 854. To get is working we had to invert the code so it becomes
Code:

$translationHelper = hikashop_get('helper.translation'); f($translationHelper-&gt;isMulti(true, false)) $this-&gt;acypluginsHelper-&gt;translateItem($product, $tag, 'hikashop_product'); $varFields = array(); foreach($product as $fieldName =&gt; $oneField){ $varFields['{'.$fieldName.'}'] = $oneField; }

This way the product values are translated first before they are assigned to the $varFields

Last edit: 8 years 2 months ago by [jameswadsworth](/forum/user/556-jameswadsworth "View jameswadsworth's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTU2ODktYWN5bWFpbGluZy1oaWthc2hvcC1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

8 years 2 months ago [\#297784](#297784) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Acymailing hikashop plugin](/forum/3-bug-report/895689-acymailing-hikashop-plugin#297784 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.11  When creating a newsletter and inserting hikashop products with language tags, when you click on preview/send the language does not change. We looked at the function &#95;replaceProduct (line 817) in the acymailing hikashop plugin file.  We see in line 850 the product values are assigned to the varFields. However the translation takes place in the next block of code starting in line 854. To get is working we had to invert the code so it becomes  This way the product values are translated first before they are assigned to the $varFields")*

Hi,

That's a good point ! Thanks for your feedback. We'll add the change on our end for the next version of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTU2ODktYWN5bWFpbGluZy1oaWthc2hvcC1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
