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)
-   -   Add to cart in Product list? (https://forum.x-cart.com/showthread.php?t=25066)

balinor 09-22-2006 12:37 PM

Re: Add to cart in Product list?
 
customer/main/products_t.tpl if you are using producst in multiple columns, customer/main/products.tpl if you are using one per row.

brucew 09-22-2006 01:59 PM

Re: Add to cart in Product list?
 
I spoke with another webmaster, and it seems that I am missing something.

The original designer of my layout seems to have removed the prices. Something to do with font class="MarketPrice"?

balinor 09-22-2006 02:03 PM

Re: Add to cart in Product list?
 
The font tag has nothing to do with the display of the price, just how it looks.

Here's the easy way to solve this:

1. Rename your current products_t.tpl to products_t.tpl.old via FTP

2. Copy and paste the one from skin_original into the same folder as the above template, again via FTP. If you see the price, re-do your edits to that template.

brucew 09-22-2006 02:52 PM

Re: Add to cart in Product list?
 
...THANK YOU BALINOR!!!!

It's damn near perfect!

Code:

{* $Id: products_t.tpl,v 1.10.2.10 2005/10/17 07:54:19 max Exp $ *}
<table border="0" width="100%" cellpadding="0" cellspacing="0"><tr><td class="TableThumbnailBorder">

<table border="0" width="100%" cellpadding="5" cellspacing="1">

{math equation="floor(100/x)" x=$config.Appearance.products_per_row assign="width"}

{section name=product loop=$products}
{assign var="discount" value=0}

{if %product.index% is div by $config.Appearance.products_per_row}
<tr>
{assign var="cell_counter" value=0}
{/if}

{math equation="x+1" x=$cell_counter assign="cell_counter" }

<td align="center" valign="top" width="{$width}%" class="DialogBox">
<br>
{*$lng.lbl_sku*} {*$products[product].productcode*}
{if $active_modules.Special_Offers ne "" and $products[product].have_offers}
{include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]}
{else}
<TABLE cellpadding="3" cellspacing="0" border="0"><TR><TD height="100">
<A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}">{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url}</A><BR>
</TD></TR>
</TABLE>
{/if}
<A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}">{$lng.lbl_see_details}</A><BR><BR>
{if $active_modules.Subscriptions ne "" and $products[product].catalogprice}
{include file="modules/Subscriptions/subscription_info_inlist.tpl"}
{else}
{if $products[product].taxed_price ne 0}
{if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price}
{math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%3.0f" assign=discount}
{if $discount gt 0}
<FONT class="MarketPrice">{$lng.lbl_market_price}: <S>
{include file="currency.tpl" value=$products[product].list_price}
</S></FONT><BR>
{/if}
{/if}
<FONT class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price}</FONT><BR><FONT class="MarketPrice">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}</FONT>{if $discount gt 0}{if $config.General.alter_currency_symbol ne ""}, {/if}{$lng.lbl_save_price} {$discount}%{/if}
{if $products[product].taxes}<BR>{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes}{/if}
{else}
<FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT>
{/if}
{/if}
{if $active_modules.Feature_Comparison ne '' && $products[product].fclassid > 0}
<BR>
{include file="modules/Feature_Comparison/compare_checkbox.tpl" id=$products[product].productid}
{/if}
{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}
</TD>
{capture name=prod_index}
{math equation="index+x+1" index=%product.index% x=$config.Appearance.products_per_row}
{/capture}
{if $smarty.capture.prod_index is div by $config.Appearance.products_per_row }
</TR>
{/if}
{/section}
{if $cell_counter lt $config.Appearance.products_per_row}
{section name=rest_cells loop=$config.Appearance.products_per_row start=$cell_counter}
<TD class="DialogBox">&nbsp;</TD>
{/section}
</TR>
{/if}
</TABLE>
</TD></TR></TABLE>
{if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y'}
{include file="modules/Feature_Comparison/compare_selected_button.tpl"}
{/if}



All times are GMT -8. The time now is 02:54 PM.

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