X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Extra Fields?? (https://forum.x-cart.com/showthread.php?t=7412)

Emerson 05-03-2004 06:32 AM

Change this...
Code:

{* $Id: product.tpl,v 1.78.2.4 2004/02/27 13:47:00 mclap Exp $ *}
{include file="check_product_options_js.tpl"}
{if $product.product_type eq "C"}
{include file="modules/Product_Configurator/pconf_customer_product.tpl"}
{else}
{capture name=dialog}
<table border=0 width=100% border=1>
<form name=orderform method=post action="cart.php?mode=add" OnSubmit="javascript:if (!FormValidation()) return false">
<tr>
<td valign=top align=left rowspan=2 width=100>
{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}

 
{section name=product loop=$products}
{$products[product].param00}
{/section}</td>
<td valign=top>
{$product.descr}


to this...
Code:

{* $Id: product.tpl,v 1.78.2.4 2004/02/27 13:47:00 mclap Exp $ *}
{include file="check_product_options_js.tpl"}
{if $product.product_type eq "C"}
{include file="modules/Product_Configurator/pconf_customer_product.tpl"}
{else}
{capture name=dialog}
<table border=0 width=100% border=1>
<form name=orderform method=post action="cart.php?mode=add" OnSubmit="javascript:if (!FormValidation()) return false">
<tr>
<td valign=top align=left rowspan=2 width=100>
{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}

 
{$product.param00}
</td>
<td valign=top>
{$product.descr}


Simply use {$product.param00} instead of

{section name=product loop=$products}
{$products[product].param00}
{/section}

HTH ;)

spoonernyc 05-03-2004 06:56 AM

Wow man... you really are too good to me :)
pulling me up from the depths of despair...

thanks so much

now on to the HTML issue and everything will be hunky-dory


JS

Emerson 05-03-2004 07:34 AM

I would just open a support ticket with x-cart and ask them.
They should be able to help!

I have tryed a couple of things but no luck!

Emerson 05-04-2004 09:03 AM

Quote:

now on to the HTML issue and everything will be hunky-dory

It seems that HTML has been disabled on a few things...

http://forum.x-cart.com/viewtopic.php?t=10054


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.