Jump to content

Recommended Posts

Всем привет!

Такая проблема, необходимо выгрузить в Яндекс Карточку модели, но в стандартной выгрузке (yandex.php) отсутствуют
Элементы yml_catalog и vendor
Элемент categories
Элемент models
Элемент barcode
Элемент param
Элемент pictureUrl

Добавить то их можно, но какие переменныев них вписывать непонятно ((

Помогите пожалуйста!

Link to post
Share on other sites
  • 1 month later...

Я столкнулся с похожей проблемой

Для реализации тега param я в файле yandex.php после строк

print "<name>".htmlspecialchars($p->product_name).($p->variant_name?' '.htmlspecialchars($p->variant_name):'')."</name>
<description>".htmlspecialchars(strip_tags($p->annotation))."</description>
";



я добавил ещё такой код

// Характеристикиif ($p->features){  foreach ($p->features as $f){    print "<param name=".htmlspecialchars($f->name).">".htmlspecialchars($f->value)."</param>";    }}


Но никаких param-ов не выводится Ж8-(

В чём ошибка?
Link to post
Share on other sites

P.S. Этот вышеприведённый код сделал по аналогии с product.tpl:

{if $product->features}	<!-- Характеристики товара -->	<h2>Характеристики</h2>	<ul class="features">	{foreach $product->features as $f}	<li>		<label>{$f->name}</label>		<span>{$f->value}</span>	</li>	{/foreach}	</ul>	<!-- Характеристики товара (The End)-->	{/if}


Help anybody!!!
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...