Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In FO product page, move the number of items in stock before the 'Add to cart' button and before to the stock label #512

Open
marionf opened this issue Jun 7, 2021 · 3 comments

Comments

@marionf
Copy link

marionf commented Jun 7, 2021

Is your feature request related to a problem?

As a visitor, I want to know easily how many products are in stock when I am in the product page.
Currently, this information is displayed in the "product details" tab of the product page and not highlighted enough.

capture d'écran_3113

Describe the solution you'd like

If the "Display available quantities on the product page" is enabled in BO product settings page and if the product quantity is > 0, we should display the number of items in stock before “add to cart” button and just before the stock label:
Availability: X in stock - Delivered within 48 hours (in stock here is the "label of in stock product" defined by the merchant in product settings) in green #5A9166

The stock quantity should change according to the combination selected.

Detail of specs and mockups

@Julievrz
Copy link

Julievrz commented Jun 14, 2021

To avoid having to handle plural, I think we could simply write:
'In stock: 100'
or '100 in stock'

But if we want to keep the word "items" it would be better to use the new way of handling plural like with transChoice(
instead of using (s), like this:

{0} items|{1} item| {some} items

@marionf Let me know what you think ☺️

@marionf
Copy link
Author

marionf commented Jun 14, 2021

Good idea @Julievrz, 100 in stock seems good 👍

@AlexTechDev
Copy link

Great idea!

I will work on this.

PR cooming soon...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants