In common business practice in Japan, a distinction is made between a receipt and a "ryoshusho," which can be printed or handwritten. A receipt lists the product, price, and other details but does not have a space to put a name. A "ryoshusho" lists the total amount and your name can be written in, but it may not show the details of a purchase.
Generally, receipts are issued for everyday purchases. If you need a "ryoshusho" instead of a receipt, you can ask the shop to issue you one.