Post by priceyboy » Tue Nov 24, 2009 2:37 pm

I have been asked a few times how to add a 'Tell a friend page.. here goes

Step1. Download and unzip the file 'tellafriend' edit 'tellafriend.php' - add your email address and domain name close and save. upload the folder and it's contents to your host via ftp (no CHMOD required)

Step2. Go to your admin>Catalog>Information>Insert

Now create a new page called 'Tell a Friend'
In the Description box click 'source' and add this text
<iframe scrolling="no" height="378px" frameborder="no" align="right" width="520px" name="frame1" src="http://www.YOUR-DOMAIN.com/tellafriend"></iframe>

Here is a demo http://www.kelmar-group.co.uk/cart (look under the tab information >Tell a Freind)

P.s. I am not the author of this script, please use at your own risk


Hope this helps..

Priceyboy

Attachments

Fromat: WinZip

Format: WinRar


New member

Posts

Joined
Fri Nov 13, 2009 3:08 pm

Post by vimal » Wed Nov 25, 2009 4:52 pm

Hi. This is cool. Does it work with OC v1.3.2 ?

www.beeshop.se
Starta webbshop, Starta e-butik, Starta e-handel


Active Member

Posts

Joined
Wed Aug 26, 2009 8:54 am
Location - Sweden

Post by priceyboy » Thu Nov 26, 2009 1:09 am

Yeap, this will work with any version of opencart, or any other web site come to that. It is a stand alone script, that simply uses the <iframe> tag..

Regards
Priceyboy

New member

Posts

Joined
Fri Nov 13, 2009 3:08 pm

Post by DannyMacD » Thu Nov 26, 2009 6:18 pm

hi there,

i have followed everything on the above and used this code:

Code: Select all

<p><iframe name="frame1" align="right" src="http://www.macdealeruk.com/tellafriend.php" frameborder="no" width="520" scrolling="no" height="378"></iframe></p>
but when you go to the page its blank.

http://macdealeruk.com/index.php?route= ... tion_id=10

mine is OC 1.3.2

any thoughts?

many thanks

Active Member

Posts

Joined
Fri Jun 26, 2009 6:39 am

Post by fido-x » Thu Nov 26, 2009 9:21 pm

Where did you put the "tellafriend.php" script? By the looks of it, you should put the "tellafriend" folder into your top level directory, then call it with something like (in your case):

Code: Select all

<p><iframe name="frame1" align="right" src="http://www.macdealeruk.com/tellafriend/index.htm" frameborder="no" width="520" scrolling="no" height="378"></iframe></p>
I haven't tested this, so I don't know if it will work or not. I only had a quick look at the code in the zip file.

Edit
The above code won't work, try this instead:

Code: Select all

<p><iframe name="frame1" align="right" src="/tellafriend/index.htm" frameborder="no" width="520" scrolling="no" height="378"></iframe></p>

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by redelefant » Tue Dec 01, 2009 7:32 am

Hi,

i tried your code in the admin->catalog->information
the files are in the tellafriend folder top level

i get to see the tell a friend page when i click it but it is in full screen in stead of in the middle of my site
www.nep-tunes.org

any ideas? it would be very nice if i got this to work , thnanx!

Newbie

Posts

Joined
Tue Dec 01, 2009 7:28 am

Post by priceyboy » Wed Dec 02, 2009 1:37 am

Okay, looks like your nearly there..
Try the code below, and make sure when you add the code that you click 'source' in the FKEDITOR

<iframe scrolling="no" height="378px" frameborder="no" align="right" width="520px" name="frame1" src="http://www.www.nep-tunes.org/tellafriend"></iframe>

Regards

Priceyboy

New member

Posts

Joined
Fri Nov 13, 2009 3:08 pm

Post by redelefant » Wed Dec 02, 2009 7:32 am

thanx priceyboy for looking into it.

i think the problem was that i had my SEO keyword also 'tellafriend'. same name as my directory i copied the files in on the server. When i changed the SEO in something else, it worked.

nice tool ! works nice now!

_____________________________
www.nep-tunes.org

Newbie

Posts

Joined
Tue Dec 01, 2009 7:28 am

Post by thinkingforward » Wed Apr 07, 2010 2:06 am

Thanks for this.

How hard would it be to enclose the link of the product you are on in the tell a friend message?

Active Member

Posts

Joined
Wed Nov 25, 2009 2:55 am


Post by SteveSherry » Thu Apr 08, 2010 8:56 am

I wouldn't imagine that it would be too difficult, but i'm just logging off, i'll get onto it as soon as I log on tomorrow.
It also makes sense to me to have this as a link from the product rather than a link form the information box, so might also have an update for that too.


Steve...

My Website ¦ Summer Madness Special Offer ¦


Active Member

Posts

Joined
Thu Apr 08, 2010 7:47 am
Location - Wirral, UK

Post by Laurentius26 » Tue Apr 10, 2012 6:32 pm

First a all, thanks a lot for this mod.
I've installed and it works awsom.

One question.

I have translated tellafriend.php in the English dir (catalog/language/english/information/) to Dutch and offcourse placed the php in the Dutch dir.

After this I've used the vqmod to create a shortcut in the footer.
It works ok but I have one cosmetic issue and I don't know where I should change.

Image

Anyone can point me in the right direction, which .php to edit?

The Opencart version I use is 1.5.2.1

Thanks in advance!

Leo :)

Edit: attached my translation incase someone wants it.

User avatar
Newbie

Posts

Joined
Tue Apr 10, 2012 5:15 am

Post by Laurentius26 » Wed Apr 11, 2012 12:50 pm

Hi again,

I answer my own question as I found the problem and maybe someone els is interested as well.
The problem I found in the vqmod xml, I needed to add a line and now everything is working.

Here it's:

<file name="catalog/language/dutch/common/footer.php">
<operation>
<search position="before"><![CDATA[$_['text_manufacturer'] = 'Merken';]]></search>
<add><![CDATA[
$_['text_tellafriend'] = 'Vertel een vriend';
]]></add>
</operation>
</file>

Grtz, Leo :)

User avatar
Newbie

Posts

Joined
Tue Apr 10, 2012 5:15 am
Who is online

Users browsing this forum: No registered users and 7 guests