Jump to content

Search the Community

Showing results for tags 'shopping cart'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 5 results

  1. I'm trying to develop a simple theatre seat reservation system. I'm using a text file "seats.txt", where I store seat number and status (f, r, s) and read the file line by line. If the user clicks on an image the javascript function is triggered and the image will change: <?php $counter = 0; $file = 'seats.txt'; $line = file($file); for($i=0;$i < 14;$i++){ $counter = $counter + 1; $string = $line[$i]; if($counter == 8) { echo "&nbsp &nbsp <img src='R1.bmp' /> &nbsp &nbsp &nbsp &nbsp"; } if(substr($string,4,1) == "f") { echo "<img id=$i onclick='myFunction(id)' src='chkBox_10.bmp' title='0' /> &nbsp &nbsp"; } else if(substr($string,4,1) == "s") { echo "<img id=$i onclick='myFunction(id)' src='chkBox_2.bmp' title='2' /> &nbsp &nbsp"; } else if(substr($string,4,1) == "r") { echo "<img id=$i onclick='myFunction(id)' src='chkBox_1.bmp' title='1' /> &nbsp &nbsp"; } else { echo "<img id=$i onclick='myFunction(id)' src='chkBox_3.bmp' title='3' /> &nbsp &nbsp"; } } ?> <script> function myFunction(imgID) { var img = document.getElementById(imgID).title; if (img == "1") { window.alert("Reserved seat!"); } else if (img == "2") { window.alert("Sold seat!"); } else if (img == "3") { window.alert("Handicap seat!"); } else if (img == "4") { document.getElementById(imgID).src = "chkBox_10.bmp"; document.getElementById(imgID).title = "0"; } else { document.getElementById(imgID).src = "chkBox_4.bmp"; document.getElementById(imgID).title = "4"; } } </script> My question is now: How can I get the selected seats (from the client side javascript) into a shopping cart (eventually on another page)?
  2. Hello. My name is Carl Gordon .The "continue to checkout" button on the shopping cart is not working.However, if one is to right mouse click and select open in new tab,it opens the checkout in a new tab. I want the button to operate normallywithout having to use the right mouse click feature.http://eyewasframed.co/ordertest.htmlPlease help me if you can. Thank you, so much.
  3. Ok, Hi everyone. I found this awesome and simplistic shopping cart on codepen.com BUT I do not know how to make it work .... :(TO begin with here is the link for it: http://codepen.io/bartveneman/details/KHxLGI am using Dreamweaver to make my website. So I copied it all, made sure that the links between my html, css and js are working fine and it still does not work. My problem with it is as follows: I did a copy+paste on it cannot shows me the cart without any items. I do not know how to add items without ruining the JS which will calculate things like total price, subtotal, etc. Things that I tried [ if you know exactly what I need to do don't bother reading what I tried, I am a beginner anyways ] I tried replacing inside the HTML the places where it says things like "src="{{=img}}" I would replace it the source with an actual source path for an image which works but shows nothing at all. I tried then also here in the HTMl file to simply take the tag off. As you see the html is based on one top part which is a big tag then is has the footer. The items are inside the tag at the top, BUT the tag is enclosed within some script tag so I removed the script and it shows one item ok-ish. The problem with this is that it would function with the script. For example it shows the item now but I cant add it to cart anything. Lastly, I looked inside the JS file and I found the section with the app variable which seems to have the details for the items included in the example. I changed those but nothing shows... So I tried some basic stuff. If anybody can help me with this by the end of the weekend it would be great !
  4. I am a super newbie that has learned all of this on my own so please forgive if this is a dumb question. I have a shopify website that I had someone help me with (That ripped me off and clearly didn't know or care what they were doing). Anyway I have an area where the customer can write a gift message for each product. When it goes to the shopping cart the message is displayed. I put in a calendar option where the customer can choose a future ship date but that piece is not showing up in the cart when they add the product. This is the coding that I think is relevant: This coding is the gift message that moves to the cart ( I think) (This is on the product page...) <div> <p><label for="additional">Gift Message:</label></p> <p><input type="text" id="additional" name="properties[Additional]" /></p> </div> (This is on the cart page...) <label for="gift-message">Comments for Sunshine Senders:</label> <!--<input id="gift-message" type="text" name="attributes[gift_message]" value="{{ cart.attributes[gift_message] }}" class="giftMessage" />--> <textarea id="gift-message" name="attributes[gift_message]" >{{ cart.attributes[gift_message] }}</textarea> This is the calendar code on the product page <label for="ship_now_1">Shipping Preference</label><br/> <select name="ship_now_1" id="ship_now_1"> <option value="">--Please Select--</option> <option value="1">Ship ASAP-</option> <option value="2">Hold for Future Delivery-Choose Date</option> </select> How can I create the code that will make it appear on the cart page? Any help would be so appreciated...you have no idea!!! My website is www.SunshineSenders.com if it would help to see it. Thank you!!!! Cathy
  5. Hi, I am adding a product by default to each order so it will always appear in the shopping cart. What I am trying to achieve is for this product the Quantity remains set at 1 (eg read only). I have added some php to the cart body htm file and I now get 2 columns for quantity, one read only and the other is editable (I know this is an error but...). I know the ID for this product (39) but seem unable to get the conditional code to detect the ID and just set that specific one to read only. can someone please tell me what is wrong here? Here is the htm code, original, <tr><td class="mod_bakery_cart_td_thumb_f"><a href="{LINK}"><img src="{THUMB_URL}" alt="{NAME}" width="{THUMB_WIDTH}" height="{THUMB_HEIGHT}" border="0" /></a></td><td class="mod_bakery_cart_td_sku_f">{SKU}</td><td class="mod_bakery_cart_td_name_f"><span class="mod_bakery_cart_item_f">{NAME}</span><br />{ATTRIBUTE}</td><td class="mod_bakery_cart_td_quantity_f"><input type="text" name="quantity[{ITEM_ID}][{ATTRIBUTES}]" value="{QUANTITY}" id="id_{ITEM_ID}_{ATTRIBUTES}" style="text-align: right" size="4" /> <a href="#" onclick="javascript: mod_bakery_delete_item_f('{ITEM_ID}_{ATTRIBUTES}');"> <img src="{WB_URL}/modules/bakery/images/delete.gif" alt="{TEXT_DELETE}" title="{TEXT_DELETE}" /></a></td><td class="mod_bakery_cart_td_price_f">{PRICE}</td><td class="mod_bakery_cart_td_shipping_f" style="display: {DISPLAY_SHIPPING}">{SHIPPING}</td><td class="mod_bakery_cart_td_sum_f">{TOTAL}</td></tr> and now changed by me, <tr><td class="mod_bakery_cart_td_thumb_f"><a href="{LINK}"><img src="{THUMB_URL}" alt="{NAME}" width="{THUMB_WIDTH}" height="{THUMB_HEIGHT}" border="0" /></a></td><td class="mod_bakery_cart_td_sku_f">{SKU}</td><td class="mod_bakery_cart_td_name_f"><span class="mod_bakery_cart_item_f">{NAME}</span><br />{ATTRIBUTE}</td><td class="mod_bakery_cart_td_quantity_f" id="{ITEM_ID}" $id-xx = id> <?php if $id-xx == 39): ?> <input type="text" name="quantity[{ITEM_ID}][{ATTRIBUTES}]" readonly="readonly" value="{QUANTITY}" id="id_{ITEM_ID}_{ATTRIBUTES}" style="text-align: right" size="4" /> <?php else: ?> <input type="text" name="quantity[{ITEM_ID}][{ATTRIBUTES}]" value="{QUANTITY}" id="id_{ITEM_ID}_{ATTRIBUTES}" style="text-align: right" size="4" /> <a href="#" onclick="javascript: mod_bakery_delete_item_f('{ITEM_ID}_{ATTRIBUTES}');"> <img src="{WB_URL}/modules/bakery/images/delete.gif" alt="{TEXT_DELETE}" title="{TEXT_DELETE}" /></a> <?php endif; ?></td><td class="mod_bakery_cart_td_price_f">{PRICE}</td><td class="mod_bakery_cart_td_shipping_f" style="display: {DISPLAY_SHIPPING}">{SHIPPING}</td><td class="mod_bakery_cart_td_sum_f">{TOTAL}</td></tr> I think my problem is with passing a value into the php section but someone else may have a better idea. Regards,
×
×
  • Create New...