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

#   Limit Reached message to include, item in cart

##

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

Less More

- Posts: 53
- Thank you received: 0
-
-

12 years 9 months ago [\#141805](#141805) by [oharris](/forum/user/946-oharris "View oharris's Profile")  *[Limit Reached message to include, item in cart](/forum/27-checkout/865444-limit-reached-message-to-include-item-in-cart#141805 "-- url of the page with the problem -- : http://http://2014conference.icac.org.jm/ -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5  My &quot;product&quot; is a registration process.  The maximum purchase to be made in my shopping cart is 1. If someone attempts to purchase another product, it gives the Limit Reached message. In the language file my LIMIT&#95;REACHED&#95;REMOVED line reads: &quot;Limit reached. Please complete previous registration before you can add: %s&quot;  The %s being the actual product that they are trying to add.  But, I would like the message to also include the product that they currently have in their shopping cart. How can I do this?  So message may read as an example - &quot;Limit reached. Please complete previous registration of Early Bird Registration - Members before you can add: Early Bird Registration - Spouse &quot;")* was created by *[oharris](/forum/user/946-oharris "View oharris's Profile")*

-- url of the page with the problem -- : http://http://2014conference.icac.org.jm/
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 2.5

My "product" is a registration process.

The maximum purchase to be made in my shopping cart is 1. If someone attempts to purchase another product, it gives the Limit Reached message. In the language file my LIMIT_REACHED_REMOVED line reads: "Limit reached. Please complete previous registration before you can add: %s"

The %s being the actual product that they are trying to add.

But, I would like the message to also include the product that they currently have in their shopping cart. How can I do this?

So message may read as an example - "Limit reached. Please complete previous registration of Early Bird Registration - Members before you can add: Early Bird Registration - Spouse "

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 9 months ago [\#141831](#141831) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Limit Reached message to include, item in cart](/forum/27-checkout/865444-limit-reached-message-to-include-item-in-cart#141831 "-- url of the page with the problem -- : http://http://2014conference.icac.org.jm/ -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5  My &quot;product&quot; is a registration process.  The maximum purchase to be made in my shopping cart is 1. If someone attempts to purchase another product, it gives the Limit Reached message. In the language file my LIMIT&#95;REACHED&#95;REMOVED line reads: &quot;Limit reached. Please complete previous registration before you can add: %s&quot;  The %s being the actual product that they are trying to add.  But, I would like the message to also include the product that they currently have in their shopping cart. How can I do this?  So message may read as an example - &quot;Limit reached. Please complete previous registration of Early Bird Registration - Members before you can add: Early Bird Registration - Spouse &quot;")*

Hi,
So the solution will probably be to :
1. Edit your file "*administrator\\components\\com\_hikashop\\classes\\**cart.php***" and change these lines to add the 2nd product name that is already in your cart : Code:

if( $displayErrors &amp;&amp; $wantedQuantity &gt; $quantity ) { $app = JFactory::getApplication(); if( $quantity == 0 ) { $app-&gt;enqueueMessage( JText::sprintf( 'LIMIT_REACHED_REMOVED', $product-&gt;product_name)); } else { $app-&gt;enqueueMessage( JText::sprintf( 'LIMIT_REACHED', $product-&gt;product_name)); } }

2. Edit your translation word through your [ translation file](http://www.hikashop.com/download/languages.html#translate) : **LIMIT\_REACHED\_REMOVED**

The following user(s) said Thank You: [oharris](/forum/user/946-oharris "View oharris's Profile")

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

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

Less More

- Posts: 53
- Thank you received: 0
-
-

12 years 9 months ago [\#141936](#141936) by [oharris](/forum/user/946-oharris "View oharris's Profile")  Replied by *[oharris](/forum/user/946-oharris "View oharris's Profile")* on topic *[Limit Reached message to include, item in cart](/forum/27-checkout/865444-limit-reached-message-to-include-item-in-cart#141936 "-- url of the page with the problem -- : http://http://2014conference.icac.org.jm/ -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5  My &quot;product&quot; is a registration process.  The maximum purchase to be made in my shopping cart is 1. If someone attempts to purchase another product, it gives the Limit Reached message. In the language file my LIMIT&#95;REACHED&#95;REMOVED line reads: &quot;Limit reached. Please complete previous registration before you can add: %s&quot;  The %s being the actual product that they are trying to add.  But, I would like the message to also include the product that they currently have in their shopping cart. How can I do this?  So message may read as an example - &quot;Limit reached. Please complete previous registration of Early Bird Registration - Members before you can add: Early Bird Registration - Spouse &quot;")*

Great. I found a solution. Thank you. &lt;SOLVED&gt;

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

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