Add name on shirt for extra price without app

Hello,

I tried the demo from Shopify because I want to switch from Prestashop. It is possible to add a field to the product page where the customer can put a name. But what I cannot find is how to add a price to that. Let’s say the shirt price is 24.99 and adding a name would be 5.00 extra.

There are a lot of apps that support this feature, but since this is a real simple requirement I was wondering if this can be done without an app that costs 9.99 a month and has a ton of features I won’t use.

Hi @TrackMyBack ,

Yes, this can be done using custom Dev in the theme.

To implement the same please follow the below steps.

  1. create a product named custom name which will have the cost of $5.

  2. create the input field at product page where user will enter the name.

now write the code which will add additional product into the cart with the T-shirt.

By doing this user will have two product in the cart 1 for T-shirt and second for custom name which will have the value entered by the user.

Now edit the cart page to enable the deletion functionality which will remove both items from cart, when click any of the products delete button.

that’s it. Hope this will help…

Thanks, I will try that!