| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
how to get 4 products a row on products.tpl? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
![]() Hi,
I bought a pure css skin and now I'm kind of lost as to how to do this. Can anyone understand my products.tpl now? How can I do 5 products in a row? thanks! {* $Id: products.tpl,v 1.1.2.31 2008/04/17 05:46:15 max Exp $ *} {if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y' && $products_has_fclasses} {include file="modules/Feature_Comparison/compare_selected_button.tpl"} {include file="modules/Feature_Comparison/products_check_js.tpl"} {/if} {if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")} {include file="customer/main/products_t.tpl" products=$products} {else} {if $products} {section name=product loop=$products} {capture name=dialog} {assign var="discount" value=0} <div class="products_container">{* Container *} <div class="products_left_col">{* Left Column *} <a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}">{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> {if $active_modules.Special_Offers ne "" and $products[product].have_offers} {include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]} {/if} {** JB EgoodsLocalUpload *} {if $products[product].esdlu_filetype ne ""} {include file="customer/main/esdlu_filetypes.tpl" filetypeval=$products[product].esdlu_filetype} {/if} {** end JB EgoodsLocalUpload *} <br /> <a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}">{$lng.lbl_see_details}</a> {if $active_modules.Feature_Comparison ne '' && $products[product].fclassid > 0 && $printable ne 'Y'} <br /> {include file="modules/Feature_Comparison/compare_checkbox.tpl" id=$products[product].productid} {/if} </div>{* /Left Column *} <div class="products_right_col">{* Right Column *} <div>{$products[product].descr|truncate:300:"...":true}</div> <br /> {if $config.Appearance.display_productcode_in_list eq "Y" and $products[product].productcode ne ""} <label>{$lng.lbl_sku}</label> <div class="right">{$products[product].productcode}</div> <br class="clearboth" /> <!--[if IE 6]><br class="clearboth_ie" /><![endif]--> {/if} {if $products[product].product_type eq "C"} {include file="buttons/details.tpl" href="product.php?productid=`$products[product].productid`&cat=`$cat`&page=`$navigation_page`"} {else} {if $active_modules.Subscriptions ne "" and ($products[product].catalogprice gt 0 or $products[product].sub_priceplan gt 0)} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if ($config.General.unlimited_products ne "Y" && ($products[product].avail le 0 or $products[product].avail lt $products[product].min_amount) && $products[product].variantid) or ($products[product].taxed_price ne 0 or ($products[product].variantid && $products[product].variants_has_price) or ($active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""))} {if $products[product].taxed_price ne 0 or ($products[product].variantid && $products[product].variants_has_price)} {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} <label>{$lng.lbl_market_price}</label> <div class="right">{include file="currency.tpl" value=$products[product].list_price}</div> <br class="clearboth" /> <!--[if IE 6]><br class="clearboth_ie" /><![endif]--> {/if} {/if} <label>{$lng.lbl_our_price}</label> <span class="product_price">{include file="currency.tpl" value=$products[product].taxed_price}{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price}</span>{if $discount gt 0}{if $config.General.alter_currency_symbol ne ""},{/if} {$lng.lbl_save_price} {$discount}%{/if} {if $products[product].taxes} {include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes is_subtax=true} {/if} {/if} <br class="clearboth" /> <!--[if IE 6]><br class="clearboth_ie" /><![endif]--> {if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""} {include file="modules/Special_Offers/customer/product_special_price.tpl" product=$products[product]} {/if} {else} {$lng.lbl_enter_your_price} {/if} {/if} {*** Uncomment it if you need 'Buy Now' button *** {if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl" product=$products[product]} {/if} *** Uncomment it if you need 'Buy Now' button ***} {/if} </div>{* /Right Column *} <br class="clearboth" /> </div>{* /Container *} {/capture} {include file="dialog.tpl" title=$products[product].product content=$smarty.capture.dialog extra='width="100%"'} {/section} {if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y' && $products_has_fclasses} {include file="modules/Feature_Comparison/compare_selected_button.tpl" no_form=true} {/if} {else} {capture name=dialog} {$lng.txt_no_products_found} {/capture} {include file="dialog_blank.tpl" title=$lng.txt_no_products_found content=$smarty.capture.dialog extra='width="100%"'} {/if} {/if}
__________________
CDSEO PRO 4.1.11 PRO Dynamic images by xcartmod.com X-Cart CSSTemplate/Skin for v4.1.11 PRO |
|||||||
|
|||
X-Cart forums © 2001-2020
|