Hi @SeanMcC !
Assuming you have access to the code that triggers the pop up and the custom property field for Brand, you can extract the Brand name from the product properties and store it in the custom property field by using string manipulation methods.
Here's an example in JavaScript:
// get the hidden properties of the product
var productProperties = getProductProperties();
// extract the Brand name from the properties
var brandName = productProperties.Brand;
// remove the product model number from the brand name
var trimmedBrandName = brandName.replace(/-\d+$/, '');
// set the custom property field for Brand to the trimmed brand name
setCustomProperty('Brand', trimmedBrandName);
In this example, getProductProperties()
is a function that returns an object with the hidden properties of the product, setCustomProperty()
is a function that sets the value of a custom property field, and the regular expression /-\d+$/
matches a hyphen followed by one or more digits at the end of a string. The replace()
method removes this pattern from the brand name.
Note that the code may vary depending on the programming language and the platform you're using.
@Irrra Thanks for your reply. I will pass this to our developer. Many Thanks
@SeanMcC
You are always welcome, if you have any other questions, you can always contact)