Product Tell a friend as popup

This forum is where we'll mirror posts that are of value to the community so they may be more easily found.
Post Reply
User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Product Tell a friend as popup

Post by mazhar » Thu Mar 05, 2009 10:26 am

You can use this conlib control to have product tell a friend functionality as a popup. There is one important thing which is if you have popup control on you page then you can't have standard product tell a friend control on same page. When you place this control in product details page it will just render a link "Send Product". When you click this link it will open a popup.
The control exposes two settings LinkCaption through which you can change the text of Send Product link and other is PopupCaption through which you can change the header of popup. In order to use control where you want popup functionality just put following code in scriptlet

Code: Select all

[[ConLib:SendProductPopup]]

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Product Tell a friend as popup

Post by jmestep » Fri Oct 09, 2009 5:21 am

The code I downloaded from here doesn't have the close button on it and I can't find it in other files for the Send to Friend. Can you post the code for that button? With what I have, there is no way to close when finished.
Thanks
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Product Tell a friend as popup

Post by mazhar » Fri Oct 09, 2009 5:34 am

Its there I just installed the files. you can see

Code: Select all

<asp:Button ID="CancelAddButton" runat="server" Text="Close" CausesValidation="false" />
in code file. Ajax it self handles click and close event on it. All you need to tell ModalPopupExtender that which one is to be used as close button.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Product Tell a friend as popup

Post by jmestep » Fri Oct 09, 2009 6:59 am

OK, I'm really being dense. I've tried it a couple of places in the content scriptlet for the product page and tried a couple of different versions I have downloaded. I'll work on it- I found one control that had the Close button in the popup. I might have something wrong, but below is what I was getting.
pop.JPG
pop2.JPG
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Product Tell a friend as popup

Post by jmestep » Mon Oct 12, 2009 7:27 am

I got this to work OK. I had an extra email to friend control on the product page from when I had been experimenting.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Product Tell a friend as popup

Post by jmestep » Wed Nov 18, 2009 10:40 am

A new question:
A client wants to move all the javascript out of the top of the page for SEO purposes and when I did that, the modal popup didn't work. Is there a way I can isolate that one section of javascript and not move it? What would I look for?
Thanks
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply