Merge Requests

Recent comments

🇮🇳India mdmanouwer

Here i am updating the patch hope it will resolve

🇮🇳India mdmanouwer

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

🇮🇳India mdmanouwer

Hi I have the same issue its not loading componet css and js of custom theme componets

🇮🇳India mdmanouwer

i get this error when applying patch

In Patches.php line 320:

foreach() argument must be of type array|object, string given

🇮🇳India mdmanouwer

Which type of architecture  you want to discuss here

🇮🇳India 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

🇮🇳India mdmanouwer

if file is node nto module file use
$foo = new \StdClass();

🇮🇳India mdmanouwer

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'],
];

Production build 0.71.5 2024