Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Where is Send To A Friend in 4.0.19?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-13-2007, 08:55 AM
 
Shopkeeper09 Shopkeeper09 is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 56
 

Unhappy Where is Send To A Friend in 4.0.19?

just reading through the forums, it seems that Boomer's mod for this function was made standard by 4.0 but i am not able to locate it in my template so that I can activate it.
__________________
Moving over to a SaaS solution.
Reply With Quote
  #2  
Old 06-13-2007, 09:44 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Where is Send To A Friend in 4.0.19?

Hi Sequoia, I probably turned it off in your template. You'll need to uncomment it in customer/main/product.tpl.

Moving to Template Editing.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-13-2007, 10:07 AM
 
Shopkeeper09 Shopkeeper09 is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 56
 

Thumbs up Re: Where is Send To A Friend in 4.0.19?

Thanks Padraic, I figured as much, just didn't dig deep enough to find where it was.

You gave me a snippet of code a few months ago to hide elements from individuals who aren't logged into the website. Could I use that same code to hide Tell A Friend from unregistered visitors?
__________________
Moving over to a SaaS solution.
Reply With Quote
  #4  
Old 06-13-2007, 10:17 AM
 
Shopkeeper09 Shopkeeper09 is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 56
 

Default Re: Where is Send To A Friend in 4.0.19?

Ok, not finding it. Here are the contents of my product.tpl:

{* $Id: product.tpl,v 1.96.2.24 2005/11/07 09:17:46 svowl Exp $ *}

{include file="form_validation_js.tpl"}
{if $product.product_type eq "C" && $active_modules.Product_Configurator}
{include file="modules/Product_Configurator/pconf_customer_product.tpl"}
{else}
{capture name=dialog}
<FORM name="orderform" method="post" action="cart.php?mode=add" onsubmit="javascript: return FormValidation();">
<TABLE border="0" width="100%" cellpadding="1" cellspacing="1" >

<TR>
<TD valign="top" align="left" width="200" style="padding-right: 10px; border-right: 1px solid #C7C6AE;">
{*{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail"}*}
{if $active_modules.Detailed_Product_Images ne ""}
{include file="modules/Detailed_Product_Images/product_images_one.tpl" }
{/if}

{if $active_modules.Magnifier ne "" && $config.Magnifier.magnifier_image_popup eq 'Y' && $zoomer_images ne '' && $js_enabled eq 'Y'}
{include file="modules/Magnifier/popup_magnifier.tpl"}
{/if}


<br><br>
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if}
</TD>
<TD valign="top" style="padding-left: 10px;">

<TABLE width="100%" cellpadding="0" cellspacing="0" border="0">

{if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""}
<TR><TD width="20%">{$lng.lbl_quantity}</TD><TD nowrap><SPAN id="product_avail_txt">{if $product.avail gt 0}{$product.avail}</SPAN>{else}{$lng.txt_no}{/if} {$lng.txt_items_available}</TD></TR>
{/if}
{if $active_modules.Extra_Fields ne ""}
{include file="modules/Extra_Fields/product.tpl"}
{/if}
{if $active_modules.Feature_Comparison ne ""}
{include file="modules/Feature_Comparison/product.tpl"}
{/if}

</TD>
</TR>
{/if}

{if $active_modules.Product_Options ne ""}
{ include file="modules/Product_Options/customer_options.tpl"}
{/if}
{if $active_modules.Subscriptions ne "" and $subscription}
{include file="modules/Subscriptions/subscription_info.tpl"}
{else}
<TR><TD valign="top" colspan="2" style="border-top: 1px solid #C7C6AE;">&nbsp;</td></tr>
<TR><TD class="OptionTitles" valign="top" width="30%">{$lng.lbl_price}:</TD>
<TD valign="top">
{if $product.taxed_price ne 0 || $variants ne ''}
<span class="ProductPriceDetail"><SPAN id="product_price">{include file="currency.tpl" value=$product.taxed_price}</SPAN></span><span class="MarketPrice"> <SPAN id="product_alt_price">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price}</SPAN></span>
{if $product.taxes}<br />{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if}
{else}
<INPUT type="text" size="7" name="price">
{/if}
</TD>
</TR>

<Tr><td colspan="2" height="20">&nbsp;</td></tr>



<TR><TD height="25" colspan="2" class="OptionTitles" align="left">{$lng.lbl_quantity}:{if $product.min_amount gt 1}<br /><span class="ProductDetailsTitle">{$lng.txt_need_min_amo unt} {$product.min_amount} {$lng.lbl_items}</span>{/if}&nbsp;
{if $config.General.unlimited_products eq "N" and ($product.avail le 0 or $product.avail lt $product.min_amount) and $variants eq ''}
<SCRIPT type="text/javascript" language="JavaScript 1.2">
var min_avail = 1;
var avail = 0;
var product_avail = 0;
</SCRIPT>
<B>{$lng.txt_out_of_stock}</B>
{else}
{if $config.General.unlimited_products eq "Y"}
{math equation="x+1" assign="mq" x=$config.Appearance.max_select_quantity}
{else}
{math equation="x/y" x=$config.Appearance.max_select_quantity y=$product.min_amount assign="tmp"}
{if $tmp<2}
{assign var="minamount" value=$product.min_amount}
{else}
{assign var="minamount" value=1}
{/if}
{math equation="min(maxquantity+minamount, productquantity+1)" assign="mq" maxquantity=$config.Appearance.max_select_quantity minamount=$minamount productquantity=$product.avail}
{/if}
{if $product.distribution eq "" and !($active_modules.Subscriptions ne "" and $subscription)}
{if $product.min_amount le 1}
{assign var="start_quantity" value=1}
{else}
{assign var="start_quantity" value=$product.min_amount}
{/if}
<SCRIPT type="text/javascript" language="JavaScript 1.2">
var min_avail = {$start_quantity|default:1};
var avail = {$mq|default:1}-1;
var product_avail = {$product.avail|default:"0"};
</SCRIPT>

<SELECT id="product_avail" name="amount"{if $active_modules.Product_Options ne '' && $product_options ne ''} onchange="check_options();"{/if}>
{section name=quantity loop=$mq start=$start_quantity}
<OPTION value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</OPTION>
{/section}
</SELECT>

{else}
<SCRIPT type="text/javascript" language="JavaScript 1.2">
var min_avail = 1;
var avail = 1;
var product_avail = 1;
</SCRIPT>
<span class="ProductDetailsTitle">1</span><INPUT type="hidden" name="amount" value="1"> {if $product.distribution ne ""}{$lng.txt_product_downloadable}{/if}
{/if}
{/if}
</TD></TR>
<TR><TD colspan="2" align="left">
<INPUT type="hidden" name="mode" value="add">
{if $variants eq ''}
{include file="customer/main/product_prices.tpl"}
{/if}
{if $config.General.unlimited_products eq "Y" or ($product.avail gt 0 and $product.avail ge $product.min_amount)}
{if $js_enabled}
<br />
{if $smarty.get.pconf ne ""}
<INPUT type="hidden" name="slot" value="{$smarty.get.slot}">
<INPUT type="hidden" name="addproductid" value="{$product.productid}">
{include file="buttons/button.tpl" button_title=$lng.lbl_pconf_add_to_configuration style="button" href="javascript:if (FormValidation()) `$ldelim`document.orderform.productid.value='`$sma rty.get.pconf`';document.orderform.action='pconf.p hp';document.orderform.submit()`$rdelim`"}
<br /><br />
{/if}

{if $product.forsale ne "B"}

{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}<br />

{if $login ne "" and $active_modules.Wishlist ne ""}

{include file="customer/add2wl.tpl"}

{/if}

{else}
{$lng.txt_pconf_product_is_bundled}
{/if}
{else}
{include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart}
{/if}
{/if}
{if $active_modules.Feature_Comparison ne ""}
{include file="modules/Feature_Comparison/product_buttons.tpl"}
{/if}


</td></tr>
</table>
</td></tr>
</table>
<INPUT type="hidden" name="productid" value="{$product.productid}" />
<INPUT type="hidden" name="cat" value="{$smarty.get.cat|escape:"html"}" />
<INPUT type="hidden" name="page" value="{$smarty.get.page|escape:"html"}" />
</FORM>
{/capture}
{include file="dialog.tpl" title=$product.product content=$smarty.capture.dialog extra="width=100%"}
{/if}


{if $active_modules.Upselling_Products ne ""}
<P>
{include file="modules/Upselling_Products/related_products.tpl" }
{/if}
{if $active_modules.Customer_Reviews ne ""}
<P>
{include file="modules/Customer_Reviews/vote_reviews.tpl" }
{/if}

{if $active_modules.Product_Options ne '' && $product_options ne ''}
<SCRIPT type="text/javascript" language="JavaScript 1.2">
check_options();
</SCRIPT>
{/if}
__________________
Moving over to a SaaS solution.
Reply With Quote
  #5  
Old 06-13-2007, 10:34 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Where is Send To A Friend in 4.0.19?

Guess I removed it completely. You can add it back in by putting this just before the {if $active_modules.Product_options ne....line

{include file="customer/main/send_to_friend.tpl" }
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 06-13-2007, 10:35 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Where is Send To A Friend in 4.0.19?

Oops...yes, you can hide it:

{if $login ne ""}
{include file="customer/main/send_to_friend.tpl" }{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 06-13-2007, 11:43 AM
 
Shopkeeper09 Shopkeeper09 is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 56
 

Default Re: Where is Send To A Friend in 4.0.19?

Thank you, you are the man

Would you know the proper way to place it as a link? I would prefer to have it come up in a seperate window as a pop-up instead of clogging up my product pages.

As always, Mucho Gracias
__________________
Moving over to a SaaS solution.
Reply With Quote
  #8  
Old 06-13-2007, 11:48 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Where is Send To A Friend in 4.0.19?

Ah, that is a whole different animal I have used some send to friend pop-up scripts from hotscripts.com in the past, but have never tried to get X-Cart's to work as a pop up
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 06-13-2007, 11:53 AM
 
Shopkeeper09 Shopkeeper09 is offline
 

Advanced Member
  
Join Date: Apr 2006
Posts: 56
 

Default Re: Where is Send To A Friend in 4.0.19?

You know I had installed Stadtaus.com's script: http://www.stadtaus.com/en/php_scripts/tell_a_friend_script/

I had it working on a static HTMl test page the way I wanted, as a link, but the referrer failed when I placed it on my category pages in the description code, or on a product page.

Can you share which script you got to work for you?
__________________
Moving over to a SaaS solution.
Reply With Quote
  #10  
Old 06-13-2007, 12:21 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Where is Send To A Friend in 4.0.19?

Let me see if I can dig it up..that was a while ago!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:01 AM.

   

 
X-Cart forums © 2001-2020