imporved pricing page, better display for Login/register modal form

This commit is contained in:
2021-01-05 13:03:46 +01:00
parent 7f027f322c
commit ff03643ec7
17 changed files with 315 additions and 151 deletions

View File

@@ -78,6 +78,7 @@ type Product {
title: String
bundle: String
body: String
price_description: String
path: String
variations: [Variation]
}

View File

@@ -1129,11 +1129,18 @@ class MaterioSchemaExtension extends SdlSchemaExtensionPluginBase {
$registry->addFieldResolver('Product', 'body',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:node'))
->map('type', $builder->fromValue('entity:commerce_product'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('body.value'))
);
$registry->addFieldResolver('Product', 'price_description',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:commerce_product'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_price_description.value'))
);
$registry->addFieldResolver('Product', 'variations',
$builder->produce('entity_reference')
->map('entity', $builder->fromParent())