Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I link individual options in a drop-down menu to a shopping cart?
    primarykey
    data
    text
    <p>I'm building an online store for my music. However, I'm letting the customer decide how much he or she wants to pay. So, I've created this mark-up</p> <pre><code>&lt;table&gt; &lt;tr&gt;&lt;!--Off The Grid--&gt; &lt;td&gt;Off The Grid&lt;/td&gt; &lt;td&gt; &lt;object width="200px" height="15px"&gt; &lt;param name="src" value="../audio/off_the_grid_michael_pitluk.mp3"&gt; &lt;param name="autoplay" value="false"&gt; &lt;param name="controller" value="true"&gt; &lt;param name="bgcolor" value="#ffffff"&gt; &lt;embed src="../audio/off_the_grid_michael_pitluk.mp3" autostart="false" loop="false" width="75px" height="40px" controller="true" bgcolor="#ffffff"&gt;&lt;/embed&gt; &lt;/object&gt; &lt;/td&gt; &lt;td&gt; &lt;ul&gt; &lt;li&gt;Tweet.&lt;/li&gt; &lt;li&gt;FB share.&lt;/li&gt; &lt;li&gt; &lt;select name="Choose Your Price" id="product-dropdown"&gt; &lt;option value=""&gt;Choose Your Price&lt;/option&gt; &lt;option value=""&gt;$0.00&lt;/option&gt; &lt;option value=""&gt;$1.00&lt;/option&gt; &lt;option value=""&gt;$5.00&lt;/option&gt; &lt;option value=""&gt;$10.00&lt;/option&gt; &lt;option value=""&gt;$20.00&lt;/option&gt; &lt;option value=""&gt;$50.00&lt;/option&gt; &lt;option value=""&gt;$100.00&lt;/option&gt; &lt;option value=""&gt;$1000.00 :P&lt;/option&gt; &lt;/select&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>What do I need to do, specifically, to link each of the options in the drop-down menu to some kind of shopping cart. So, let's say a customer decides they want to pay $20.00, so they select $20.00. Now what code do I need to learn and what should I do specifically so that after they select $20.00 and click the "buy" button I'm going to create, it will take them to a pay pall shopping cart. </p> <p>In other words, how do I connect each option in the drop down menu to the buy button? How would I go about writing the code to do this? What language do I need?</p> <p>As a model, I'm trying to basically do what <a href="http://amandapalmer.net/producttypes/digital/" rel="nofollow">http://amandapalmer.net/producttypes/digital/</a> is doing. </p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload