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

#   Shopping Cart emptying

##

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

Less More

- Posts: 234
- Thank you received: 4
-
-

8 years 2 months ago [\#297307](#297307) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Re: Shopping Cart emptying](/forum/4-how-to/31095-shopping-cart-emptying?start=20#297307 "Hello,  I'm having issues with the shopping cart emptying upon registration as well as logging in. Also, people are telling me that they cant register and that the error messages say that the account is already in use but they have never registered before...  Thanks for your help :)")*

Hello, thanks for that. If I wanted to add to the current message "Product successfully added to the cart" a link for people to log in could you point me in the right direction of where I would do this?

Cheers
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxMDk1LXNob3BwaW5nLWNhcnQtZW1wdHlpbmc/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 86316
- Thank you received: 14276
-
-

8 years 2 months ago [\#297371](#297371) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Shopping Cart emptying](/forum/4-how-to/31095-shopping-cart-emptying?start=20#297371 "Hello,  I'm having issues with the shopping cart emptying upon registration as well as logging in. Also, people are telling me that they cant register and that the error messages say that the account is already in use but they have never registered before...  Thanks for your help :)")*

Hi,

Well, if you do a translation override of the text there, you can add the extra text and link to the translation.
However, it will always appear.
Regardless of whether you're logged in or not.
If you want to display it only if you're not logged in, then you would have to directly edit the PHP file plugins/hikashop/cartnotify/cartnotify.php
There, you would change the line: Code:

'text' =&gt; JText::_('PRODUCT_SUCCESSFULLY_ADDED_TO_CART'),

to something like that: Code:

'text' =&gt; JText::_('PRODUCT_SUCCESSFULLY_ADDED_TO_CART'). (JFactory::getUser()-&gt;guest? '&lt;a src="link"&gt;text&lt;/a&gt;'),

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

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

Less More

- Posts: 234
- Thank you received: 4
-
-

8 years 1 month ago [\#297646](#297646) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Re: Shopping Cart emptying](/forum/4-how-to/31095-shopping-cart-emptying?start=20#297646 "Hello,  I'm having issues with the shopping cart emptying upon registration as well as logging in. Also, people are telling me that they cant register and that the error messages say that the account is already in use but they have never registered before...  Thanks for your help :)")*

Hello NIcolas

Thanks for that, I have been trying to get the code to work however, I am not that proficient at coding. Could you help me a bit further. Ideally I would like it so it was only there for people to see when they were not logged in.

Cheers
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxMDk1LXNob3BwaW5nLWNhcnQtZW1wdHlpbmc/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 86316
- Thank you received: 14276
-
-

8 years 1 month ago [\#297647](#297647) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Shopping Cart emptying](/forum/4-how-to/31095-shopping-cart-emptying?start=20#297647 "Hello,  I'm having issues with the shopping cart emptying upon registration as well as logging in. Also, people are telling me that they cant register and that the error messages say that the account is already in use but they have never registered before...  Thanks for your help :)")*

Hi,

We'll, I've given you the exact line to change, the new line to use instead and the file path where you'll find the line. I don't know what else I can tell you ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxMDk1LXNob3BwaW5nLWNhcnQtZW1wdHlpbmc/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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.191 seconds

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

[](#top)
