Sample data

The sample-data packages create a small pricing catalog for demonstrations and development. Do not install them in a production shop.

The shared package mageb2b/pricesystem-sample-data creates the products, categories, customer groups, customers and addresses used by the examples. A product-specific sample package then adds only its own price records.

Product packages

  • mageb2b/pricesystem-customerprice-sample-data
  • mageb2b/pricesystem-pricelist-sample-data
  • mageb2b/pricesystem-categoryprice-sample-data
  • mageb2b/pricesystem-productcustomermatrix-sample-data

Install the shared package and the sample package for the pricing product you want to demonstrate, then run php bin/magento setup:upgrade.

Verify and reset

Each package provides commands in these forms:

php bin/magento sampledata:verify:pricesystem
php bin/magento sampledata:reset:pricesystem

php bin/magento sampledata:verify:pricesystem-customerprice
php bin/magento sampledata:reset:pricesystem-customerprice

Replace the suffix with pricelist, categoryprice or productcustomermatrix for the other products.

Reset commands ask for confirmation and remove the matching sample records. A product-specific reset leaves the shared products and customers in place.