AARTI SHRIVAS 2 Posting Pro in Training

hello all
i have to work in joomla virtuemart for my client
he wants to give discount on products in some other manner
there are 2 category of products
1stcategory and 2nd category now 2nd category have more sub category and sub-sub category
now i what client want that when user purchase any product from 2nd category then he/she get discount on 1st category according to total purchase of product
any one having any idea how can i do this i am stuck in this problem and my time is ruuning for dead line
please help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.