South African grocery retailer Shoprite has recorded an increase in profit during the first half of its fiscal year despite low food inflation and increasing operating costs.