Hi,
I want to know if there is a way to find out a particular shop level metafield exists based on a namespace value that I pass via an API call? I want to add that check within my API call that stores the value in shop level metafield. The code below does that.
$shopify_metadata = new Luxe_Shopify_MetaData($store_code);
$logo_meta_namespace = strtolower($store_code);
$logo_tag_meta_key = 'logo_tag';
$logo_date_info_key = 'logo_date_info';
//Save the Logo Tag Metafield
if ($shopify_metadata->saveStoreMetadata($logo_meta_namespace, $logo_tag_meta_key, $logo_tag_value) === FALSE) {
inform_sl_operations(
"Shopify Store Logo Tag Metadata could not be saved in " . __FILE__ . " at Line " . __LINE__,
get_system_info(SYSTEM_ADMIN_MAIL_ADDRESS_VAR)
);
return;
}