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

#   Suggestion plugin reminder

##

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

Less More

- Posts: 469
- Thank you received: 21
-

4 years 1 month ago [\#345737](#345737) by [Reincidente](/forum/user/12307-reincidente "View Reincidente's Profile")  *[Suggestion plugin reminder](/forum/33-customers/905184-suggestion-plugin-reminder#345737 "Hi Nicolas. I would like to make a suggestion about the Reminder plugin. When a user deletes all items from their shopping cart and is left with 0 products, when the Hikashop cron is triggered it also sends a shopping cart reminder, even though the cart contains no products. Could an &quot;if&quot; be added where if the number of products in the cart is 0, the reminder is not sent?")* was created by *[Reincidente](/forum/user/12307-reincidente "View Reincidente's Profile")*

Hi Nicolas.
I would like to make a suggestion about the Reminder plugin.
When a user deletes all items from their shopping cart and is left with 0 products, when the Hikashop cron is triggered it also sends a shopping cart reminder, even though the cart contains no products.
Could an "if" be added where if the number of products in the cart is 0, the reminder is not sent?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDUxODQtc3VnZ2VzdGlvbi1wbHVnaW4tcmVtaW5kZXI/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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

4 years 1 month ago [\#345738](#345738) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Suggestion plugin reminder](/forum/33-customers/905184-suggestion-plugin-reminder#345738 "Hi Nicolas. I would like to make a suggestion about the Reminder plugin. When a user deletes all items from their shopping cart and is left with 0 products, when the Hikashop cron is triggered it also sends a shopping cart reminder, even though the cart contains no products. Could an &quot;if&quot; be added where if the number of products in the cart is 0, the reminder is not sent?")*

Hi,

There is already the code to check that the cart is not empty before sending a reminder notification for it with the code: Code:

// skip cart if the cart has no products $this-&gt;db-&gt;setQuery('SELECT * FROM #__hikashop_cart_product WHERE cart_id = '.$cart-&gt;cart_id); $products = $this-&gt;db-&gt;loadObjectList(); if(empty($products)) return false; $hasProducts = false; foreach($products as $p) { if($p-&gt;cart_product_quantity&gt;0) { $hasProducts = true; break; } } if(!$hasProducts) return false;

in the file plugins/hikashop/reminder/reminder.php of the reminder plugin.
So I'm surprised you're saying this.

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

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

Less More

- Posts: 469
- Thank you received: 21
-

4 years 1 month ago [\#345774](#345774) by [Reincidente](/forum/user/12307-reincidente "View Reincidente's Profile")  Replied by *[Reincidente](/forum/user/12307-reincidente "View Reincidente's Profile")* on topic *[Suggestion plugin reminder](/forum/33-customers/905184-suggestion-plugin-reminder#345774 "Hi Nicolas. I would like to make a suggestion about the Reminder plugin. When a user deletes all items from their shopping cart and is left with 0 products, when the Hikashop cron is triggered it also sends a shopping cart reminder, even though the cart contains no products. Could an &quot;if&quot; be added where if the number of products in the cart is 0, the reminder is not sent?")*

attached shipping

- [ ![reminder&#95;2022-10-18.png](/forum/attachment/55728) ](/forum/attachment/55728 "...2022-10-18.png") [ ](/forum/attachment/55728?download=1 "...2022-10-18.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDUxODQtc3VnZ2VzdGlvbi1wbHVnaW4tcmVtaW5kZXI/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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

4 years 1 month ago [\#345777](#345777) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Suggestion plugin reminder](/forum/33-customers/905184-suggestion-plugin-reminder#345777 "Hi Nicolas. I would like to make a suggestion about the Reminder plugin. When a user deletes all items from their shopping cart and is left with 0 products, when the Hikashop cron is triggered it also sends a shopping cart reminder, even though the cart contains no products. Could an &quot;if&quot; be added where if the number of products in the cart is 0, the reminder is not sent?")*

Hi,

Could you go in the Customers&gt;Carts menu in your backend and open the details of the cart corresponding to this email and provide a screenshot of what you see there ?
I suppose it must be a special case we forgot about but without knowing more about the cart, it's hard to say what it could be.

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

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

Less More

- Posts: 469
- Thank you received: 21
-

4 years 1 month ago [\#345781](#345781) by [Reincidente](/forum/user/12307-reincidente "View Reincidente's Profile")  Replied by *[Reincidente](/forum/user/12307-reincidente "View Reincidente's Profile")* on topic *[Suggestion plugin reminder](/forum/33-customers/905184-suggestion-plugin-reminder#345781 "Hi Nicolas. I would like to make a suggestion about the Reminder plugin. When a user deletes all items from their shopping cart and is left with 0 products, when the Hikashop cron is triggered it also sends a shopping cart reminder, even though the cart contains no products. Could an &quot;if&quot; be added where if the number of products in the cart is 0, the reminder is not sent?")*

I have deleted this shopping cart.
I try to do this when I see empty shopping carts to avoid the email.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDUxODQtc3VnZ2VzdGlvbi1wbHVnaW4tcmVtaW5kZXI/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.055 seconds

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