refactored checkout workflow with stripe
This commit is contained in:
@@ -106,7 +106,7 @@ function materio_home_entity_bundle_field_info(EntityTypeInterface $entity_type,
|
||||
->setTargetEntityTypeId($entity_type->id())
|
||||
// // The Entity Type bundle this field belongs to.
|
||||
->setTargetBundle($bundle)
|
||||
->setSetting('target_type', 'commerce_product_variation')
|
||||
->setSetting('target_type', 'commerce_product')
|
||||
->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED)
|
||||
->setComputed(TRUE)
|
||||
->setRevisionable(FALSE)
|
||||
@@ -116,7 +116,7 @@ function materio_home_entity_bundle_field_info(EntityTypeInterface $entity_type,
|
||||
'label' => 'hidden',
|
||||
'weight' => -5,
|
||||
])
|
||||
->setClass(\Drupal\materio_home\Plugin\Field\FieldType\ComputedProdVariationsReferences::class);
|
||||
->setClass(\Drupal\materio_home\Plugin\Field\FieldType\ComputedCommerceProductReferences::class);
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
Reference in New Issue
Block a user