Skip to main content

Using PHP with Yahoo Store

I seem to get this question a lot: can you use PHP with the Yahoo Store catalog? The short answer is unfortunately now. With store-tags you can access the catalog, any item and any property of any item from within an HTML page (running on Yahoo's server), but the same is not true for PHP scripts.

Store tags are special tags you can embed inside any HTML page of a yahoo store, and those special tags are then replaced by the server with some referenced property of some item in the store catalog. Although store tags were meant to be used in web hosting Yahoo Stores, they actually do work in the Yahoo Store editor as well! You can easily try it out, pick a store tag (see here for store-tag info: http://help.yahoo.com/help/us/store/tags/) and put it in any text field in the editor.

While it would be a powerful feature of Yahoo Store to be able to use store-tags in PHP, because currently it is not supported, you are still have to rely on RTML and templates if you want to have more control over your store than what store tags and SiteBuilder or DreamWeaver provides.

Comments

Popular posts from this blog

Catalog Request

You may have noticed that both the Catalog Request and Catalog Request Confirmation pages are now customizable through Checkout Manager. If you have already customized your Checkout Manager pages (or had someone customize them for you), and would like to have the same custom look applied to your Catalog Request and Catalog Request Confirmation forms, all you have to do is this: Go into Checkout Manager, click Page Configuration and then look at how your Shipping, Billing, Review, etc. pages are set up; in particular, check if you have the Top Navigation and Left Navigation enabled. Click over to the Catalog Request tab, and make sure you have the same settings next to Top Navigation and Left Navigation. Don't forget to hit Save or Save & Preview , otherwise your changes will be lost. Click over to the Catalog Request Confirmation tab and there too, make sure you have the same settings next to Top Navigation and Left Navigation (so if those are enabled on your other checkout p

CPR for a Yahoo Store on Google's Supplemental Index

Recently a client of mine came to me and said that most of his store pages disappeared from Google, and he did not do anything to make this happen. I was a bit skeptical, so I went to Google, did a search on his store, and sure enough, there were only two pages indexed, his home page and his site map (ind.html) page. The rest were in the supplemental results, which means that Google thought the rest of the pages were not much different than these two pages. When I looked at the supplemental results, the little excerpts under each link were exactly the same, and I also noticed that what Google showed under each result was actually text from the ALT tags of the header image. I looked at some of these pages in my client's store, and they were actually different. This was a bit puzzling, but then I thought perhaps Google saw that the header and left navigation was the same throughout the site (which is pretty normal), but that the text that made each page different was too far down ins

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!