this is fixed
Here i am updating the patch hope it will resolve
mdmanouwer → created an issue.
mdmanouwer → created an issue.
HI would like to join
mdmanouwer → created an issue.
this issue occurs on window system due to mix path of forward slash and backward slash
please update code of makePathRelativeToLibraryRoot() function as
private function makePathRelativeToLibraryRoot(string $path): string {
$library_provider_root = $this->moduleHandler
->getModule('sdc')
->getPath();
$num_dots = count(
array_filter(explode(DIRECTORY_SEPARATOR, $library_provider_root))
);
$dots = str_repeat('../', $num_dots);
$path_from_root = str_starts_with($path, $this->appRoot)
? substr($path, strlen($this->appRoot) + 1)
: $path;
$path_from_root=str_replace('\\','/',$path_from_root);
//return $dots . $path_from_root;
$path_from_root= "/" . $path_from_root;
return $path_from_root;
//return $dots . $path_from_root;
}
will work patch i will attach here soon
Hi I have the same issue its not loading componet css and js of custom theme componets
mdmanouwer → created an issue.
Great I will have a look
mdmanouwer → created an issue.
i get this error when applying patch
In Patches.php line 320:
foreach() argument must be of type array|object, string given
gargsuchi → credited mdmanouwer → .
Till my code is not merged and a new release is available for Drupal 10 support for this module .
I am attching here a patch that can be used to make this module drupal 10 compatible
mdmanouwer → created an issue.
if file is node nto module file use
$foo = new \StdClass();
I have this configuration and work well
please used following class
use CommerceGuys\Addressing\AddressFormat\AddressField;
use CommerceGuys\Addressing\AddressFormat\FieldOverride;
$form['member_address_container']['address'] = [
'#type' => 'fieldset',
'#title' => 'Address',
];
$form['member_address_container']['address']['who_is_paying_address'] = [
'#type' =>'address',
'#default_value' => ['country_code' => 'CA'],
'#field_overrides' => [
AddressField::ADDRESS_LINE1 => FieldOverride::OPTIONAL,
AddressField::ADDRESS_LINE2 => FieldOverride::OPTIONAL,
AddressField::POSTAL_CODE => FieldOverride::OPTIONAL,
AddressField::GIVEN_NAME => FieldOverride::HIDDEN,
AddressField::FAMILY_NAME => FieldOverride::HIDDEN,
AddressField::ORGANIZATION => FieldOverride::HIDDEN,
AddressField::ADMINISTRATIVE_AREA => FieldOverride::OPTIONAL,
AddressField::LOCALITY => FieldOverride::OPTIONAL,
],
'#available_countries' => ['CA'],
];