Skip to main content

Reserved page in Yahoo! Store

A client of mine asked me to figure out why her order status page - which contained only a simple HTML form - didn't work on her published site. It was a strange phenomenon, the page she created worked perfectly fine in the editor, but on the published site, all it showed was the word OK. This was really strange, as I couldn't see anything wrong with the HTML itself.

Then, I thought, since the form used an outside service to return order status, maybe that service did something to the page. So I took the form out (leaving that order status page basically blank, with only the store header, navigation, and footer on it) and republished. Same thing! Only OK on the published site... Then I looked at the source of that page, and in the source there was nothing else except for OK. Now that was really strange, because in Yahoo! Store you cannot even create a page that does not at least have a regular web page layout like this:

<html>
<head>
<title>No Name>/title>
</head>
<body>
</body>
</html>

Since this page had none of that, I had a thought and plugged in the same URL but within another Yahoo! Store, my own: http://www.ytimes.info/status.html

Voila! Same result, that page only showed OK - but I didn't even have a status.html page... So I went back to my client's site, recreated the order status page as order-status.html, published, and all of a sudden everything worked great.

Out of curiosity, I tried a few other Yahoo! Stores to see if they also had a status.html page, and as I expected, they all did - and with the same OK and nothing else on it. So I contacted Yahoo! and confirmed:

status.html is a reserved page in every Yahoo! Store used for server monitoring.

So my first conclusion was: don't create a page whose ID (url) is status, it won't work on your published site.

But better yet, you can turn this into a useful feature: create a status.html page in your store, but use it for internal communication for your company. You can put notes there for your staff, instructions, etc. Whatever you put there will only be visible in the editor, not on the published site.

Comments

Popular posts from this blog

What is product-url anyway?

I keep having to field questions about the product-url field, and since it came up yesterday, I figured I'd try to clear up all the confusion about it.

So the name product-url suggests that whatever you type in there will become the URL of that product. Unfortunately, this is not the case, or rather, not in the intuitive way. The URL you enter there will be used as the URL for that product in Yahoo Shopping, on the built-in search results page, and on the shopping cart page, however, the URL you type in there DOES NOT actually change the physical URL of the page.
What is the URL of a page in a Yahoo Store? In any Yahoo Store built in the store editor, the URL of a page is the store's domain name and the page ID + .html. For example, in my store at www.ytimes.info, I have a page whose id is rtml101, thehrefore, the URL of that page is http://www.ytimes.info/rtml101.html.
Why would you want to change the URL? For SEO reasons, it is believed to be better to have a URL that includ…

Referencing Files from Yahoo! Web Hosting Securely

Now that hopefully most of you you have your stores secured (if not and need help, we offer a Secure Storefront Preparation Service here), you may have been faced with the question of how to reference files (images, CSS, JavaScript, src) if those files are stored on your Yahoo! store's web hosting account. Obviously using the old HTTP: method won't work, so something like this

< img src="http://site.ytimes.com/image.jpg" />

will not work. Nor can you simply change the http: part to https: , because as of this writing, only the store editor portion of a Yahoo! Store can be made secure, the web hosting portion cannot.

First a side note: if this sounds totally Greek to you because you have never heard of the web hosting part of your Yahoo! Store, you may have a legacy Yahoo! store account and not a Merchant Solution one. With a legacy store account you will only have the store editor part and no hosting account, in which case none of this applies to you.

The good n…

Auto-update Copyright Year

This is one of those minor, recurring questions I'm always asked (each year): to update the copyright year in sites. Whether this is the "right thing" to do or not I don't know, but here is how you can make it automatic:

First, go to the Variables page (these instructions are for Yahoo! Stores), and do a search for the word "copyright" or the year that's currently displayed next to your copyright message. If you can't find it there, chances are you have a custom template and the copyright message might be coming from some place else. In that case, you'll have to track it down, but because custom templates can be set up in any which way, unfortunately you'll be on your own.

Assuming you found it, replace the year with this JavaScript code:

<script>document.write(new Date().getFullYear())</script>

Hit Update and you should be all set!