commerce kickstart 2: price options

I have the latest Kickstart 2. A product needs to have “extra options”, each adding a separate cost to the price. I use this module: the https://www.drupal.org/project/commerce_pricing_attributes/ I follow all the steps from the official module video : https://vimeo.com/59862366 It just does not work at all. I get this error: Call to undefined function commerce_option_get_sets()…

Customizing the checkout form

I need to fill Billing Info form with data that the user has filled in another page of my commerce site. I’ve made a hook_form_alter with the following weird code (with the help of kint): function HOOK_form_alter(&$form, $form_state, $form_id) { switch ($form_id) { case ‘commerce_checkout_flow_multistep_default’: $form[“payment_information”][“add_payment_method”][“billing_information”][“address”][“widget”][0][“address”][“#default_value”][“given_name”]=”NAME”; $form[“payment_information”][“add_payment_method”][“billing_information”][“address”][“widget”][0][“address”][“#default_value”][“country_code”]=”IT”; It works with name but it does not…

Magento 2: Add extension attributes to product collection

I have added extension attribute to Magento\Catalog\Api\Data\ProductInterface using extension_attrributes.xml and its getting reflected when I get product(s) using ProductRepository‘s get, getList and getById methods. Now I want to show those attributes data on product listing pages however, when I debugged that part, I have found out magento is using product collection to get products instead…