× Got a CSS, HTML or webdesign question? Ask it here!

"2+ Item" Fix?

1 year 1 month ago #16988 by JimUMFan
Does anyone have a way to make the shopping cart use the word "Items" instead of "Item" When there are 0 or 2+ items in the cart?



My guess is that I'll need to use a regular expression of some sort.

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

1 year 1 month ago - 1 year 1 month ago #16989 by JimUMFan
I found a very simple "half-way" fix. If you add the following CSS to your site:

#cart_count:after {
content: "s";
}

The cart quantity will read "items" regardless of the number of products in the cart. It's a little odd if you only have 1 item, but fixes the issue for 0 and 2+ items.



I'll follow up if I find a definitive fix for this before someone else who has one responds.

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

1 year 1 month ago #16990 by ccruz
Hey Jim,

Would us changing this string from "item" to "item(s)" be a workable solution for you? I think this way it can apply in any case. Let us know your thoughts.

-Cris

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

1 year 4 weeks ago #16993 by JimUMFan
That would be great. It would probably make some users with less HTML/CSS capability happy.

Although, I might be the only grammar stickler who was mildly bothered by this :silly:

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

Time to create page: 0.134 seconds
Powered by Kunena Forum

Latest from our blog

DecoNetwork 8 - Update 3: GDPR Compliance (+56 tasks completed)

DecoNetwork 8 - Update 3: GDPR Compliance (+56 tasks completed) In this release, DecoNetwork updated its Privacy Policy and Terms of Use, effective May 23, 2018. These changes were made primarily in preparation...Read More

This Week in Catalog - May 18, 2018

This Week in Catalog - May 18, 2018 I have two big announcements to make in regards to the DecoNetwork catalogs. We read and listen to your complaints and suggestions. Recently, I...Read More

DecoNetwork 8 - Available Now!

DecoNetwork 8 - Available Now! After an incredible amount of work in design, development, and testing, DecoNetwork 8 is here! With version 8, we recommitted ourselves...Read More

This Week in Catalog: May 11, 2018

This Week in Catalog: May 11, 2018 Lately, we've been getting a lot of new products in each week. More than is typical. All those new products (mostly in the S&S Activewear...Read More

DecoNetwork 8 - Update 2 now available: SEO Improvements and more (+75 tasks implemented)

DecoNetwork 8 - Update 2 now available: SEO Improvements and more (+75  tasks implemented) DecoNetwork 8 was released just ten days ago, but we have already a second update (8.002) available for you with many improvements and fixes...Read More