Add product type under vendor on product page

Add product type under vendor on product page

cultcollectable
Tourist
3 0 1

Hello, id like to be able to add product type under vendor on the product page of my site. It seems like such a simple thing not to be there but I cant find any options anywhere so I'm assuming its custom code somewhere.  Any help would be greatly appreciated 🙂 

 

Site is - cultcollectables.com

 

 

Replies 3 (3)

EcomGraduates
Shopify Partner
826 70 120

Find the file responsible for your product page layout. This is usually named something like product-template.liquid or found under the sections folder as product.liquid.

 

something like this:

 

<p>Vendor: {{ product.vendor }}</p>

 

Add the product type below the vendor information. For example:

 

 

<p>Vendor: {{ product.vendor }}</p>
<p>Type: {{ product.type }}</p>

 

 


 If this fixed your issue, likes and accepting as a solution are highly appreciated
|  Build an online presence with our custom-built Shopify Theme: EcomifyTheme
|  Check out our reviews: Trustpilot Reviews
|  We are Shopify Partners: EcomGraduates Shopify Partner



cultcollectable
Tourist
3 0 1

The only one i can find is product-item.liquid and this is the section with vendor in

 

{%- capture vendor -%}
{%- if settings.show_vendor -%}
{%- assign vendor_handle = product.vendor | handle -%}
{%- assign collection_for_vendor = collections[vendor_handle] -%}

{%- unless collection_for_vendor.empty? -%}
<a class="product-item__vendor link" href="{{ collection_for_vendor.url }}">{{ product.vendor }}</a>
{%- else -%}
<a class="product-item__vendor link" href="{{ product.vendor | url_for_vendor }}">{{ product.vendor }}</a>
{%- endunless -%}
{%- endif -%}
{%- endcapture -%}

cultcollectable
Tourist
3 0 1

I've sorted it, file i needed was product-meta.liquid - new code below 🙂

 

{%- if block.settings.show_vendor or block.settings.show_sku -%}
<div class="product-meta__reference">
{%- if block.settings.show_vendor -%}
{%- assign vendor_handle = product.vendor | handle -%}
{%- assign collection_for_vendor = collections[vendor_handle] -%}

{%- unless collection_for_vendor.empty? -%}
<a class="product-meta__vendor link link--accented" href="{{ collection_for_vendor.url }}">{{ product.vendor }}</a>
– <a class="product-meta__vendor link link--accented" href="{{ product.type | url_for_type }}">{{ product.type }}</a>

{%- else -%}
<a class="product-meta__vendor link link--accented" href="{{ product.vendor | url_for_vendor }}">{{ product.vendor }}</a>
– <a class="product-meta__vendor link link--accented" href="{{ product.type | url_for_type }}">{{ product.type }}</a>
{%- endunless -%}
{%- endif -%}

{%- if block.settings.show_sku -%}
<span class="product-meta__sku" {% if selected_variant.sku == blank %}style="display: none"{% endif %}>
{{- 'product.general.sku' | t -}} <span class="product-meta__sku-number">{{ selected_variant.sku }}</span>
</span>
{%- endif -%}
</div>
{%- endif -%}