kkim Posted April 27, 2012 Share Posted April 27, 2012 product.tpl {if $packItems|@count > 0} <h3>{l s='Pack content'}</h3> {foreach from=$packItems item=packItem} <div class="pack_content"> <a href="{$link->getProductLink($packItem.id_product, $packItem.link_rewrite, $packItem.category)}">{$packItem.name|escape:'htmlall':'UTF-8'}</a> x {$packItem.pack_quantity} <p>{$packItem.description_short}</p> </div> {/foreach} {/if} $packItem.name - pack content name $packItem.pack_quantity - packed quantity how about image? please tell me ~~ <img src= ??? Link to comment Share on other sites More sharing options...
phrasespot Posted May 1, 2012 Share Posted May 1, 2012 for each packItem you get the following (in 1.4.8.0, and possibly earlier). You will need to make up the image link yourself from that info. id_product id_supplier id_manufacturer id_tax_rules_group id_category_default id_color_default on_sale online_only ean13 upc ecotax quantity minimal_quantity price wholesale_price unity unit_price_ratio additional_shipping_cost reference supplier_reference location width height depth weight out_of_stock quantity_discount customizable uploadable_files text_fields active available_for_order condition show_price indexed cache_is_pack cache_has_attachments cache_default_attribute date_add date_upd id_lang description description_short link_rewrite meta_description meta_keywords meta_title name available_now available_later id_image legend rate category_default pack_quantity allow_oosp id_product_attribute category link attribute_price price_tax_exc price_without_reduction reduction specific_prices features attachments pack packItems nopackprice Link to comment Share on other sites More sharing options...
rob84 Posted February 8, 2014 Share Posted February 8, 2014 product.tpl $packItem.name - pack content name $packItem.pack_quantity - packed quantity how about image? please tell me ~~ <img src= ??? try this: <img src="{$link->getImageLink($product->link_rewrite, $packItem.id_image, 'small')}" alt="{$packItem.name|escape:'htmlall':'UTF-8'}" title="{$packItem.name|escape:'htmlall':'UTF-8'}"> change 'small' size to home, medium etc... to fit your need Link to comment Share on other sites More sharing options...
vekia Posted February 8, 2014 Share Posted February 8, 2014 try this: <img src="{$link->getImageLink($product->link_rewrite, $packItem.id_image, 'small')}" alt="{$packItem.name|escape:'htmlall':'UTF-8'}" title="{$packItem.name|escape:'htmlall':'UTF-8'}"> change 'small' size to home, medium etc... to fit your need for what ps version is your solution? im asking because this thread is a bit old, so i just want to ask before someone will try to use this Link to comment Share on other sites More sharing options...
rob84 Posted February 13, 2014 Share Posted February 13, 2014 for what ps version is your solution? im asking because this thread is a bit old, so i just want to ask before someone will try to use this Sorry, I was reading phrasespot post about 1.4.8.0 . It works for me with PS: 1.4.7.3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now