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

Add discontinue on to products guides #3795

Merged
merged 1 commit into from
Oct 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Products have the following attributes:
- `available_on`: The first date the product becomes available for sale online
in your shop. If you don't set the `available_on` attribute, the product does
not appear among your store's products for sale.
- `discontinue_on`: The last date the product is still available for sale online
in your shop. If you don't set the `available_on` attribute, the product does
still appear among your store's products for sale.
- `deleted_at`: The date the product is no longer available for sale in the
store.
- `meta_description`: A description targeted at search engines for search engine
Expand Down Expand Up @@ -46,4 +49,3 @@ A "Size" attribute would be used for many products and would be more useful as
an [option type](variants.html#option-types) for variants. However, if you decide
to sell a limited edition t-shirt you might want to add unique product
properties for marketing purposes - like "Fit", "Material", and "Manufacturer".

22 changes: 17 additions & 5 deletions guides/source/users/products/product-details.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ would have the slug `summer-t-shirt`.
sold for other price values.)
- **Cost Price**: What the product costs you, the seller, to purchase or
produce. You may change the currency associated with the cost price.
- **Available On**: The date that this product is available to be sold. If this
- [**Available On**](#available-on): The date that this product is available to be sold. If this
date is not set, then the product is not shown to customers on the storefront.
- [**Discontinue On**](#discontinue-on): The date this product is discontinued from being sold.
If this date is set, then the product is not available on the storefront from that day on anymore.
- **Taxons**: This adds the product your store's taxons.
- **Option Types**: Add option types to your product if you want to offer
[multiple variants of the product](#). You need to define [option
Expand All @@ -29,6 +31,16 @@ would have the slug `summer-t-shirt`.
Fill in (#) links to variants-related documentation.
-->

[^slug]: A slug is a part of a URL that identifies a page using human-readable
words. Most blogs and stores use slugs for SEO purposes. For example, in the
web address `https://example.com/store/summer-t-shirt`, the slug would be the
`summer-t-shirt` part.

## Product Availability

Products have time based availability. Products can be made available and
unavailable by setting two dates.

### Available On

Note that the **Available On** field should be filled if you want the product to
Expand All @@ -37,10 +49,10 @@ be displayed on the storefront.
If the **Available On** value is a date in the future, then the product is only
available after the date that has been set.

[^slug]: A slug is a part of a URL that identifies a page using human-readable
words. Most blogs and stores use slugs for SEO purposes. For example, in the
web address `https://example.com/store/summer-t-shirt`, the slug would be the
`summer-t-shirt` part.
### Discontinue On

If the **Discontinue On** value is set, then the product is not available after
the date anymore.

## Inventory information

Expand Down