Rahul Singh acd092fc90
Added GTIN and Condition to variant for structured data use (#6097)
* Adding Conditions and GTIN to products and variant

Summary

This commit adds GTIN and Conditions to products to allow a
more efficient integration of structured data and the related
services such as Google Shopping or Facebook Marketplaces.

Changes

- Add Conditions and GTIN to products and variants
- Added the fields to the Admin Interface
- Add the values to API
- Provides samples for GTIN (format EAN 8) and Condition (New) to all
sample products.
- Added Testing of the related fields
- feat(i18n): Differentiate GTIN and Condition labels for product and
variant forms.

* Update solidus-api.oas.yml

Reflect the changes to the conditions values.

---------

Co-authored-by: Thomas von Deyen <thomas@vondeyen.com>
2025-02-19 12:18:34 +01:00
..
2018-03-08 11:24:58 -08:00
2014-03-21 14:58:52 +00:00

solidus_sample

Sample contains a set of test data which is used to generate the sandbox can be used to test stores.

Applications including the solidus_sample gem are provided a rake task to load the sample data:

bundle exec rake spree_sample:load

Testing

Run the tests:

bundle exec rspec