Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Trying to make a user input which will update costs


Recommended Posts

Hi there. I sell saw blades which all of them are custom length. They range from 5 feet to 25 feet including different kinds of inches and fraction of inches. I'm trying to making it so they can use the product attributes to select teeth and thickness size (since there is no difference in cost), but they enter in the length.


Like one box for feet, one box for inches, one box for fract. of inches.


Than that info would be put into an equation.

( length (by half foot)* price per foot + weld charge ) * 0.57


I would also have to make it easy for the price per foot to change as well as the weld charge (different on all blades).


I tried the product attributions and i figured out i would have over 100 selections that would have to have a manual price on them (prices change twice a year). x over 200 blades. I figured it would be impossible to do that way.


Here is one blade I tried to set up.



Here is domething that is similar to what I need.



Any help would be appreciated and if anyone is willing to do this, I do accept quotes for jobs.

Link to comment
Share on other sites

Ok, I guess i'll have to take this in baby steps.


I wrote the code to the selecting the sizes. Now I need to figure out how to put this into an equation


( length (by half foot)* price per foot + weld charge ) * 0.57


Oh course I need to figure out how to get it so the weld charge and price per foot can be edited in the product page.


Can anyone help me, or at least give me a guide in the right direction?


<select name="feet" id="feet">
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
 <select name="inches" id="inches">
<option value="0">0</option>
<option value="0">1</option>
<option value="0">2</option>
<option value=".25">3</option>
<option value=".25">4</option>
<option value=".25">5</option>
<option value=".5">6</option>
<option value=".5">7</option>
<option value=".5">8</option>
<option value=".75">9</option>
<option value=".75">10</option>
<option value=".75">11</option>
 <select name="fracin" id="fracin">
<option value="0">0</option>
<option value="0">1/8</option>
<option value="0">1/4</option>
<option value="0">3/8</option>
<option value="0">1/2</option>
<option value="0">5/8</option>
<option value="0">3/4</option>
<option value="0">7/8</option>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...