If the law prevents the store from charging a high price to the consumer, then that effectively prevents the factory from charging a high price to the store, because the store would make a loss if it accepted that price.
>If the seller can prove that the increased price is directly attributable to increases in the cost of labor or materials needed to provide the good or service, the seller may not be liable under the statute.
It's right there on the linked page. This basically prohibits large markups while allowing for passing of costs.