Ecommerce Developer
 
 

Platforms & Shopping Carts

Building a Magento Theme Start to Finish, Part 21: Details, Details, Details

 

Theme development requires a lot of attention to detail, including being careful to address just about every style or state that could show up on a page.

In this episode, I am going to update style descriptions for a couple of sections on the product detail page that might have otherwise been over looked. This is going to be a very short episode relative to the rest of series, but these little details are important too.

A Magento Theme Start to Finish, Part 21

The Magento Theme Series, To Date

Style Descriptions for "Your Cart"

As I have been working on the product detail pages so far, I have done so with an empty shopping cart.

shows the mini cart empty

This would be fine except that when an item is loaded into the cart new content is introduced the page (in the form of a mini-cart in the sidebar). So I need to update this new content's style descriptions to reflect the Pine Theme.

Shows the mini cart with item

The first style that I want to address is the mini-cart class cart-count description, which is located at approximately line 421 of boxes.css in skin > frontend > default > pine > css. I am going to make two changes, first, adding a color description (I will use the brown from the Pine Theme palette) and then removing the background description.

.mini-cart .cart-count {  padding:8px; text-align:center; color:#372016;}

Shows updated mini cart with item

Product Comparisons

The next section of the sidebar, "Compare Products," can also introduce new content into the page. To style this section, I go back to the product category pages and add a couple of items to compare and note the changes.

Shows product comparison

I want to make a small change to the text by adding a style description for the ID compare-items to the base-mini section of boxes.css near line 1380.

.base-mini .content #compare-items a {text-transform: uppercase;}

Shows changed comparison list

Although, I have only made a couple of changes, I am going to end this episode here. The next section—exploring modal windows—is going to take some time so I want to give it its own episode or two.

Related Articles

7 Comments

Rss-sm