WordPress and WooCommerce How to Assign Attribute Based Pricing

You can setup your products as variable products. This allows you to add attributes and create variations from those attributes, each with it’s own metadata.

https://docs.woocommerce.com/document/variable-product/