Update wholesaler-plugin.php

Importing code from old version.