Jump to content
dashmir

Produkt Title ergänzen

Recommended Posts

Hallo Zusammen

ich möchte gerne bei den Produkt-Titel den Brand-Namen noch vorne hinzufügen und diesen Brand-Namen Fett formatieren.

image.png.1dc69d38387ac8fcd44fb97d03cbff56.png

Als Beispiel: Banana Moon - HAILEY ARLIGTO

Der Brand ist im Produkt hinterlegt, also wird es wahrscheinlich eine Variable sein, die hinzugefügt werden muss.

Im welchem File finde ich genau diesen Eintrag und weiss jemand auch welche Variable dort hingehört oder wo ich die Variable finde?

 

Share this post


Link to post
Share on other sites

Welche PS-Verson, welches Template?

Beim 1.6.er Shop ließt du die Variablen mit der Smarty.Debug-Console heraus.

Grüsse
Whiley

Share this post


Link to post
Share on other sites

die PS version ist 1.7.3 und das Template ist Surf Summer Beach - Prestashop Responsive Theme

 

also ich habe die Console offen und sehe folgendes:

image.thumb.png.6856387970594d4a25b945260b7821d1.png

 

Wie ist die Variable aufgebaut und vor allem wo kommt diese Variable genau hin?

Hier der Code der Datei product-details.tpl.

<div class="tab-pane fade{if !$product.description} in active{/if}"
     id="product-details"
     data-product="{$product.embedded_attributes|json_encode}"
     role="tabpanel"
  >
  {block name='product_reference'}
    {if isset($product_manufacturer->id)}
      <div class="product-manufacturer">
        {if isset($manufacturer_image_url)}
          <a href="{$product_brand_url}">
            <img src="{$manufacturer_image_url}" class="img img-thumbnail manufacturer-logo" alt="{$product_manufacturer->name}">
          </a>
        {else}
          <label class="label">{l s='Brand' d='Shop.Theme.Catalog'}</label>
          <span>
            <a href="{$product_brand_url}">{$product_manufacturer->name}</a>
          </span>
        {/if}
      </div>
    {/if}
    {if isset($product.reference_to_display)}
      <div class="product-reference">
        <label class="label">{l s='Reference' d='Shop.Theme.Catalog'} </label>
        <span itemprop="sku">{$product.reference_to_display}</span>
      </div>
    {/if}
  {/block}

  {block name='product_quantities'}
    {if $product.show_quantities}
      <div class="product-quantities">
        <label class="label">{l s='In stock' d='Shop.Theme.Catalog'}</label>
        <span data-stock="{$product.quantity}" data-allow-oosp="{$product.allow_oosp}">{$product.quantity} {$product.quantity_label}</span>
      </div>
    {/if}
  {/block}

  {block name='product_availability_date'}
    {if $product.availability_date}
      <div class="product-availability-date">
        <label>{l s='Availability date:' d='Shop.Theme.Catalog'} </label>
        <span>{$product.availability_date}</span>
      </div>
    {/if}
  {/block}

  {block name='product_out_of_stock'}
    <div class="product-out-of-stock">
      {hook h='actionProductOutOfStock' product=$product}
    </div>
  {/block}

  {block name='product_features'}
    {if $product.grouped_features}
      <section class="product-features">
        <h3 class="h6">{l s='Data sheet' d='Shop.Theme.Catalog'}</h3>
        <dl class="data-sheet">
          {foreach from=$product.grouped_features item=feature}
            <dt class="name">{$feature.name}</dt>
            <dd class="value">{$feature.value|escape:'htmlall'|nl2br nofilter}</dd>
          {/foreach}
        </dl>
      </section>
    {/if}
  {/block}

  {* if product have specific references, a table will be added to product details section *}
  {block name='product_specific_references'}
    {if isset($product.specific_references)}
      <section class="product-features">
        <h3 class="h6">{l s='Specific References' d='Shop.Theme.Catalog'}</h3>
          <dl class="data-sheet">
            {foreach from=$product.specific_references item=reference key=key}
              <dt class="name">{$key}</dt>
              <dd class="value">{$reference}</dd>
            {/foreach}
          </dl>
      </section>
    {/if}
  {/block}

  {block name='product_condition'}
    {if $product.condition}
      <div class="product-condition">
        <label class="label">{l s='Condition' d='Shop.Theme.Catalog'} </label>
        <link itemprop="itemCondition" href="{$product.condition.schema_url}"/>
        <span>{$product.condition.label}</span>
      </div>
    {/if}
  {/block}
</div>

 

 

 

 

Share this post


Link to post
Share on other sites

Dann schau dir in deinem Template an, wo die 2. Produktspalte angesprochen wird. Dort ist die Variable 

{$product_manufacturer->name}

an geeigneter Stelle vor dem Artikelnamen einzufügen. Der von dir zitierte Code enthält keinen Artikelnamen, sondern fängt mit der Artikelnummer an.

Share this post


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.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More