E-com DevBlog Spider-ball-vacuum

27Feb/080

Limelight, the content cacher

No doubt you've run into this by now.  You just got an image from the design group and you placed it out on the live server.  You refresh the page, and boom, nothing happens.  Here's how to get around it.

  1. Log onto http://reports.llnw.com
  2. Use our log in name and password (aquire from confluence, ninja, ben, brandon, or me)
  3. click on the 'Tools' tab
  4. Click on "Add Request" (over on the far right of the screen)
  5. enter the full URL path into the 'URL' field (I'm a little hazy on leaving the images.sitename.com versus the 3w's)
  6. click "Submit Request"
  7. watch the screen load and wait 10-180 seconds.

It should update to the new URL path you threw in, go and check your site to make sure that your image change was successful.

Print This Post Print This Post
18Feb/080

Using Accelerator Fields to set Images on Product Displays.

So you've got a marketing "genius" who would like to place variable images on various products throughout the website. This can be quite simply done with the use of a bean. You can use the "com.ibm.commerce.catalog.beans.ProductDataBean" to get the field information at the product level.

Simply declare your bean:
<wcbase:usebean id="product" classname="com.ibm.commerce.catalog.beans.ProductDataBean" scope="request"></wcbase:usebean>

Then wherever you need to access a field on the page you can call the bean and field like so:

<c:if test="${product.field4 == 'EXCLUSIVE'}">
<div><img src="<c:out value="${jspStoreImgDir}" />Exclusive.jpg" alt="Internet Exclusive" /></div>
</c:if>

Per the above example any product with the word "EXCLUSIVE" in field 4 will display the "Exclusive.jpg" image.

You can also use this logic in a choose statement and display different images.

e.g.

<c:choose>
<c:when test="${product.field4 == 'EXCLUSIVE'}">
<div><img src="<c:out value="${jspStoreImgDir}" />Exclusive.jpg" alt="Internet Exclusive" /></div>
</c:when>
<c:when test="${product.field4 == 'INTRODUCTORY OFFER'}">
<div><img src="<c:out value="${jspStoreImgDir}" />IntroOffer.jpg" alt="Introductory Offer" /></div>
</c:when>
<c:otherwise>
<div><img src="<c:out value="${jspStoreImgDir}" />Sale.jpg" alt="Sale" /></div>
</c:otherwise>
</c:choose>

Print This Post Print This Post
25Jan/080

Icons for everyone!

While working on the "Country Selection" box for NordicTrack it became quite apparent that we needed to have little icons of different country flags. We originally commissioned our in house design team to make a few, and then Drew discovered this website that is dedicated to open-source iconery -> famfamfam . So check it out and grab the icons you need for the site.

Print This Post Print This Post