Zen Cart CSS Buttons

May 4th, 2011

Ok, maybe this will help someone else out as this seemed to be really hidden on the zen cart forum.  Am building a new template for a client and as I typically do I copy the classic template file folder in the /includes/templates/ and proceed to custom build it. Ok, this time my goal was to use as few actual images as I could for the design and use CSS buttons only.  

Ok, but I quickly ran into an issue of resizing. The coloring, shading, border inset/outset control is all pretty obvious in the CSS buttons stylesheet located in the CSS folder.  But, trying to resize the header search button became quickly impossible. It just flat out wouldn’t budge!!!  I tried width in ems, pixels and percentages and nothing worked.  Looking in the Safari developer tool, element inspector, I see an inline element style of width:80px; no matter what I did.

I then proceeded to look at the tpl_search_header.php file located in the includes/templates/template_default/sideboxes/ folder to directly change or delete this 80px code, but alas, it was not there! In the CSS button section I only found a php function to create the button… No help there.

I then needed to learn how this button functioned in zen cart. Looked in includes/functions… No luck… Did a search for it directly with Apple’s spotlight tool and found WAY TOO MANY… Out of luck again.  I needed to find out where it was built, and I remembered editing the HTML_output.php file a while back. It made sense it would be here as a great many functions exist in this file to actually show various HTML elements in zen cart without us having to create any… Especially those ones that you click to go into an ssl session.

Ok, so it was in this file that I found it.  The function for creating the zen cart buttons was indeed here.  Ok but what to edit?  I looked for the width:80px and it couldn’t be found…  Then looked for it with a space like this width: 80px and still nothing. Ok I then looked for just 80 and I found it! 

Sooooo, I now found the section of code but what was I to do TO the code to give me total control via the stylesheet. I found a referenced $style variable that related to a concatenated section for the actual style=”" section of the button… Well, knowing that I wanted to completely control all aspects of the button from the stylesheet, I quite simply eliminated the $style variable from the concatenation by deleting the $style variable and the period just before it.

Bidhere.com

Now, I am able to completely control the style of the CSS based header search button in zen cart. And I found out that I am able to control various of the other submit buttons ad well.  I really have no idea why the zen cart team decided to code this in this manner.  Perhaps it is a remnant from the old OS commerce code? Perhaps they were trying to save the basic buttons coding from the average user? Most folks hate CSS, but I really love it and the complete control it gives you over the total design of the site. And especially now that css3 / html5 is out and the fact that everything on the iPad is html5 and css3 this is now suddenly a really big deal…  Anyways, I hope this helps someone else wanting to build their own CSS based zen cart buttons.  -Tom

LIKE:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

The Importance of Texture in Mobile Design

March 18th, 2011

I would say this is important for ALL WEB DESIGN and not just mobile, but that it is MORE important on the small mobile screen for sure!  Read the article it is quite good!

The Importance of Texture in Mobile Design | Codrops.

LIKE:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Establishing Consumer Trust in E-Commerce

January 12th, 2011

According to a 2009 survey conducted by Harris Interactive, nearly half of all consumers say they have terminated or abandoned their online order due to security fears.   With the risk of credit card or other personal information being compromised, it is more important than ever to safeguard your website for consumer use.

via Establishing Consumer Trust in E-Commerce | No-IP News Connect.

LIKE:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Yacht Detailing website with css3

January 5th, 2011

This is a great photo for this website. Imagery ALWAYS makes a website attractive. No imagery, and your site will look one dimensional! I am not sure if they designed this like this on purpose or if it was an accident, but the bigger your monitor, the WIDER the main boat / water image becomes on the page. If it was me, I’d have set up a max-width parameter in the css file, but it is still cool. I guess the more money you make, the bigger your monitor, therefore the LONGER your boat! LOL

Yacht Detailing West Palm Beach | Boat Cleaning | Boat Detailing | Aquatica Yacht Services.

LIKE:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

USPS Intl shipping fix in Zen Cart Jan 2011

January 4th, 2011

This below page contains a link to the file you’ll need to replace in includes/modules/shipping of your Zen Cart to fix International shipping which USPS just updated a few days ago.

USPS International shipping problem… – Page 4 – Zen Cart Support.

LIKE:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

“Angry Birds” Headed to PSP & PS3

January 4th, 2011

I love this game. EXTREMELY ADDICTING on iPod Touch and on the iPad. I NEED TO PLAY THIS GAME DAILY to get my fix, improve my score, KILL THOSE FILTHY PIGS! :-D And NOW, even MORE people can start being addicted to Angry Birds like me! Some of the levels seem completely impossible to get 3 stars on, hell even 2 stars on. I will add more notes online here and see if anybody can help cause I just can’t figure them out.

“Angry Birds” Headed to PSP & PS3 This Week.

LIKE:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

50+ Conceptual Logos for your Inspiration

December 7th, 2010

These are really cool. Check out the Melt one… very simple but great. And I have to be honest, but I Never EVER noticed the arrow in FedEx til now.

50+ Conceptual Logos for your Inspiration | Most Inspired: Design Inspiration Blog.

LIKE:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Brands on Facebook

November 15th, 2010

Found this on Mashable today. Very cool. Shows brand sizes on Facebook.
 

LIKE:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Pencil Sculptures!

August 26th, 2010

Pencil structures! Wow! Who knew that graphite could be turned into art!?!  Neat stuff.

Pencil Sculptures! | This Is Awesome.

LIKE:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Access 2 Gmail accounts at once

August 21st, 2010

This might be helpful but I don’t know if I’ll ever remember to do it this way… We’ll see.

Now, you can visit google.com/accounts and click the link next to “Multiple sign-in.” After you sign into your first account, you can sign in with up to two additional accounts from the new accounts menu in the upper right hand corner of Gmail, then easily toggle back and forth between them. You can even open multiple Gmail tabs — one for each of your accounts.

via Access two Gmail accounts at once in the same browser – Official Gmail Blog.

LIKE:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

The Man From Hollywood

August 20th, 2010

More CSS fun!  The Man From Hollywood. Again this is ALL DONE IN CSS3!!! I am starting to do less and less work in Photoshop and more work directly with CSS3! I love CSS3!

LIKE:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Anigma CSS3 GAME!

August 15th, 2010

A game purely done in CSS3! This is really a big deal!

Anigma.

LIKE:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay