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

[IMPROVEMENT] Add stock information to order detail #16713

Open
Tracked by #19846
Hlavtox opened this issue Dec 5, 2019 · 5 comments
Open
Tracked by #19846

[IMPROVEMENT] Add stock information to order detail #16713

Hlavtox opened this issue Dec 5, 2019 · 5 comments
Labels
Feature Type: New Feature Needs Specs Status: issue needs to be specified Old Products Page Concerns the old product page Order Component: Which BO section is concerned Waiting for PM Status: action required, waiting for product feedback

Comments

@Hlavtox
Copy link
Contributor

Hlavtox commented Dec 5, 2019

Hi guys, I made this modification on our store, I thought you and other merchants may be interested in this too. Lets start:

The situation
During our years in ecommerce, there was a million situations, where we argued with the customer in this style.
Customer (3 days after order): Where is my goods I have ordered?
Us: The stock information on the product was "On special order - 10 days".
Customer: No, there was written "In stock".
Us: There was not!

The solution
It is useful to display complete stock information that was shown on the product, at the time of order.

Where to display this:

  • In mailalerts
  • In order admin
  • In customer confirmation email

How to do it
Save product->available_later to OrderDetail, along with the other information. (We already have quantities, which is good.)
Echo this information on the respective places.

My quick solution
For now, I use it only in mailalerts, but in the future, it would be good to show it also to customers in order_conf.

I show 3 cases under the product name:
A) All in stock
B) XX pieces in stock, the rest 'On special order'
C) All on 'On special order'

stock information

@khouloudbelguith
Copy link
Contributor

Hi @Hlavtox,

We have already some improvement in the FO to add the stock alert as described here: #14572 (comment) & here: #16386 (comment)
Your improvement is to add this information in the Emails sent to the customer.
I think it could a great idea, but it is should be an option we can enable & disable it.
Ping @PrestaShop/prestashop-product-team what do you think of this improvement?

Thanks!

@khouloudbelguith khouloudbelguith added Improvement Type: Improvement Old Products Page Concerns the old product page Stocks Label: Which BO under menu is concerned Needs Specs Status: issue needs to be specified Waiting for PM Status: action required, waiting for product feedback labels Dec 5, 2019
@Hlavtox
Copy link
Contributor Author

Hlavtox commented Dec 5, 2019

@khouloudbelguith Yes, that will be nice improvements. I did it as one of the first mods. It's just a template modification.

The problem I specified in the first post is, there is no way to retrieve this information from the order object AFTER ordering. There are lots on informations saved to OrderDetail, like quantities, references, prices etc., but the stock information is missing.

Product list:
stock info

Cart:
stock info 2

@colinegin colinegin added Order Component: Which BO section is concerned and removed Stocks Label: Which BO under menu is concerned labels Jun 18, 2020
@hibatallahAouadni
Copy link
Contributor

hibatallahAouadni commented Jan 18, 2021

Ping @PrestaShop/product-team friendly reminder 😉 what's the status of this issue? Still need specs?

@marionf
Copy link
Contributor

marionf commented May 6, 2021

Hello @Hlavtox

It is useful to display complete stock information that was shown on the product, at the time of order.

By "complete stock information", are you talking of the label of in-stock & out of stock products or of the delivery time of in-stock & out of stock products ?

capture d'écran_3076

@Hlavtox
Copy link
Contributor Author

Hlavtox commented May 6, 2021

@marionf Hi Marion! :)

I think we can save both of these values, availability and delivery time. We can then decide if and where we are gonna display these values.

If you agree, we can start with a PR where we save this informations into the database. :-)

@marionf marionf added Feature Type: New Feature and removed Improvement Type: Improvement labels Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Type: New Feature Needs Specs Status: issue needs to be specified Old Products Page Concerns the old product page Order Component: Which BO section is concerned Waiting for PM Status: action required, waiting for product feedback
Projects
None yet
Development

No branches or pull requests

5 participants