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

Remove Send to a Friend

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-21-2007, 07:55 AM
 
lauren@pti-nj.com lauren@pti-nj.com is offline
 

Member
  
Join Date: Jun 2007
Posts: 11
 

Default Remove Send to a Friend

Hi!

I am using X-Cart 4.0.19 and I'd like to remove the Send to a friend option from my detailed product view pages. Does anyone know how to do that?

Thanks!

Lauren
X-Cart 4.0.19
__________________
Lauren Pinson
X Cart Gold 4.0.19 [win]
Reply With Quote
  #2  
Old 06-21-2007, 08:34 AM
 
balinor balinor is offline
 

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

Default Re: Remove Send to a Friend

Open up customer/main/product.tpl and remove or comment out this line of code:

{include file="customer/main/send_to_friend.tpl" }
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote

The following user thanks balinor for this useful post:
nick mcnair (12-12-2011)
  #3  
Old 06-21-2007, 09:20 AM
 
lauren@pti-nj.com lauren@pti-nj.com is offline
 

Member
  
Join Date: Jun 2007
Posts: 11
 

Default Re: Remove Send to a Friend

Thanks!
__________________
Lauren Pinson
X Cart Gold 4.0.19 [win]
Reply With Quote

The following user thanks lauren@pti-nj.com for this useful post:
nick mcnair (12-12-2011)
  #4  
Old 07-14-2009, 07:53 AM
 
boxerbay boxerbay is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 170
 

Default Re: Remove Send to a Friend

UPDATE: in General settings > Appearance options

turn off

The section 'Send to friend' on the Product details page is enabled.:
__________________
Thanks,
Alex.
Too many version to list. I have some on 3.51 and some on the latest version.
Reply With Quote

The following 2 users thank boxerbay for this useful post:
fogofogo (09-14-2010), nick mcnair (12-12-2011)
  #5  
Old 07-25-2009, 03:51 AM
 
oseymour oseymour is offline
 

Member
  
Join Date: Jul 2009
Posts: 18
 

Default Re: Remove Send to a Friend

This just saved me a lot of trouble.
Reply With Quote

The following 2 users thank oseymour for this useful post:
momentum (06-27-2011), nick mcnair (12-12-2011)
  #6  
Old 12-12-2011, 01:08 PM
 
nick mcnair nick mcnair is offline
 

Member
  
Join Date: Dec 2011
Posts: 28
 

Default Re: Remove Send to a Friend

I am using gold 4.4.4 and there isnt the text {include file="customer/main/send_to_friend.tpl" } in the product.tpl file.

I do not want this portion on the page at all. below is the text from my product.tpl file. please help.

{*
$Id: product.tpl,v 1.7.2.2 2011/03/14 08:34:17 ferz Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{include file="form_validation_js.tpl"}

<h1>{$product.producttitle|amp}</h1>

{if $product.product_type eq "C" and $active_modules.Product_Configurator}

{include file="modules/Product_Configurator/pconf_customer_product.tpl"}

{else}

{if $config.General.ajax_add2cart eq 'Y' and $config.General.redirect_to_cart ne 'Y' and not ($smarty.cookies.robot eq 'X-Cart Catalog Generator' and $smarty.cookies.is_robot eq 'Y')}
{include file="customer/ajax.add2cart.tpl" _include_once=1}

<script type="text/javascript">
//<![CDATA[
{literal}
$(ajax).bind(
'load',
function() {
var elm = $('.product-details').get(0);
return elm && ajax.widgets.product(elm);
}
);
{/literal}
//]]>
</script>

{/if}

{capture name=dialog}

<div class="product-details">

<div class="image"{if $max_image_width gt 0} style="width: {$max_image_width}px;"{/if}>

{if $active_modules.Detailed_Product_Images and $config.Detailed_Product_Images.det_image_popup eq 'Y' and $images ne ''}

{include file="modules/Detailed_Product_Images/widget.tpl"}

{else}

<div class="image-box">
{include file="product_thumbnail.tpl" productid=$product.image_id image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.image_url id="product_thumbnail" type=$product.image_type}
</div>

{/if}

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

</div>

<div class="details"{if $max_image_width gt 0} style="margin-left: {$max_image_width}px;"{/if}>

{include file="customer/main/product_details.tpl"}

{if $active_modules.Feature_Comparison ne ""}
{include file="modules/Feature_Comparison/product_buttons.tpl"}
{/if}

</div>
<div class="clearing"></div>

</div>

{/capture}
{include file="customer/dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog noborder=true}

{/if}

{if $product_tabs}
{if $show_as_tabs}
{include file="customer/main/ui_tabs.tpl" prefix="product-tabs-" mode="inline" tabs=$product_tabs}
{else}
{foreach from=$product_tabs item=tab key=ind}
{include file=$tab.tpl}
{/foreach}
{/if}
{/if}

{if $active_modules.Product_Options and ($product_options ne '' or $product_wholesale ne '') and ($product.product_type ne "C" or not $active_modules.Product_Configurator)}
<script type="text/javascript">
//<![CDATA[
check_options();
//]]>
</script>
{/if}
__________________
http://vibratorpleasures.com
4.4.4
Reply With Quote
  #7  
Old 12-12-2011, 02:48 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Remove Send to a Friend

Hi nick,
It's no problem to remove the code, but we no longer have to do that. It is in the admin under General Settings. See this video :
http://www.youtube.com/watch?v=c4Zuvy5OyrI&feature=youtu.be
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
nick mcnair (12-12-2011)
  #8  
Old 12-12-2011, 06:19 PM
 
nick mcnair nick mcnair is offline
 

Member
  
Join Date: Dec 2011
Posts: 28
 

Default Re: Remove Send to a Friend

Thank you so much you have been a great deal of help. I have another ?

When i generate a html catalog of all pages and products the css formating and java script only stays active for like one day, is there anyway that i can keep it permanent. Its the pages i want google to pick up and index but the formating will not stay active.
__________________
http://vibratorpleasures.com
4.4.4
Reply With Quote
  #9  
Old 12-12-2011, 06:36 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default Re: Remove Send to a Friend

Do not use the html catalog - this is a relic from 15 years ago and not needed at all. Use either the build in Clean URLs or CDSEO
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #10  
Old 12-12-2011, 09:43 PM
 
nick mcnair nick mcnair is offline
 

Member
  
Join Date: Dec 2011
Posts: 28
 

Default Re: Remove Send to a Friend

dont the search engines like the clean html better than the dynamic .php files?
__________________
http://vibratorpleasures.com
4.4.4
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 09:16 AM.

   

 
X-Cart forums © 2001-2020