HolidayLEDs.com your Eco-friendly Christmas light company.

Posts: 113
Joined: 08/07/2007
Bug FinderGetting busy with the Ubercode.

Holiday LEDs is trying to make the world a better place by getting rid of the incandescent Christmas light. LED Christmas lights use 80% less energy than their incandescent ancestors, and they last 50,000 hours.

Now for what your Actually interested in.

Drupal Contrib Modules being used:
Views - Articles Page view, articles Block view, and the Featured Products block
Content Templates - Custom product page
Inline - An easy way to place images in the body
Path Auto - Automatically gives the products Search Friendly URLS
Secure Pages - Automatically sends people to the secure side for anything that should be secure

Ubercart Contrib Modules
Catalog Blockify - A nice block layout on the catalog page.
Discounts - We are currently offering a 10% discount for orders over $50.

Theme
We started with the Zen theme.

Posts: 5379
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Excellent, Mike. The site looks great. Smiling I noticed it in the Viva Green directory a few days ago and figured an announcement would come soon. The Catalog blockify module looks mighty nice in there, too. Congrats on a good site and a sweet product. Eye-wink

Quick typo on the front page: "Durable 1 peice construction"

Posts: 113
Joined: 08/07/2007
Bug FinderGetting busy with the Ubercode.

Thanks.

Fixed the typo.

Posts: 41
Joined: 09/07/2007

> Hello,
>
> I saw your site in the live sites section and noticed that your catalog paths are exactly what I'm looking for on my site. Can you tell me what you did to achieve this?
>
> You have paths like this:
> http://www.holidayleds.com/catalog/led_christmas_lights_home/led_minilig...
>
> Where most people have paths like this:
> http://www.vingowine.com/catalog/58/liquor
>
> I am trying to avoid having the [tid], the id number of the category, in the path. I know that I can create URL Aliases for each of my catalog categories, which might be what you have done, but I wanted to see if their might be a more automated way. I have pathauto setup and it works fine to create the paths for the product pages, but I also want the catalog category pages to use those same paths and not have the [tid] in them. I don't see anywhere in pathauto to do this. I have my 'Pattern for all Catalog paths:' set to [vocab]/[catpath] which works for the links in the category editing menu at: /admin/content/taxonomy/1, but not for my links within the catalog to each category.
>
> Thanks!
> -ben

I tried the catalog/[catpath] for the categories in pathauto that you suggested, but I still get the [tid] in the links to products in the catalog and breadcrumbs. I know that you've done something custom because I did some digging into that catalog module and the [tid] is hard coded into the links that are generated for the catalog.

See the $term->tid

function uc_catalog_term_path($term){
  if (function_exists('iconv')){
    return variable_get('uc_catalog_url', 'catalog') .'/'. $term->tid .'/'. iconv('UTF-8', 'ASCII//TRANSLIT', preg_replace(array('/ /', '/\W[_ ]?/'), array('_', ''), strtolower($term->name)));
  }
  else{
    return variable_get('uc_catalog_url', 'catalog') .'/'. $term->tid .'/'. preg_replace(array('/ /', '/\W[_ ]?/'), array('_', ''), strtolower($term->name));
  }
}

Are you using the default catalog for your category pages or do you have a custom view-list-catalog.tpl.php file? I'm assuming the latter because now that I look at it, you aren't even using the catalog navigation block.

Posts: 113
Joined: 08/07/2007
Bug FinderGetting busy with the Ubercode.

I have done some re-theming of the catalog. I haven't added a new catalog item since I last updated the site. Let me play around with this a little and see if I can get a better answer for you. I think path aliases is the best way to handle this for compatibility issues, rather than adjusting the uc_catalog_term_path() function, but it doesn't seem to be working with path auto anymore. In the meantime, you can manually add or adjust the url aliases.

Posts: 41
Joined: 09/07/2007

Mike,

I was looking at your site and saw that it has changed to include the [tid] in the paths. Sorry if I've caused you to mess up the nice setup. I've submitted a feature request if you want to add your support/ideas.
http://www.ubercart.org/forum/ideas_and_suggestions/1325/make_catalog_an...

Posts: 29
Joined: 08/09/2007
Bug FinderEarly adopter... addicted to alphas.

Mike -
Very cool site. Not that too many people use Safari, but thought I would give you a couple screen shots.
In IE it looks sweet. You have the opposite problem we usually have.

AttachmentSize
Screenshot187 KB
--

Drupal + Ubercart = Sundays Energy
_____________________

Analog Hero - Vintage Gadgets

Posts: 29
Joined: 08/09/2007
Bug FinderEarly adopter... addicted to alphas.

I swear this second post isn't for the juice. One more screen shot.

AttachmentSize
Screenshot2141.7 KB
--

Drupal + Ubercart = Sundays Energy
_____________________

Analog Hero - Vintage Gadgets

Posts: 113
Joined: 08/07/2007
Bug FinderGetting busy with the Ubercode.

Wow...Lots of safari problems, huh. That makes sense, I just got everything working in IE, so it had to break somewhere else.

I just found a cool site called Browser Shots. It 1st page issues with safari, but I haven't had the chance to check other pages(it takes about 40 minutes to get all the screenshots back).

Thanks for the screen shots, I'll fix that soon. It seems that safari uses a larger default font, which I didn't plan for.

Posts: 329
Joined: 08/28/2007
Early adopter... addicted to alphas.Not KulvikTheminator

It's funny - I have Safari here but wanted to look at the way you put it together so opened your page in Firefox so I could use Firebug. Just checked in Safari 3 and it's like the screenshots. It's a real shame that Safari breaks some pages when they appear perfectly fine in Firefox, Opera, Camino and sometimes, dare I say it, IE6/7. Of course, IE6 (and 7 to a lesser extent) is the major headache but since I learnt that 90% of problems stem from hasLayout I just add a height of 100% or something like that and the problem is usually resolved. I have no clue about rendering bugs/quirks in Safari so if you figure out what the problem is I would love to know how you fixed it.

That browser shots is cool but takes too long to be really useful. Good job I have both a Mac and a PC on my desk (honestly not trying to rub it in). If you want me to send you screenshots for Safari (via email or msn/skype) just let me know and I'll give you my details.

Update: I've just checked your site and you are declaring 13px font-size for the body. This should bring Safari into line with everything except IE (I'm guessing you have a font:small in a condcom). I've checked Safari and the list text is being rendered at 16px. Weird.

Posts: 113
Joined: 08/07/2007
Bug FinderGetting busy with the Ubercode.

Thanks for the tip. I added #page{font-size:13px;} and it took care of it for some reason. What's odd is that the #page should be inheriting from the body, but it's not. Very odd, but thanks for the help. It looks good in Safari for Windows. Let me know if you see any other issues.

Posts: 329
Joined: 08/28/2007
Early adopter... addicted to alphas.Not KulvikTheminator

Hi mike, just checked your site and the font-size issue is fixed in Safari for Mac.

Posts: 1
Joined: 10/05/2007

I really like the layout of your front page, but I can't seem to find the "Catalog Blockify' contrib anywhere.

Any suggestions?

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

Catalog Blockify can be found here:

http://www.ubercart.org/forum/development/382/displaying_products_block_...

The Drupal default search function doesn't do wild card searches, and the only place "blockify" shows up is in the name of the download, uc_catalog_blockify.zip, so it's pretty hard to find this by searching.

--

<tr>.