Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Акции как добавить ссылку


Recommended Posts

Всем привет. Как и где открыть файл акции, чтобы там внутри этого файла добавить ссылку на категорию одну?)) 

Link to post
Share on other sites

Товары акций /catalog/view/theme/default/template/product/special.twig

 

  • +1 1
Link to post
Share on other sites

чета я обновлял кеш и тд ну текст не показывается вот сам файл этот акции

{{ header }} {% set col = column_left ? 9 : 12 %} {% set col = column_right ? col - 3 : col %}
      <!-- Main :: Start-->
      <main class="main">
        <!-- Breadcrumbs :: Start-->
        <div class="breadcrumbs">
          <div class="container-fluid">
            <ul class="breadcrumbs__menu">
			{% for i,breadcrumb in breadcrumbs %}
				{% if (i + 1 < (breadcrumbs)|length) %} 
				<li><a class="breadcrumbs__link" href="{{ breadcrumb['href'] }}"><span>{{ breadcrumb['text'] }}</span></a></li>
				{% else %} 
				<li>{{ breadcrumb['text'] }}</li>
				{% endif %}
			{% endfor %}
            </ul>
          </div>
        </div>
        <!-- Breadcrumbs :: End-->
		{{ content_top }}
	   <!-- Catalog :: Start-->
        <div class="catalog catalog--manufacturer">
          <div class="container-fluid">
            <h1 class="catalog__heading">{{ heading_title }}</h1>
            <div class="row">
			{{ column_left ? '<div id="column-left" class="col-xl-3">' ~ column_left ~ '</div>' : ''}}
			<div class="col-xl-{{ col }}">
		{% if (products) %} 
				<!-- Options :: Start-->
				<div class="options options--desktop">
				{% if (category_sorts) %}
				  <div class="options__type js-options">
					<button class="options__link options__link--arrow js-options-btn">{{ text_sort }} {{ sort_title }}</button>
					<ul class="options__dropdown">
					{% for sortData in sorts %}
					{% if (sortData['value'] == sort ~ '-' ~ order) %}
					  <li class="js-options-item is-active" data-href="{{ sortData['href'] }}">{{ text_sort }} {{ sortData['text'] }}</li>
					  {% else %} 
					  <li class="js-options-item" data-href="{{ sortData['href'] }}">{{ text_sort }} {{ sortData['text'] }}</li>
					  {% endif %}
					{% endfor %}
					</ul>
				  </div>
				  {% endif %} 
				  {% if (category_limits) %} 
				  <div class="options__display js-options">
					<button class="options__btn options__btn--arrow js-options-btn">{{ text_limit }} {{ limit }}</button>
					<ul class="options__dropdown">
					{% for limits in limits %} 
					{% if (limits['value'] == limit) %} 
						<li class="js-options-item is-active" data-href="{{ limits['href'] }}">{{ text_limit }} {{ limits['text'] }}</li>
					{% else %} 
						<li class="js-options-item" data-href="{{ limits['href'] }}">{{ text_limit }} {{ limits['text'] }}</li>
					{% endif %} 
					{% endfor %} 
					</ul>
				  </div>
				  {% endif %}
				  <div class="options__view js-options">
					<button class="options__btn js-options-btn"><span class="icon-view-{{ view }}"></span></button>
					<ul class="options__dropdown">
					  {% if ('grid' in viewLayer) %}
					  	<li class="js-options-item is-active" data-option="{{ viewLayer }}"><span class="icon-view-grid"></span></li>
					  {% else %}
					  	<li class="js-options-item" data-option="grid_{{ viewSub }}"><span class="icon-view-grid"></span></li>
					  {% endif %}
					  
					  <li class="js-options-item {% if (viewLayer == 'inline') %} is-active {% endif %}" data-option="inline"><span class="icon-view-inline"></span></li>
					  <li class="js-options-item {% if (viewLayer == 'micro') %} is-active {% endif %}" data-option="micro"><span class="icon-view-micro"></span></li>
					</ul>
				  </div>
				</div>
				<div class="options options--mobile">
				  <div class="row">
					<div class="col-sm-6">
					  <div class="options__type js-options">
						<button class="options__btn options__btn--arrow js-options-btn">{{ text_sort }} {{ sort_title }}</button>
						<ul class="options__dropdown">
						{% for sortData in sorts %}
						{% if (sortData['value'] == sort ~ '-' ~ order) %}
						  <li class="js-options-item is-active" data-href="{{ sortData['href'] }}">{{ text_sort }} {{ sortData['text'] }}</li>
						  {% else %} 
						  <li class="js-options-item" data-href="{{ sortData['href'] }}">{{ text_sort }} {{ sortData['text'] }}</li>
						  {% endif %}
						{% endfor %}
						</ul>
					  </div>
					</div>
				  </div>
				</div>
				<!-- Options :: End-->
			
				<div id="mainContainer">
					{{ productsview }}
				</div>
				
				{% if (pagination) %}
				<div class="container-pagination">
					{{ pagination }}
				</div>
				{% endif %} 
			{% endif %}
			</div>
			{{ column_right ? '<div id="column-right" class="col-xl-3">' ~ column_right ~ '</div>' : ''}}
            </div>
          </div>
        </div>
        <!-- Page :: End-->
		{{ content_bottom }}
      </main>
      <!-- Main :: End-->
	 
{{ footer }}
{% if schema %} 
<!-- Schema Org :: Start-->
<script type="application/ld+json">
          {
            "@context": "http://schema.org",
            "@type": "BreadcrumbList",
            "itemListElement": [
			{% for i,breadcrumb in breadcrumbs %}
			{
              "@type": "ListItem",
              "position": {{ i + 1 }},
              "item": {
                "@id": "{{ breadcrumb['href'] }}",
                "name": "{{ breadcrumb['text'] }}"
              }
            }{% if (i + 1 < breadcrumbs|length) %},{% endif %}
			{% endfor %}
			]
          }
</script>
 <!-- Schema Org :: End-->
{% endif %}
</body></html>

Добавляю после 

{{ content_top }}
<a href="">Текст1</a>

ну ссылки нет в акции, где нужно добавить правильно ссылку?

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.