| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
change thumbnail to detailed products.tpl | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() folks... trying to change the thumbnail to detailed image.. not really working. anyone?
here is the original: {* $Id: products.tpl,v 1.1.2.36 2008/08/07 06:35:10 ferz Exp $ *} {if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y' && $products_has_fclasses && $js_enabled} {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} {if $smarty.section.product.first} <br /> {/if} {assign var="discount" value=0} <table width="100%"> <tr> <td class="PListImgBox"> <div class="PListImgBox"> <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 "" && $products[product].have_offers && $usertype eq 'C'} {include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]} {/if} </div> {if $printable neq 'Y'} <a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}" style="TEXT-DECORATION: underline;">{$lng.lbl_see_details}</a> {/if} {if $active_modules.Feature_Comparison ne '' && $products[product].fclassid > 0 && $printable ne 'Y'} <br /> <br /> <div align="center"> {include file="modules/Feature_Comparison/compare_checkbox.tpl" id=$products[product].productid} </div> {/if} </td> <td valign="top"> <a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}"><font class="ProductTitle">{$products[product].product}</font></a> {if $config.Appearance.display_productcode_in_list eq "Y" and $products[product].productcode ne ""} <br /> {$lng.lbl_sku}: {$products[product].productcode} {/if} <font size="1"> <br /> <br /> {$products[product].descr|truncate:300:"...":true} <br /> </font> <hr class="PListLine" size="1" /> {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} <font class="MarketPrice">{$lng.lbl_market_price}: <s> {include file="currency.tpl" value=$products[product].list_price} </s></font><br /> {/if} {/if} {if $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""} <s> {/if} <font class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].taxed_price}</font><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 $active_modules.Special_Offers ne "" and $products[product].use_special_price ne ""} </s> {/if} {if $products[product].taxes} <br /> <div class="PListTaxBox">{include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes is_subtax=true}</div> {/if} {/if} {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} <font class="ProductPrice">{$lng.lbl_enter_your_price}</font> {/if} {/if} {if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl" product=$products[product]} {/if} {/if} </td> </tr> </table> <br /> <br /> <br /> {/section} {if $active_modules.Feature_Comparison ne '' && $products && $printable ne 'Y' && $products_has_fclasses && $js_enabled} {include file="modules/Feature_Comparison/compare_selected_button.tpl" no_form=true} {/if} {else} {$lng.txt_no_products_found} {/if} {/if} ---------------- i've been trying to call the detailed image with this: {include file="modules/Detailed_Product_Images/product_images_main.tpl" } however nothing displays... ANYONE? regards garz 4.1/php/linux
__________________
xcart ver 4.xx/linux/php |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Quote:
Try call with this: PHP Code:
|
|||||||||
#3
|
|||||||
|
|||||||
![]() Yurij --nope.. doesnt work..
Anyone have any other suggestions? garz
__________________
xcart ver 4.xx/linux/php |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Quote:
Module "Detailed Product Images" is enabled? |
|||||||||
#5
|
|||||||
|
|||||||
![]() yes -- im pulling it in at other places (detailed images).
__________________
xcart ver 4.xx/linux/php |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Can you be more clear? Are you trying to use 1 specific detailed product image in place of a thumbnail in your category product listings?
If so, could you use the regular product image instead? The reason I ask is that it is probably much easier to call, and in the event the product has no detail images it should not throw an error.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#7
|
|||||||
|
|||||||
![]() yes, on the cat list, featured list etc, i want the detailed image used instead of the thumbnail.. all of our products have a thumbnail and detailed images..
and i cannot get it to work! ANYONE? regards garz 4.11/php/mySQL
__________________
xcart ver 4.xx/linux/php |
|||||||
#8
|
|||||||||
|
|||||||||
![]() Do your products have a product image (not just a thumbnail)? The problem with trying to use detail product images is that there can be more than one, but there is only one product image.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#9
|
|||||||
|
|||||||
![]() no-- only thumbnail and detailed images..
Should we have product image as well??? this will be a pain in the a$$ to import now.. thanks in advance.. garZ
__________________
xcart ver 4.xx/linux/php |
|||||||
#10
|
|||||||||
|
|||||||||
![]() Well, if you had product images all you would probably need to do is replace
in products_t.tpl ... <a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_p age}">{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$products[product].tmbn_x|default:$config.Appearance.thumbnail_width image_y=$products[product].tmbn_y product=$products[product].product tmbn_url=$products[product].tmbn_url}</a> or products.tpl (depending on which you use)... <a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_p age}{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> with.... {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"} (please note: I do not know if this will work as I have not tried it) I'm still wondering why you would want a full size image on your category pages.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
|
|||
X-Cart forums © 2001-2020
|