Quick snippet

Published

I've been working with WooCommerce, a free WordPress plugin to add e-commerce support to a website. I was working on including breadcrumbs to help make the navigation of the store more intuitive. I wanted to include the base path of the store (i.e.: Products) in the breadcrumb path, and I found that the Breadcrumb NavXT plugin treated me with much more respect than WooCommerce's built-in breadcrumb feature.

However, on a single product page, the default breadcrumb path didn't include the WooCommerce Product Category taxonomy path, so instead of seeing something like

Products > Parts > Brakes > Pads > Brake Pad

I saw

Products > Brake Pad

The trouble with categories (in blog software at least) is that a post can be in one or more categories, but the user still expects to be able to see a detailed breadcrumb path telling him how he got to whatever page he's viewing. I came up with a quick fix using Breadcrumb NavXT to look for the first available WooCommerce Product Category and build a breadcrumb path based on that.

function product_cat_breadcrumbs($post, $return = false) {
	$taxonomy_name = 'product_cat';
	$terms = get_the_terms($post->ID, $taxonomy_name);
	$term_count = 0;
	foreach ($terms as $term) {
		$term_count++;
		global $bcn_admin;
		if ($bcn_admin !== null) {
			// Load options
			$bcn_admin->breadcrumb_trail->opt = wp_parse_args(get_option('bcn_options'), $bcn_admin->breadcrumb_trail->opt);
			$bcn_admin->breadcrumb_trail->term_parents($term->term_id, $taxonomy_name);
			return $bcn_admin->breadcrumb_trail->display($return);
		}
		break;
	}
	// If we didn't find any terms, fallback to default behaviour.
	if ($term_count == 0)
		return bcn_display($return);
}
  • Metro
  • Old Port
  • Sunset Roast On The Beach
  • Christmas Decorations
  • Burke Electric
  • Sand Castle

Previously...

11 Responses to HostPapa: The Good, the Bad, and the Ugly

  1. Nick wrote on August 30, 2009 at 08:16

    I am in the middle of a nightmare with Hostpappa right now.

    It seems like they have lost all my files afer one of their serves crashed, all I have left are my databases.

    Nobody in Hostpappa has given me a satisfactory answer to why my site has gone, all they have said is that they will reply to my support ticket asap, which they haven't done.

    I would avoid them like the plague.

  2. They work for me good

    If I need help with something I just ask

    I do agree they should widen their range for space.

    Making back ups of your work should be your responsibility back up and back up somewhere else because you never know that is how the world works.

    The ones that works good

    Hostpapa
    lunar pages
    Go Daddy

    I have friends that use all 3 of these
    all have different benefits in hosting

  3. I have used 1and1 for 5years now, and haven't run into any major problems with them at all. I have called support a few times now, and although the accents are sometimes hard to understand, any of my issues have been resolved quickly, and they have a rather well rounded FAQ pages that lets me answer my own questions before I call for support. The only thing that sucks is they don't support .ca so I have to get the domains elsewhere, but still can host the .ca's through 1and1...

  4. HP Sucks wrote on March 10, 2010 at 16:19

    Hostpapa is a joke. Here's why:

    They don't perform backups on customer data, sometimes don't even RAID their servers. Data loss is not uncommon. They also have VERY FEW servers and stuff tons of oversold accounts on, hence its pretty slow and full.

    About their servers, heres the funny/sad part. They're dedicated servers. They have no idea what kind of power they draw. The fact that they claim to buy green power for them is a joke. If they do its likely some token amount. Pathetic. They host your shit on one of the most ghetto datacenters in existence: Scratch Telecom in Mississauga. Nope not in 151 Front St Toronto, Nope. Not in any big redundant telecom hub. In a commercial district colo, probably he cheapest and worst outside of 3z, MoxieColo and similar fly-by-nighters.

    In short, don't buy the HostPapa hype. They notoriously post their own good reviews on sites, their oakville IPs are easy as hell to trace. I've done it before. Oakville is a white suburb outside of Mississauga BTW. Nice place to visit. Hostpapa stole their town logo (the leaf) and wrote 'Green Tags' over top of it on their homepage. Cracks me up.

    The guys who run HP are also pathetic and inept.

  5. John Sebastian wrote on October 24, 2010 at 14:10

    WTF is this guy talking about above. He makes absolutely no sense. Ping Hostpapa servers and you will see that they are located at Peer 1 at 151 Front.

    Sounds like a disgrunted ex-employee to me considering he is making comments on management.

    I have been hosting with Hostpapa for 3 years and had ZERO issues. I am surprised as hell to see all this B.S.

  6. Rickmeister wrote on December 24, 2010 at 19:58

    Their servers were at Scratch Telecomm, but had to move them after Scratch bellied-up.

  7. Host Papa is a big joke. DONT BUY HOST PAPA THATS ALL. If you want cheap hosting setup your hosting yourself.

  8. Sheldon wrote on September 11, 2011 at 08:17

    No web site yet; I'm on a learning curve.

    Most of these reviews are from 2010, the most current from Feb.2011. Considering that they are 8 - 12 months or more old, and how quickly things change in the IT world, my question is: Has Host Papa not addressed these? Are they still lagging in the service they provide? If any of you could please comment I would be grateful?

    Thanks
    Sheldon

  9. Just trasnferred a few domains to this company with more to follow. They promptly downed the server one was on, no warning, no backup in place. Still down.

    This company has no business hosting commercial websites of any kind. Their support is horrid, obviously they have no clue what they're doing and are just scamming people. We've since referred this to our lawyer to obtain refunds. This place needs to be shut down.

  10. Andrew wrote on October 1, 2011 at 23:57

    I've had endless trouble with Hostpapa. They frequently don't reply to tickets AT ALL, their support staff is rude and they make frequent mistakes.

    For example, it took me 3 weeks to get an EPP code out of them! When they did actually bother replying to tickets, they kept resupplying the same EPP code, which I kept having to tell them was invalid. They resupplied the same, invalid, code 4 times over 2 weeks!

    Eventually I had to Google the error the transfer request was sending back and send the results of my search to the Hostpapa support! Madness!

    On another occasion, I requested an update be made to our DNS records (as it was not permitted for us to make these changes ourselves?!) and I had to repeat the request 24 hours later when I still hadn't received a reply to the ticket.

    Only a further 24 hours later when I chatting to their online support staff and queried why my ticket hadn't even been acknowledged a full 48 hours after submission was any effort made to update the DNS records.

    I've had their support staff refuse to answer straightforward questions and even hang up on me. It's like the Wild West out there. I'm honestly surprised Hostpapa is even still in business.

    When you read the glowing reviews of them, it's clear they're all written in the same "voice", so I could totally believe that Hostpapa are behind their own good reviews.

  11. I was working for Hostpapa in 2007-08 to 2011. I can assume that there are lack of problems with this company. We had to compensate for the small number of employees (10) for about 20 000 customers. So i was working in the sales department and i had to work also on billing and tech support. That's not normal to do the job of 3 department.

    Also the tech support is not reachable via mail. You can contact them only by their phone extension that is hidden from all customer (Example: 1-888-959-7272 ext 777 (management)

    We were doing more then 50 hours / week. There were no backup or RAID on the servers. The servers crashed 2 times between 2009-2011 and all data were lost and there was no way to recovered them. So we were told to explained the customers that we were checking the problem and get back to them after.

    So this company is a real joke also for the employees as the customers.

    I'm working now for Godaddy and the service is super !!!

    Thank you

Add your thoughts