Feb 28 2010

My Tweets on 2010-02-28

  • New Episode (Finally back in the US =) - Archive - Getting Tattooed at Last Rites on 6-6-06 http://ow.ly/1abxI #
  • anyone have waffles.fm invite? #
  • itunes on laptop tip: Make it go to 11 by pumping up the pre-amp on the EQ! #
  • HOLY FUCK! New High on Fire fucking fuckin fuck fuck is awesomely shit-tasticly fucking awesome! #
  • Just dented a cab door with my fist. This sprained hand ain’t never gunna heal. #
  • BMXnet Performance ‘09 Day 1 - Episode #27 - Guy is crazy awesome! http://ow.ly/1aQgf #
  • New episode…AKA: Drunk ramblings walking back from the bar at 5am =) http://ow.ly/1bhLN #
  • Some1 stole all my memory cards from my checked luggage in Europe. All Milan tattoo convention footage… Gone. Fuck you asshole! (to thief) #
  • New BMTV Ep:29 - Ever seen a guy rip out his PA with a bucket? If not, here’s your chance! http://ow.ly/1bWuG #
  • In the ghetto-fabulous Detroit! #
  • Had an awesome dinner with Sean (cheesestix) jennnyyy Robert and gery. Fuck yeah! #
  • Just met the nicest TSA people ever! #

Feb 21 2010

My Tweets on 2010-02-21


Feb 14 2010

My Tweets on 2010-02-14

  • Yay! I’m home! Cut-throat NYC, how I’ve missed you so. Eat the weak! #
  • BMTV - New Episode =) - Interview with Roger “Rabbit” Rodriguez in LA. We talk piercing, shop biz tips, branding,+ http://ow.ly/14WlL #
  • Finally turned 30 today. About time I reached the age I’ve felt to be the past 15 years =) #
  • Happy birthday to me! http://twitpic.com/12awwi #
  • How I celebrated my 30th birthday! My first hand tattoos, steak, and cake! http://ow.ly/15LLY #
  • Sent out a bad link for my birthday video! Here’s the right one! http://ow.ly/163Ov #
  • Explanations anyone? Taken with iPhone in NYC Subway. http://twitpic.com/12qjop #
  • New BMTV Ep #25 - What I learned from a funeral home (business tips for shop owners and pros) - http://ow.ly/16LDh #
  • In Venice on Valentines Day during Carnival with my girl =) #

Feb 7 2010

My Tweets on 2010-02-07


Feb 4 2010

VevoCart Options In-Stock Mod

I’ve been playing around with Vevocart for a while and there’s something I felt was missing. To be able to show the stock level of individual options.

So if you’re selling Tshirts, in the drop down, it’ll say something like:

Small - 12
Medium (SOLD OUT)
Large - 8
X-Large - 3

This way the customer knows right away if the size they want is available or not BEFORE they try to add it to their cart. =)

Please keep in mind that I’m a VB.NET guy. This is my first time playing around with C# and with this apps code, so there may be a better way, but it’s working for me.

Hope it helps someone else out!

.: Adam

Here’s what I modded:

Made a new class file: /App_Code/GlobalFunctions.cs ::

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;
using System.Data.SqlClient;

///


/// Summary description for GlobalFunctions
///

namespace Adam
{
public class GlobalFunctions
{

public static DataSet GetDataFromSQL(string strDBName, string strSQL)
{
string strConn = ConfigurationManager.ConnectionStrings[strDBName].ConnectionString;
SqlConnection objConn = new SqlConnection();
objConn.ConnectionString = strConn;
SqlDataAdapter objAdapter = new SqlDataAdapter();
SqlCommand objCommand = new SqlCommand();
DataSet myDataSet = new DataSet();

objCommand.Connection = objConn;
objCommand.CommandText = strSQL;
objAdapter.SelectCommand = objCommand;
objAdapter.Fill(myDataSet, strDBName);
objAdapter.Dispose();
objConn.Close();
objConn.Dispose();

return myDataSet;
}
}
}

/Components/OptionItemDetails.ascx.cs ::

Add ProductID to the variables being sent to the function

Line 174: uxOptionDropDownItem.SetUpDropDown( table, ProductID );

/Components/OptionDropDownItem.ascx.cs ::

Replace class SetUpDropDown with the following code:

public void SetUpDropDown( DataTable table, string ProductID )
{
int i = 0;
int intOptionID = 0;
string strOptionValue = “”;
string strValue = “”;

foreach (DataRow dRow in table.Rows)
{
// Get the option ID
intOptionID = Convert.ToInt32(table.Rows[i][0].ToString());

// Get the option value
strOptionValue = table.Rows[i][7].ToString();

DataSet ds = new DataSet();
string strSQL = “select ProductStock.Stock”;
strSQL += ” FROM ProductStock”;
strSQL += ” LEFT JOIN OptionCombination”;
strSQL += ” ON ProductStock.OptionCombinationID = OptionCombination.OptionCombinationID”;
strSQL += ” WHERE ProductStock.ProductID=” + ProductID + ” AND OptionCombination.ProductOptionItemID=” + intOptionID;
strSQL += ” ORDER BY OptionCombination.ProductOptionItemID”;

ds = Adam.GlobalFunctions.GetDataFromSQL(”MainConnection”, strSQL);
if (ds.Tables[0].Rows.Count > 0)
{
strValue = ds.Tables[0].Rows[0]["Stock"].ToString();
}

// Update the value and insert into table
if (strValue == “0″)
{
strValue = ” (SOLD OUT)”;
}
else
{
strValue = ” - ” + strValue;
}
table.Rows[i][7] = strOptionValue + strValue;

// Increment
i++;
}

uxOptionDrop.DataSource = table;
uxOptionDrop.DataBind();

uxOptionDrop.Items.Insert(0, new ListItem(” — Please Select — “, String.Empty));
}


Feb 4 2010

Score free inflight WiFi on Delta with GoGoInflight.com!

So, I’m on a flight right now (yes, I’m posting this from a plane =), and I figured out an easy trick to score free wireless. If you’re on a delta flight with WiFi, they us the internet provider GoGoInflight.com. Right now, they have a “game” where you can win 25%, 50%, or 100% off the cost of the WiFi (normally $13 / flight). The trick is that the game is cookie based. So all you have to do is keep deleting your cookies and replay the game until you score the code for the 100% off =)

Cheers!

.: Adam