Do you really need a standardized bottle for this? As long as the shampoo dispenser measures how much product it dispenses, it doesn't matter what it dispenses into.
I suppose the machine (or attendant) needs to know what to do if the customer tries to buy 330ml but only has a 250ml bottle, and they might feel cheated if they over-fill the bottle and some product leaks down the side, but shops will be incentivized to make this less likely to happen if they want customers to come back.
There might also be a problem with cross-contamination of unclean containers touching a nozzle, which is taken seriously by some in the food service industry[0], but hasn't stopped restaurants offering Coca-Cola Freestyle machines to customers.
[0] https://cellarcraftuk.com/cross-glass-contamination-legaliti...