Integration between acymailing and hikashop

  • Posts: 45
  • Thank you received: 0
  • Hikashop Business
6 years 8 months ago #288743

-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.8.5
-- PHP version -- : 7.0
-- Browser(s) name and version -- : Anyone

I use the integration with acymailing to create auto newsletters and i've a few problems:
- custom template don't works, i checked and i've the correct hikashop_product.php file but the newsletter show the standard template;
- the tag generator don't works correctly because for example i use the tag {hikashop_auto_product:209-| type:intro| min:1| max:5| order:product_id,DESC| filter:modify| price:none} and the newsletter created show the price.

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
6 years 8 months ago #288768

Hi,

What do you have in your hikashop_product.php file and did you place it in the media/com_acymailing/plugins/ folder as needed for it to be found by the integration plugin ?

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

  • Posts: 45
  • Thank you received: 0
  • Hikashop Business
6 years 8 months ago #288817

Hi Nicolas,

Thanks for you help. The name of the file created by the system is not the correct. The system created a file named hikashopproduct.php
After changed to the correct, now works.
And the second question: why even setting to not show the price in the plugin, the price is showed? As you can see in the print screen, in the tag the "price:none" but after in the newsletter the price is showed.

Best regards

Attachments:

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
6 years 7 months ago #288838

Hi,

I don't remember that AcyMailing had the capability to generate the file for you ?
But anyways, regarding the price issue:
What do you have in hikashop_product.php ? What if you just remove the {finalPrice} tag in it ?
I see that you're using auto tags and not normal tags. Do you have the same issue with normal product tags ?

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

  • Posts: 45
  • Thank you received: 0
  • Hikashop Business
6 years 7 months ago #288839

Hi,

In custom template, if i remove the {finalPrice} tag the price is not shown.
Yes, i'm using auto tags for smart newsletters - is very useful in my case.
With normal tags, if is a product tag with price set to none works fine. If is a category tag (for example to put some product of same category) the price set to none don't works (the price is shown). So, the problem is with category tags.

Best regards,
Bruno

Attachments:

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

  • Posts: 82683
  • Thank you received: 13337
  • MODERATOR
6 years 7 months ago #288841

Hi,

Thanks for the additional details.
Add the line:

						if(!empty($parameter->price)) $args[] = 'price:'.$parameter->price;
after the line:
						if(!empty($parameter->lang)) $args[] = 'lang:'.$parameter->lang;
in the file plugins/acymailing/hikashop/hikashop.php and that will allow the system to handle the price setting in the auto (smart) newsletters.
We'll add that patch on our end too.

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

  • Posts: 45
  • Thank you received: 0
  • Hikashop Business
6 years 7 months ago #288875

Hi Nicolas,
Works perfect now!!
Thanks for your help.

Best resgards,
Bruno

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

Time to create page: 0.065 seconds
Powered by Kunena Forum