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

Product.tpl code question

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 01-17-2009, 08:34 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Product.tpl code question

Post your new code... the whole thing.
__________________
xcart 5.1.2
Reply With Quote
  #12  
Old 01-17-2009, 10:22 AM
 
dillion dillion is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 53
 

Default Re: Product.tpl code question

My code has to many characters to post here. The code is about 13k and the limit is 10k. How can I post the entire code.
__________________
X-CART GOLD 4.1.7
UNIX
Reply With Quote
  #13  
Old 01-17-2009, 12:13 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Product.tpl code question

guess you can;t. just the section with the code in question then.
__________________
xcart 5.1.2
Reply With Quote
  #14  
Old 01-17-2009, 12:21 PM
 
dillion dillion is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 53
 

Default Re: Product.tpl code question

product.tpl
------------
{* $Id: product.tpl,v 1.147 2006/04/08 06:41:56 max Exp $ *}
{include file="main/include_js.tpl" src="main/popup_image.js"}
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/product_offers_short_list.tpl" product=$product}
{/if}
{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 width="100%">
<tr>
<td class="PImgBox" rowspan="2">

{** Dynamic Images - Tela Firma **}
{if $active_modules.Dynamic_Images}
{include file="modules/Dynamic_Images/product_image.tpl}
{else}
{/if}
{if $product.free_shipping eq "Y"} {include file="price-free.tpl"}
<br />
{if $active_modules.Detailed_Product_Images ne "" && $config.Detailed_Product_Images.det_image_popup eq 'Y' && $images ne '' && $js_enabled eq 'Y'}
{include file="modules/Detailed_Product_Images/popup_image.tpl"}
{elseif $product.force_image_type eq 'W' && $product.variantid}
{include file="product_thumbnail.tpl" productid=$product.variantid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="W"}&nbsp;
{else}
{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" type="P"}&nbsp;
{/if}

{/if}
{** /Dynamic Images - Tela Firma **}
{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}
</td>
<td valign="top">
{include file="modules/Vote_A_Sale/store/product.tpl"}
{* SAFETYNET CREATE-A-SALE *}
{include file="modules/Create_A_Sale/store/product.tpl"}
{* END SAFETYNET *}
<span>{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if}</span>
__________________
X-CART GOLD 4.1.7
UNIX
Reply With Quote
  #15  
Old 01-17-2009, 10:05 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Product.tpl code question

{if $product.free_shipping eq "Y"} {include file="price-free.tpl"}

this mcode needs to be closed with an {/if}
__________________
xcart 5.1.2
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 03:27 PM.

   

 
X-Cart forums © 2001-2020