If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Can I put tell-a-friend on my product page?

Can I put tell-a-friend on my product page?

Locked

Started by nimbuz on 3 Nov 2007, 2:37 AM · Views: 2,025

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
3 Nov 2007, 2:37 AM
#1
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Post #1 by nimbuz

Hi,

I'm trying to insall "Sidebox anywhere" addon to get tell_a_friend show on the product page, but sidebox anywhere has minimal documentation.

One requirement is to change the path:

require ("/path/to/zen/single_sidebox.php");

I'm testing on localhost and might move it to the main server later, so i wanted to use a relative link.

Thanks

CSS Evangelist

3 Nov 2007, 9:54 PM
#2
madmumbler avatar

madmumbler

Zen Follower

Join Date:
Dec 2005
Location:
SWFL
Posts:
450
Plugin Contributions:
0

Post #2 by madmumbler

I've never done it on a local machine, I always do it on a sandbox site and move it later. Can't you use the same relative path you're using in your config files for the main ZC site?

HTH,

Lesli in SW Florida ~ writer, teacher, and dodging hurricanes!

3 Nov 2007, 10:12 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

Nimbuz:

I'm trying to insall "Sidebox anywhere" addon to get tell_a_friend show on the product page

Um, tell-a-friend already shows on Zen Cart product pages.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Nov 2007, 2:51 AM
#4
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Post #4 by nimbuz

DrByte:

Um, tell-a-friend already shows on Zen Cart product pages.

Don't just want a button, but a text (email) filed too like in sidebar (right col).

CSS Evangelist

4 Nov 2007, 8:35 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #5 by drbyte

My point was ... doesn't the "tell a friend" sidebox already appear on the product pages? ... with the email entry field?
The logic for that sidebox actually intends for it to show only on the product info pages.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Nov 2007, 9:15 AM
#6
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Post #6 by nimbuz

Right, but I wanted it in this sequence:

[Add to cart]

add to wishlist+
Tell a friend
[email field]

CSS Evangelist

4 Nov 2007, 1:48 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #7 by drbyte

Okay.

Then you'll have to pull the template pieces (basically the HTML form) from the tell-a-friend sidebox template and insert relevant portions into your customized product-info page template.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Nov 2007, 4:57 AM
#8
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Post #8 by nimbuz

DrByte:

Okay.

Then you'll have to pull the template pieces (basically the HTML form) from the tell-a-friend sidebox template and insert relevant portions into your customized product-info page template.

Just tried that, but it takes me to the shopping card page. :mellow:

My php skills are low, can you please point me in the right direction.

Thanks.

CSS Evangelist

18 Nov 2007, 11:59 AM
#9
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Post #9 by nimbuz

I extracted the following form from right col:

     <form method="get" action="http://localhost/index.php?main_page=tell_a_friend" name="tell_a_friend">
        <input type="hidden" value="tell_a_friend" name="main_page"/>
        <input type="text" class="text" size="10" name="to_email_address"/>
        <input type="submit" style="width: 84px;" value="Tell a Friend" onmouseout="this.className='cssButton button_tell_a_friend'" onmouseover="this.className='cssButtonHover button_tell_a_friend button_tell_a_friendHover'" class="cssButton button_tell_a_friend"/>
        <input type="hidden" value="187" name="products_id"/>
     </form>

and pasted it in tpl_product_info_display.php.

Although It does display the text field and button fine, but on clicking submit, it takes me to the shopping cart page.

I would appreciated any help.

CSS Evangelist