Forty-four people have been tried across the city for making and selling unsafe food and fake products, ahead of consumer rights day that falls today.
Shanghai People's Procuratorate said the cases involved more than 11.32 million yuan ($1.64 million).
Of the 19 cases heard in recent days, six concerned sales of fake brand clothes, fake quality distilled spirits and fake health care products.
There were also eight cases of selling unsafe food and drugs.
In one such case, a group of four were accused of ignoring a Chinese government ban to import frozen beef products, due to fears of mad cow disease, from Britain and the United States for sale in domestic markets from 2015 to March 2016.
The defendants were found to have profited more than 600,000 yuan.
Prosecutors from Minhang District unveiled another case whereby a butcher sold fake beef and mutton products.
The butcher surnamed Guan was sentenced to eight months in jail for making 50,000 yuan from the illegal sale. From mid-2015, he used pork and duck to make "beef" slices and "mutton" rolls.
He said his customers, mostly vendors at wet markets, were not paying enough so he then added the pork and duck.
Minhang prosecutors said unlicensed Viagra was another popular choice for fraudsters.
According to Shanghai People's Procuratorate, loosely regulated online shopping is also posing an increasing threat to consumers, mainly fueled by sales of fake or unlicensed imported medicines.