I need to create a restriction for the Billing [Country_Id] options
Based on a new Config. Setting that Pairs a Customer-Segment with specific Billing Country options.
I tried Testing on this code directly before making a plugin to hook into it at line:
$elements = $this->convertElementsToSelect($elements, $attributesToConvert);
I then logged the results of
$elements I can see the list in the log gets trimmed to only the options I need. (Yikes!)
However when it renders on the frontend (After cache/generated folder cleared) It does render the default options selected originally in admin panel country allowances and ignore all my changes.
Any help is appreciated.