Scripting and older theme issue

Hi

So, in the mists of time, on our current live site (I have a beta in development), a third party app, and a lot of scripting I think, was used to create and display “trade price” on it. They used “Price” as the RRP. Somehow, it pulled data in, from our FTP stockfeed for the Trade price, and it somehow was used on orders, but only when a customer logged in. I was advised it was a metafield, however, I cannot find it at all, anywhere. And, it doesnt show in metafield definitions either

Another odd thing, when I go into theme editor, it does show in B2B view, however, I cant edit anything, at all. All I see top right is this message

“This Liquid template can only be customized in the Store default. Customization in other markets is only available with JSON templates.”

So, Trade Price doesnt show in default. There are a few things called CML* and I think thats something to do with the log in process? I dont really understand scripting. But, I have noticed, new products arent getting a trade price, and, the pricing hasnt updated. If I can find where in the code its sourcing the price information, I could ((I hope?) just replace the source with a metafield and pull the info in via sync-x like I do on the rest?

Wondering if any of this makes sense to anyone?

Also, Shopify Support think this may be where it is somewhere?

Hey,

Thanks for this, it definitely is doing something like that, however, the app is broken, and doesnt work. So, I need to find a workaround where I can either find the customer field/metafield, and then use sync-x to update it. I think its a little beyond my skillset, but I also need to find a way to get it done as all pricing is now wrong as of yesterday

Actually, could this be what I need? Could I create a metafield called, for example, Trade Price, and replace that metafield value here with it? Could it be that simple?

I also found this in theme.liquid, but no idea where that settings.trade__cml__pricing thing is

I definitely need someone more experienced than me on this