PDA

View Full Version : Adding a button to the "Buy" drop down


BeachsidePaul
Apr-19-2009, 11:27 AM
Okay, before I start messing with the Yahoo GUI code (that's a scary thought), does anyone have any place they can point me for instructions on how to add a "before you buy" link to the buy button drop down and then create an "overlay" type window for some instructions on cropping, canvas prints and stuff like that? I could add a link to our main nav menu but would really prefer putting it somewhere that the user sees when they are actually thinking about buying a photo. Thanks in advance for any handholding or instruction pointing you good folks might have to offer, Paul

fredjclaus
Apr-19-2009, 02:15 PM
I may be mis understanding what you are saying but I think I know. When your customer purchases a product that needs to be cropped the system will tell them that it needs to be cropped and show them where the default crop will take place. Do you need something more than that?


Okay, before I start messing with the Yahoo GUI code (that's a scary thought), does anyone have any place they can point me for instructions on how to add a "before you buy" link to the buy button drop down and then create an "overlay" type window for some instructions on cropping, canvas prints and stuff like that? I could add a link to our main nav menu but would really prefer putting it somewhere that the user sees when they are actually thinking about buying a photo. Thanks in advance for any handholding or instruction pointing you good folks might have to offer, Paul

BeachsidePaul
Apr-19-2009, 02:24 PM
Thank you Fred, I do in fact need more than that, we put matting borders on all our photos and I need to explain some of the buying options for special merchandise, canvas prints and commercial licenses. The cropping part is the least of the problems we're trying to address. Again, thanks for the response though, Paul

jfriend
Apr-19-2009, 02:56 PM
Okay, before I start messing with the Yahoo GUI code (that's a scary thought), does anyone have any place they can point me for instructions on how to add a "before you buy" link to the buy button drop down and then create an "overlay" type window for some instructions on cropping, canvas prints and stuff like that? I could add a link to our main nav menu but would really prefer putting it somewhere that the user sees when they are actually thinking about buying a photo. Thanks in advance for any handholding or instruction pointing you good folks might have to offer, Paul This isn't exactly what you want, but this is some code I wrote a little while ago to add a new menu item to the Buy Button. This code opens a new browser page.

To use it, you would paste this into your bottom javascript and edit the URL and menu text as appropriate.

YE.onDOMReady(AddItemsToBuyButton);

function AddItemsToBuyButton()
{
var buyButton = YAHOO.widget.Button.getButton("buyButton");
if (buyButton)
{
var newBuyItem = { text: "View Catalog", url: "http://www.smugmug.com/help", target: "_blank"};
buyButton.getMenu().addItem(newBuyItem);
}
}

BeachsidePaul
Apr-19-2009, 03:07 PM
John, I just have to laugh :rofl you are the best dude! That's exactly the missing piece I needed to get me started on my mission. From here I should be able to scramble my site fairly well and will, undoubtedly, be back for more "brain-picking" but it's a damn good start! Thanks a million and you can go have an early cocktail now cuz I'm knocking off for the day and shouldn't have any more questions until tomorrow afternoon (morning your time). I really do appreciate *ALL* your input on my behalf and promise you a cocktail next time out your way or you're out here! Later, Paul

EDIT: by the way I lived out in the Concord/Martinez area for several years back when mortgage rates were 11.5% and Martinez was the "sticks". Living in Florida now almost makes me miss BART and the ability to hop a train into the city for a night of partying and hell-raising without worrying about the cops on the drive back! Thanks again, Paul

fredjclaus
Apr-19-2009, 03:20 PM
john,

Make sure to let us know when it's done. You've peaked my interest, now I want to see what you have done with your site.