Make abilities based of Charge gold and lumber and change icons, tooltips and the base order id.
Add or remove the abilities from the shop.
If a unit uses that ability, you buy the item.
You need an indexer too keep track of the shops and the units that buy/sell items from that shop.