Sunday 24 January 2010

Open Global Search results in a new window

Great tip from @netsuite.

Get global search results to open in a new browser window by adding an extra colon between the prefix and the search string ex. cu::customername, ite::itemname, etc.

Saturday 9 January 2010

A flexible CSS method - ideal for layout changes between categories.

If like me, you often come across situations where you need to have a different value for a CSS style in just one category or tab, or you need to restyle some of the more "locked down" NS areas (Checkout, Customer Center, etc) - then this may be useful.

What this will do, is allow you to uniquely address CSS styles on any specific tab/category.

First of all, you need to do the ground work.
  1. Go to SetUp > WebSite > Themes
  2. Edit your current live theme
  3. On the "General" tab - go to the "<body> tag attributes" field
  4. Enter <bodyID> (this can be added at the end of anything you already have in there)
  5. Save

  6. Go to SetUp > WebSite > Tags > New
  7. Create a new Tag called bodyID
  8. Enter a brief "Description", and leave the "Default Value" empty
  9. Save
So we now have a way to directly drop a CSS ID (Or indeed multiple CSS IDs and Classes) into the <body> tag on any page where we have access to Tag Substitution

So, if you wish to change the text color (for example) of a specific category, then all you need to do is the following.
  1. Go into the edit page for your chosen category
  2. Select the "Tag Substitution" tab
  3. Under "Tag", select bodyID from the list
  4. Under "Substitution Value", enter "ID=BlueCategorytext" (or anything else you wish to call it)
OK, so you've now set up the template coding that you need.
If you now pull up this category within your site, and view the source code, you should find that the <body> tag now contains "ID=BlueCategorytext"

So now you need to put together a custom CSS style to achieve the result you wish.

If we're looking to change the color one of the standard NS styles, you would use the following.

#BlueCategoryText .smalltextnolink {color:blue;}

So, each time you load this category, you'll find that anything tagged with .smalltextnolink will now be blue. On every other category, it will be the regular color.

This is obviously a very basic example, there's a lot more you can do with this.

Leave a comment if you find anything I've missed or got wrong, or want to discuss it in more detail.

Friday 8 January 2010

Set up an abandoned shopping cart reminder

Great tip from the guys over at Netsuite Tips and Tricks
Just set it up on my own NS account - going to test it for a few days sending the email alert to me to see how it goes and whether there's anything I'd want to change before making it fully live.

Welcome!

Welcome to a new source of tips and tricks to help you get the best out of your Netsuite business website.