0.00
Rating
0.00
Power
Общий форумМодуль Advanced Search 4 (7)
Post #411
28 March 2015, 16:49
admin , На какую версию подойдет?
Общий форумКак вывести в карточке товара другие товары с той же моделью(характеристикой (3)
Post #407
13 March 2015, 14:28
Ну и в самом шаблоне карточки товара добавил следующий код product.tpl:
<!--productmodel -->
			<section class="page-product-box">
				<h3 class="page-product-heading">{l s='Запчасти:'}</h3>
				<div class="block products_block accessories-block clearfix">
					<div class="block_content">
						<div class="block_content">
							{foreach from=$productmodel item=productmodels name=productmodel_list}
								{if ($productmodels.allow_oosp || $productmodels.quantity_all_versions > 0 || $productmodels.quantity > 0) && $productmodels.available_for_order && !isset($restricted_country_mode)}
									{assign var='productmodelsLink' value=$link->getProductLink($productmodels.id_product, $productmodels.link_rewrite, $productmodels.category)}
									<p>
										<div class="s_title_block">
											<h5 class="product-name">
												<a href="{$productmodelsLink|escape:'html':'UTF-8'}">
													{$productmodels.name|truncate:100:'...':true|escape:'html':'UTF-8'}
												</a>
											</h5>
											{if $productmodels.show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
											<span class="price">
												{if $priceDisplay != 1}
												{displayWtPrice p=$productmodels.price}{else}{displayWtPrice p=$productmodels.price_tax_exc}
												{/if}
											</span>
											{/if}
										</div>
										<div class="clearfix" style="margin-top:5px">
											{if !$PS_CATALOG_MODE && ($productmodels.allow_oosp || $productmodels.quantity > 0)}
												<div class="no-print">
													<a class="exclusive button ajax_add_to_cart_button" href="{$link->getPageLink('cart', true, NULL, "qty=1&id_product={$productmodels.id_product|intval}&token={$static_token}&add")|escape:'html':'UTF-8'}" data-id-product="{$productmodels.id_product|intval}" title="{l s='Add to cart'}">
														<span>{l s='В корзину'}</span>
													</a>
												</div>
											{/if}
										</div>
									</p>
								{/if}
							{/foreach}
						</div>
					</div>
				</div>
			</section>
			<!--end Accessories -->

Но результат пустой :( Не могу понять что я делаю нет, профи помогит плиз.