make variations script re-usable
backwards compat
quantity selector dot
Merge pull request #6531 from franticpsyx/variations_script_reusable

Make variations script re-usable