How to add image crop with custom Dimension on Shopify product page (Product options and variants)

Shopify apps used in this Template


Do you want to offer your customers the ability to crop their images to specific dimensions and see the price update instantly based on the image size? Imagine the convenience and flexibility this would bring to your Shopify store.

 In this blog, we’ll show you how to add an image crop feature with custom dimensions to your product page, allowing customers to tailor their designs and see real-time price changes using the Price Formula extension. This is a fantastic way to charge based on design or image size, adding a unique and personalized touch to your store. 

You have the option to either create your own price list or use JavaScript to update the price in real time.

 Let's delve into the process and explore how it works.

(You can also check out the demo product at the end of this blog.)

Steps to add image crop with custom Dimension.

1. Install the App

2. Select a Template or add new product Option 

  • You can use a template to speed things up or create options from scratch.
  • Choose the product you want to customize. You can select a single product or multiple products.
  • In this specific example, We need button swatches, dimensions, and an upload button. With the button swatches, customers can select the size; with the dimensions, they can crop and edit the size; and with the upload button, they can upload their image.
  • In the advanced settings for dimensions, you can use JavaScript to update the price dynamically. If you're not familiar with JavaScript, you can use a price list instead.

3. Create conditional logic

  • In the size section, we have three options: the first is "Dimension," the second is "100 by 100," and the third is "200 by 100." We only want to show the dimension option when the customer selects "Dimension" in the size section. Therefore, in the conditions, we will connect the variant dimension size with the dimension option.

4. Enable Live Preview

  • Enable the live preview, and we are going to add three layers. The first layer will be the dimension layer, so we will select the type as "upload" and connect this layer with the upload option. In the conditions, we will connect this layer with the size variant "Dimension," so that when the customer selects "Dimension," this layer will appear.
  • The second and third layers will be "100 by 100" and "200 by 100." Similarly, we will select the type as "upload" and connect these layers with the upload option. We will also connect each layer with the size variants "100 by 100" and "200 by 100" respectively, so that each layer appears only when the customer selects the corresponding variant size.

5. Activate and Save

  • Once everything looks good, activate the custom options and save your changes.

And that's it! 


Now your customers can crop their images to specific dimensions and see the price update immediately based on the size of the image. You can also use the template provided below.

Happy selling!



Image crop with custom dimension

Example template to crop an image based on a customer entered dimension.
Uses the Price formula extension to calculate a price per square meter.


FAQ

Q: What is the purpose of the image crop feature with custom dimensions?
A:
The image crop feature allows customers to crop their images to specific dimensions directly on your Shopify product page. This feature helps them tailor their images to fit different products and see a real-time preview of how their final product will look. Additionally, it updates the price dynamically based on the image size.

Q: How do I connect layers to size variants?
A:
You’ll need to create different layers for each size variant. For example, you can create a dimension layer, a "100 by 100" layer, and a "200 by 100" layer. Connect each layer with the appropriate upload options and set conditions so that each layer appears only when the corresponding size variant is selected.

Q: What if I’m not familiar with JavaScript?
A:
 If you're not comfortable using JavaScript, you can use a price list to handle dynamic pricing. This approach simplifies the process and allows you to update prices based on image size without coding.

Q: Do I need any coding skills to add this feature?
A:
No coding skills are required. The Live Product Options App provides user-friendly tools to set up the feature without needing to write any code.

Q: What if I encounter issues while setting up the feature?
A:
If you encounter any issues, you can refer to the app's support documentation or contact our customer support for assistance.