<form id="privatemessage" action="/" method="post"
and change it to
<form id="privatemessage" action="/privmsg?folder=inbox" method="post"
No user |
Go to page : 1, 2, 3
<style type="text/css">
</style>
<script type="text/javascript">
</script>
<div id="shopWrapper">
<div id="InventWrapper">
<div class="itemWrapper">
<div id="item2" class="item">
<span class="title">Item 2</span><br/>
<span class="image"><img src="http://www.thinkgeek.com/images/products/zoom/tqualizer_anim.gif"/></span><br />
<div class="descrip">
<span class="points" data-myPrice="2000">2000 pts</span>
<span class="sale">ON SALE</span><br />
<span class="description">Here would be a simple description of the item for sale. Then We will create a button below.</span>
</div>
<input type="button" class="addButton" data-item='item2' value="Add To Cart"/>
</div>
</div>
</div>
</div>
<div id="shopWrapper">
<div id="InventWrapper">
<div class="itemWrapper">
<div id="item2" class="item">
<span class="title">Item 2</span><br/>
<span class="image"><img src="http://www.thinkgeek.com/images/products/zoom/tqualizer_anim.gif"/></span><br />
<div class="descrip">
<span class="points" data-myPrice="2000">2000 pts</span>
<span class="sale">ON SALE</span><br />
<span class="description">Here would be a simple description of the item for sale. Then We will create a button below.</span>
</div>
<input type="button" class="addButton" data-item='item2' value="Add To Cart"/>
</div>
</div>
</div>
<div class="cartWrapper">
<div class="cart" id="cartj">
<div class="cart_body">
<div class="cart_title">Shopping Cart</div>
<div class="cart_items">
<ul class='theList'>
</ul>
</div>
</div>
<span class="totaler">Total= $</span>
</div>
</div>
</div>
<div class="header">Your Shops Name Here</div>
<div class="shopWrapper">
<div class="inventWrapper">
<div class="itemWrapper">
<div id="item1" class="item">
<span class="title">Item 1</span><br/>
<span class="image"><img src="http://www.thinkgeek.com/images/products/zoom/tqualizer_anim.gif"/></span><br />
<div class="descrip">
<span class="points" data-myPrice="1000">1000 pts</span>
<span class="sale">ON SALE</span><br />
<span class="description">Here would be a simple description of the item for sale. Then We will create a button below.</span>
</div>
<input type="button" class="addButton" data-item='item1' value="Add To Cart"/>
</div>
</div>
<div class="itemWrapper"><div id="item2" class="item">
<span class="title">Item 2</span><br/>
<span class="image"><img src="http://www.thinkgeek.com/images/products/zoom/tqualizer_anim.gif"/></span><br /><div class="descrip">
<span class="points" data-myPrice="2000">2000 pts</span><span class="sale">ON SALE</span><br />
<span class="description">Here would be a simple description of the item for sale. Then We will create a button below.</span>
</div>
<input type="button" class="addButton" data-item='item2' value="Add To Cart"/>
</div>
</div>
</div>
<div class="cartWrapper">
<div class="cart" id="cartj">
<div class="cart_body">
<div class="cart_title">Shopping Cart</div>
<div class="cart_items">
<ul class='theList'>
</ul>
</div>
</div>
<span class="totaler">Total= $</span>
</div>
</div>
<div id="checkout">
Would you like to check out now? If so just click the CheckOut button. Allow 24-48 hours for all the items to be processed
<form id="privatemessage" action="/privmsg" method="post" name="post">
<input name="username[]" type="text" style="display:none" value="Mr.EasyBB"/>
<input value="Cart Submission Ticket" style="display:none" maxlength="64" name="subject" type="text" class="usernameinput"/>
<textarea id="cartMessage" style="display:none" class="noThis" name="message" ></textarea>
<input type="button" id="submitCart" onclick="this.disabled = false;document.getElementById('sendingBut').disabled = false" value="Update Cart"/>
<button id="sendingBut" disabled="disabled">Send</button>
<input style="display:none;" type="submit" id="sendingBut" name="post" value="Send" disabled="disabled"/>
</form>
</div>
</div>
<style type="text/css">
/*This styles the Header of the Shop, change it to what you want*/
.header{
color:#ff0000;
font-size:24px;
text-align:center;
text-shadow:4px 3px 4px #00ff00;
height:40px;
padding-bottom:40px;
}
/*This styles the Shop Wrapper The blue dashed border is from this code*/
.shopWrapper{
text-align:center;
margin:0 auto;
border:3px dashed #0000ff;
overflow:hidden;
height:auto;
background: whiteSmoke;
}
/*This styles the title of the item in each div*/
.title{
color:#000;
font-size:12px;
}
/*This styles the image of the the item*/
.image img{
height:100px;
width:100px;
}
/*This styles the image class as well*/
.image{
text-align:center;
}
/*This styles the points of the item, our color is yellow as you can see below*/
.points{
color:yellow;
font-size:8px;
float:left;
text-align:center;
}
/*This will style your ON SALE text if item is on sale*/
.sale{
color:#ff0000;
font-size:8px;
float:right;
text-align:center;
}
/*This styles the div of the item itself*/
.item{
width:130px;
min-height:150px;
border:1px solid #000;
overflow:hidden;
height:auto;
padding:5px;
background:#fff;
text-align:center;
}
/*This styles the description box background and so forth*/
.descrip{
background:#E9D09B;
overflow:hidden;
height:auto;
min-height: 50px;
}
/*This style is for the text inside the .descrip */
.description {
color: black;
font-size: 8px;
word-wrap: break-word;
text-align: left !important;
float: left;
text-indent: 5px;
}
/*This tyles what the .item is wrapped in. We need this to keep a clean flow*/
.itemWrapper{
text-align:center;
margin:0 auto;
float:left;
}
/*This is the inventory wrapper like state above*/
.inventWrapper{
float:left;
width:600px;
height:auto;
overflow:hidden;
}
/*Styles the carts background color, you can do more if you want*/
.cart{
overflow: hidden;
background: white;
}
/*Cart Title style here*/
.cart_title{
text-align:center;
color:#000;
border-bottom:2px solid #000;
}
/*The Cart items text to be centered, you can align left or right if you'd like*/
.cart_items{text-align:center;}
/*The cart body used to keep a clean flow, and no odd wrapping of the font. Also to keep the height we made our cart scroll up and down if alot of items exist*/
.cart_body{
text-align: center;
margin: 0 auto;
overflow-x: hidden;
overflow-y: scroll;
border: 1px solid lime;
height: 600px;
background: white;
}
/*Cart wrapper change only width if need be*/
.cartWrapper{
float:right;
width:300px;
}
/*Do not change anything here unless you want to change color and etc.*/
.totaler{bottom:0;}
/*To let the user know that the li items in the cart are clickable to be removed*/
li:hover{cursor:pointer;}
/*The bottom div of the checkout itself*/
#checkout{
float: left;
height: 100px;
text-align: center;
background: white;
border-top: 2px solid lime;
margin-top: 5px;
width: 100% !important;
}
</style>
(function($){
$(document).ready(function(){
var $total = 0.0
$('.addButton').click(function (){
var theID ='#' + $(this).attr('data-item');
var pointstoAdd = parseFloat($(theID).find('.points').attr('data-myprice'));
$total += pointstoAdd;
$('.totaler').html('Total= $' + $total.toFixed(2));
var $newItem = '<li class="cart-item" data-points="'+ pointstoAdd+'">' + $(theID).find('.title').text()+ '</li>';
$('.theList').append($newItem);
BindIt();
});
function BindIt(){
$('.cart-item').unbind('click');
$('.cart-item').click( function(){
$total -= parseFloat($(this).attr('data-points'));
$('.totaler').html('Total= $' + $total.toFixed(2));
$(this).remove();
});
}
});
$(document).ready(
function() {
$('#submitCart').click(function() {
var text = '';
var total = 0;
$(".theList li").each(function () {
var string = $(this).text();
var points = parseInt($(this).data('points'));
//capitalize first letter of string
text += string.charAt(0).toUpperCase() + string.slice(1)
//add line break at the end
+ ' = ' + points + "\n";
total += points;
});
//I think calculating total is easier than trying to manipulate $(".totaler")
text += "Total = $" + total;
$("#cartMessage").text(text);
});
});
})(jQuery);
</script>
<style type="text/css">
.header{color:#ff0000;font-size:24px;text-align:center;text-shadow:4px 3px 4px #00ff00;height:40px;padding-bottom:40px;}
.shopWrapper{text-align:center;margin:0 auto;border:3px dashed #0000ff;overflow:hidden;height:auto;background: whiteSmoke;}
.title{color:#000;font-size:12px;}
.image img{height:100px;width:100px;}
.image{text-align:center;}
.points{color:yellow;font-size:8px;float:left;text-align:center;}
.sale{color:#ff0000;font-size:8px;float:right;text-align:center;}
.item{width:130px;min-height:150px;border:1px solid #000;overflow:hidden;height:auto;padding:5px;background:#fff;text-align:center;}
.descrip{background:#E9D09B;overflow:hidden;height:auto;min-height: 50px;}
.description {color: black;font-size: 8px;word-wrap: break-word;text-align: left !important;float: left;text-indent: 5px;}
.itemWrapper{text-align:center;margin:0 auto;float:left;}
.inventWrapper{float:left;width:600px;height:auto;overflow:hidden;}
.cart{overflow: hidden;background: white;}
.cart_title{text-align:center;color:#000;border-bottom:2px solid #000;}
.cart_items{text-align:center;}
.cart_body{text-align: center;
margin: 0 auto;
overflow-x: hidden;
overflow-y: scroll;
border: 1px solid lime;
height: 600px;
background: white;}
.cartWrapper{float:right;width:300px;}
.totaler{bottom:0;}
li:hover{cursor:pointer;}
#checkout{float: left;
height: 100px;
text-align: center;
background: white;
border-top: 2px solid lime;
margin-top: 5px;
width: 100% !important;}
</style>
<script type="text/javascript">
(function($){
$(document).ready(function(){
var $total = 0.0
$('.addButton').click(function (){
var theID ='#' + $(this).attr('data-item');
var pointstoAdd = parseFloat($(theID).find('.points').attr('data-myprice'));
$total += pointstoAdd;
$('.totaler').html('Total= $' + $total.toFixed(2));
var $newItem = '<li class="cart-item" data-points="'+ pointstoAdd+'">' + $(theID).find('.title').text()+ '</li>';
$('.theList').append($newItem);
BindIt();
});
function BindIt(){
$('.cart-item').unbind('click');
$('.cart-item').click( function(){
$total -= parseFloat($(this).attr('data-points'));
$('.totaler').html('Total= $' + $total.toFixed(2));
$(this).remove();
});
}
});
$(document).ready(
function() {
$('#submitCart').click(function() {
var text = '';
var total = 0;
$(".theList li").each(function () {
var string = $(this).text();
var points = parseInt($(this).data('points'));
//capitalize first letter of string
text += string.charAt(0).toUpperCase() + string.slice(1)
//add line break at the end
+ ' = ' + points + "\n";
total += points;
});
//I think calculating total is easier than trying to manipulate $(".totaler")
text += "Total = $" + total;
$("#cartMessage").text(text);
});
});
})(jQuery);
</script>
<div class="header">Your Shops Name Here</div>
<div class="shopWrapper">
<div class="inventWrapper">
<div class="itemWrapper">
<div id="item1" class="item">
<span class="title">Item 1</span><br/>
<span class="image"><img src="http://www.thinkgeek.com/images/products/zoom/tqualizer_anim.gif"/></span><br />
<div class="descrip">
<span class="points" data-myPrice="1000">1000 pts</span>
<span class="sale">ON SALE</span><br />
<span class="description">Here would be a simple description of the item for sale. Then We will create a button below.</span>
</div>
<input type="button" class="addButton" data-item='item1' value="Add To Cart"/>
</div>
</div>
<div class="itemWrapper"><div id="item2" class="item">
<span class="title">Item 2</span><br/>
<span class="image"><img src="http://www.thinkgeek.com/images/products/zoom/tqualizer_anim.gif"/></span><br /><div class="descrip">
<span class="points" data-myPrice="2000">2000 pts</span><span class="sale">ON SALE</span><br />
<span class="description">Here would be a simple description of the item for sale. Then We will create a button below.</span>
</div>
<input type="button" class="addButton" data-item='item2' value="Add To Cart"/>
</div>
</div>
</div>
<div class="cartWrapper">
<div class="cart" id="cartj">
<div class="cart_body">
<div class="cart_title">Shopping Cart</div>
<div class="cart_items">
<ul class='theList'>
</ul>
</div>
</div>
<span class="totaler">Total= $</span>
</div>
</div>
<div id="checkout">
Would you like to check out now? If so just click the CheckOut button. Allow 24-48 hours for all the items to be processed
<form id="privatemessage" action="/privmsg" method="post" name="post">
<input name="username[]" type="text" style="display:none" value="Mr.EasyBB"/>
<input value="Cart Submission Ticket" style="display:none" maxlength="64" name="subject" type="text" class="usernameinput"/>
<textarea id="cartMessage" style="display:none" class="noThis" name="message" ></textarea>
<input type="button" id="submitCart" onclick="this.disabled = false;document.getElementById('sendingBut').disabled = false" value="Update Cart"/>
<input type="submit" id="sendingBut" name="post" value="Send" disabled="disabled"/>
</form>
</div>
</div>
Similar topics
Last edited by Puppycheese889 on May 10th 2013, 5:42 pm; edited 1 time in total
<div class="itemWrapper"><div id="item4" class="item"><span class="title">Agent avatars</span><br/><span class="image"><img src="http://s14.postimage.org/uzrjx0bup/black_white.png"/></span><br /><div class="descrip"><span class="points" data-myPrice="250">250 Tokens</span><span class="sale">NEW</span><br /><span class="description">What's customizable?- The gradient background- Color of text "Your name here" and "converse it"</span></div><div align="center"><br><input type="radio" name="group1" value="Black and Grey"> Black and Grey<br><input type="radio" name="group1" value="Red and Black" checked> Red and Black<br><input type="radio" name="group1" value="Blue and Black"> Blue and Black</div> <input type="button" class="addButton" data-item='item4' value="Add To Cart"/></div></div>
Go to page : 1, 2, 3
|
|