Reminder plugin - Multiple questions about this

  • Posts: 231
  • Thank you received: 28
  • Hikashop Business
2 years 9 months ago #339503

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 3.10.6
-- PHP version -- : 7.4.27

Hi,
I have some questions and 1 bug I think.

1) This constant is not replaced by translation:
CART_REMINDER_NOTIFICATION_SUBJECT="Any thing I put here, only the constant it is visible in the email I get"



The main language for Admin and Front it's set to RO, I've even set the language for super user to RO, but in the preview of e-mail, I see the EN version.

2) Can we please get more info about how the plugin is working?
From what I know now, the plugin can be set to send the email, let's say after each 24h from when the cart was left, for the next 30 days, right? So in this situation, a user will get 30 email?
Frequency: After each X second, if the cron link it's accessed, the plugin run the rest of the actions, right?
Waiting period for carts: If the time from when the cart was left is not bigger than this number, the plugin does not send the mail, right?
Max waiting period for carts If the time from when the cart was left it si bigger than this, the plugin it will start to ignore that cart, right?
Does the plugin send notifications to existing baskets if they do not have products in them?


3) I get this when I access the cron link and the email is sent.
Warning: Cannot modify header information - headers already sent by (output started at /administrator/components/com_hikashop/helpers/helper.php:926) in /administrator/components/com_hikashop/classes/cart.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at /administrator/components/com_hikashop/helpers/helper.php:926) in administrator/components/com_hikashop/classes/cart.php on line 79

Attachments:

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

  • Posts: 231
  • Thank you received: 28
  • Hikashop Business
2 years 9 months ago #339512

4) Can te plugin be set to send only two notification, first time to be after 30 min after the user left the cart, and a second time 24h before the cart expire?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339507

Hi,

1. The reminder plugin doesn't have a Romanian language file.
You can file the english one at administrator/languages/en-GB/en-GB.plg_hikashop_reminder.ini
If you want the text of the email to be in your language, you need to duplicate that english translation file to administrator/languages/xx-XX/xx-XX.plg_hikashop_reminder.ini where xx-XX is your language code and translate the text in that file.
If you can share it with us, we can add to the plugin for others in the future.
The text you have already in Romanian in the email is there because it comes from the main HikaShop translation file, not the plugin's.
Now I'm not sure why it wouldn't use the translation key CART_REMINDER_NOTIFICATION_SUBJECT="Did you have a problem with your cart ?" which is in the English translation file of the plugin. It does it on my end. Can you check that you have that translation key in the English translation file of the plugin on your end ?

2. In each order and cart, the plugin adds a flag. When it sends an email for an order/cart it activates that flag so that another email won't be sent to the customer for that cart even if it is still in the window.
And the plugin checks that the cart has products, or it won't send the email.
It also checks that there was no order from the customer since the cart was left untouched. If there was, it doesn't send the email either because we assume that the customer already got what he wanted.

3. Thanks for your report. We'll fix these warnings with the next version of HikaShop. You can ignore them for now.

4. There is no easy way to make it send two notifications. It's made to only send one.

Last edit: 2 years 9 months ago by nicolas.
The following user(s) said Thank You: oxido

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

  • Posts: 231
  • Thank you received: 28
  • Hikashop Business
2 years 9 months ago #339619

1) The key CART_REMINDER_NOTIFICATION_SUBJECT was in the en-US file.
* I have attached the translated file for Romanians
2) But could this plugin be modified to appear as a second plugin with another flag to be configured to send the 2nd notification?

Attachments:

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

  • Posts: 231
  • Thank you received: 28
  • Hikashop Business
2 years 9 months ago #339623

The subject of the email it still show the KEY and not the value, and the "key=value" it is in both translations

CART_REMINDER_NOTIFICATION_SUBJECT="Ai avut o problemă cu coșul de produse?"
I have also replaced the KEY in the subject field with another KEY ( YOUR_CAN_FIND_BELOW_THE_DETAILS_OF_YOUR_CART ) and the result was the same.

Attachments:
Last edit: 2 years 9 months ago by oxido.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339641

Hi,

1. Thanks for sharing the translation file. I've added it to the plugin on our end.

2. Well, it could be modified, but everything in it needs to be renamed. The name of the plugin, the translation keys (if you want another text in the email), the email name itself, then columns added to the hikashop_cart and hikashop_order tables, etc.
So it's even more work than adding a second email directly in the existing plugin.
Either way, I expect around 2 or 3 hours of work for a seasoned PHP developer because it's not just a few lines of code to add.

3. In the menu System>Emails, edit the cart reminder email. There, either empty the email subject or directly write the text in romanian and it should work.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum