Answers.Body: <p>Sounds to me like this is a job for a Custom Purchasable.  </p>
  
  <p>Basically you write a plugin such that your created element meets the Purchasable interface, which handles it's own pricing calculations etc., and that custom purchasable becomes a sellable item through Commerce.</p>
  
  <p>Documentation is here: <a href="https://craftcommerce.com/docs/purchasables" rel="nofollow noreferrer">https://craftcommerce.com/docs/purchasables</a></p>
  
  <p>Other than that, I can't see why Commerce wouldn't work well for such a scenario as it allows for complete flexibility with front end presentation and checkout.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-24T08:57:17.067Z
Answers.Text: Sounds like a plan! I've had a quick read and looks the right direction to go in. Thanks! Commerce does tick all the boxes otherwise and Craft is our CMS of choice so want to stick with it.
Answers.UserDisplayName: JonnyT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-09T19:15:13.383Z
Answers.Text: @JonnyT just curious, was this approach successful for you?
Answers.UserDisplayName: Augustine Calvino
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-23T23:47:31.883Z
Answers.LastActivityDate: 2017-08-23T23:47:31.883Z
Answers.UserDisplayName: Jeremy Daalder
Body: <p>We've built quite a few sites in Craft CMS and have been waiting for a project to get stuck into Craft Commerce - that time is here! BUT, one thing - it's for a carpet company so allowing the user to add a width and length of carpet is critical. </p>
  
  <p>After reading many similar questions, I see that everyone's pointing to creating variants for each option. This isn't practical for this case as they have many types of widths let alone being able to type in a length. Plus, they get new stock quite often.</p>
  
  <p>They're currently using WooCommerce and we really don't want to go back to Magento so it'll be a shame if we couldn't use Craft Commerce. </p>
  
  <p>So here are my questions - has anybody released a plugin that can do the above? If not, is a plugin the way to go for this? Finally, are there any plans to add this functionality into Craft Commerce?</p>
  
Tags: <plugin-craftcommerce>
Title: Width, length and dynamic pricing - Commerce
ThreadText: # Width, length and dynamic pricing - Commerce
  
  (Asked by: username_0 on 2017-08-23)
  
  We've built quite a few sites in Craft CMS and have been waiting for a project to get stuck into Craft Commerce - that time is here! BUT, one thing - it's for a carpet company so allowing the user to add a width and length of carpet is critical.
  
  After reading many similar questions, I see that everyone's pointing to creating variants for each option. This isn't practical for this case as they have many types of widths let alone being able to type in a length. Plus, they get new stock quite often.
  
  They're currently using WooCommerce and we really don't want to go back to Magento so it'll be a shame if we couldn't use Craft Commerce.
  
  So here are my questions - has anybody released a plugin that can do the above? If not, is a plugin the way to go for this? Finally, are there any plans to add this functionality into Craft Commerce?
  
  **Tags:** plugin-craftcommerce
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-08-23. Score: 1 | Accepted answer
  
  Sounds to me like this is a job for a Custom Purchasable.
  
  Basically you write a plugin such that your created element meets the Purchasable interface, which handles it's own pricing calculations etc., and that custom purchasable becomes a sellable item through Commerce.
  
  Documentation is here: <https://craftcommerce.com/docs/purchasables>
  
  Other than that, I can't see why Commerce wouldn't work well for such a scenario as it allows for complete flexibility with front end presentation and checkout.
  
  > **Comments:**
  > **username_0**: Sounds like a plan! I've had a quick read and looks the right direction to go in. Thanks! Commerce does tick all the boxes otherwise and Craft is our CMS of choice so want to stick with it.  
  > **username_2**: @username_0 just curious, was this approach successful for you?  
  
  ---
  
  