Jump to content
Sign in to follow this  

SOLVED: - Add Dropdown Menu To Populate Wholesale Price

Recommended Posts

I am adding a card collection to my store. There are many different sets. Each set has its own price.

Considering I am adding thousands of cards that are mixed and not organized by their sets, rather than constantly referring to my excel sheet for the wholesale price, I would like to add a dropdown menu beside the wholesale price textbox to allow me to select the set name and put the price into the wholesale price textbox for me. This would save me a ton of time.

Where can I add this to the prices.tpl file?

Thank you




<select id="dropdown">
    <option value="">Card Set Price List</option>
    <option value="0.01">Card 1</option>
    <option value="0.02">Card 2</option>
    <option value="0.03">Card 3</option>
    <option value="0.04">Card 4</option>
<script type="text/javascript">
    var mytextbox = document.getElementById('wholesale_price');
    var mydropdown = document.getElementById('dropdown');

    mydropdown.onchange = function(){
          mytextbox.value = this.value; 
          //to appened
         mytextbox.innerHTML = this.value;

Edited by blaknite
SOLVED (see edit history)

Share this post

Link to post
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.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Sign in to follow this  

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More