Shopify Inc. posted another loss in its second quarter but continued to ramp up its online business as it nearly doubled revenue from the same time last year.