Strange line item properties

Solved
Highlighted

We have recently noticed that on some of orders, the items are marked with line item properties that say "_Customer Tag: retail" It doesn't happen on every order, but for those that it does happen on, this line is printed on the invoices that we pack with our orders and we would really like to remove this.

tag.PNG

 

Has anyone else experienced this or can someone help us identify what is causing this?

0 Likes
Highlighted
Shopify Partner
209 24 29

that means that for some reason, your storefront is adding those properties to the products. Are you using the properties for something right now? If not, a quick fix would be to change the invoice template to not add the line item properties. 

 

If you want we could have a deeper look for you. Just write us at info@webmefy.com and we would love to help you.

We help you achieve your Goals! Visit us on: Webmefy.com
0 Likes
Highlighted

We aren't using them, and frankly we don't know where they came from. It's possible a previous app we were using caused it. As far as we know, they are of no use to us.

0 Likes
Highlighted
Shopify Partner
209 24 29

it looks like Searchanise is adding that information. You could look for this on your product.liquid or product-template.liquid page or any other pages on your code and delete this part of the code:

 

<script>
    	SearchaniseCustomerTags = [];
	</script>
We help you achieve your Goals! Visit us on: Webmefy.com
0 Likes
Highlighted

That can't be it. We've only been using Searchnise for a short while now, but the problem seems to stem back months before we began using Searchanise.

0 Likes
Shopify Partner
209 24 29

If you can paste here the product.liquid/product-template.liquid code, would be useful to point you in the right direction

We help you achieve your Goals! Visit us on: Webmefy.com
0 Likes
Highlighted

This is our product.liquid code.

{% comment %}
  @param layout {String}
    Layout type

  @param is_product_modal {Bool}
    Is the snippet being loaded in a QuickShop

  @param hide_description {Bool}
    If true, hide the product description

  @param hover_zoom {String}
    This is the hover zoom setting, which is either 'disabled', 'separate', or 'replace'

  @param click_to_zoom {String}
    This is the click to zoom setting, which is either 'disabled', 'mobile', 'desktop', or 'always'
{% endcomment %}

{% assign enable_social_sharing = settings.product_social_sharing %}
{% assign selected_variant = product.selected_or_first_available_variant %}
{% include 'saw_variant_variables' %}
{% assign selected_image = selected_variant.image | default: product.featured_image %}
{% assign compare_at_price = WCVariantSelectedVariantComparePrice %}
{% assign price = WCVariantSelectedVariantPrice %}
{% assign sku = selected_variant.sku %}
{% assign product_available = product.available %}

{% if onboarding %}
  {% assign compare_at_price = 2999 %}
  {% assign price = 1999 %}
{% endif %}

{% assign on_sale = false %}
{% if compare_at_price > price %}
  {% assign on_sale = true %}
{% endif %}

{%
  include 'consistent-savings',
  variants: product.variants,
  on_sale: on_sale
%}

{%- capture share_buttons -%}
  {% assign social_image = false %}
  {% if product.featured_image %}
    {% assign social_image = product.featured_image | img_url: '1024x' %}
  {% endif %}
  {% assign social_url = shop.url | append: product.url %}
  {%-
    include 'share-buttons',
    snippet_title: 'general.share_buttons.title',
    social_image: social_image,
    social_title: product.title,
    social_url: social_url
  -%}
{%- endcapture  -%}

<article class="product--outer">
  {% comment %}
    Product slideshow, never moves
  {% endcomment %}
  {%
    include 'product-gallery',
    selected_image: selected_image,
    click_to_zoom: click_to_zoom,
    hover_zoom: hover_zoom,
    onboarding: onboarding
  %}
  <div class="product-main">
    <div class="product-details" data-product-details>
      {% if is_product_modal %}
        <h2 class="product-title">
          <a href="{{ product.url | within: collection }}">{{ product.title }}</a>
        </h2>
      {% else %}
        {% if template == 'index' %}
          <h2 class="product-title">
        {% else %}
          <h1 class="product-title">
        {% endif %}
          {% unless onboarding %}
            {{ product.title }}
          {% else %}
            {{ 'onboarding.product.title' | t }}
          {% endunless %}
        {% if template == 'index' %}
          </h2>
        {% else %}
          </h1>
        {% endif %}
      {% endif %}

      {% if settings.product_show_vendor and product.vendor != blank or onboarding %}
        <div class="product-vendor">
          {% unless onboarding %}
            {%- capture vendor_link -%}
              {{ product.vendor | link_to_vendor }}
            {%- endcapture -%}
            {{ 'product.general.by_vendor_html' | t: vendor_link: vendor_link }}
          {% else %}
            {{ 'onboarding.product.by_vendor' | t }}
          {% endunless %}
        </div>
      {% endif %}

      {% if settings.product_ratings_reviews %}
        <div class="product-ratings">
          <span class="shopify-product-reviews-badge" data-id="{{ product.id }}">
            <span class="spr-badge">
              <span class="spr-starrating spr-badge-starrating">
                <i class="spr-icon spr-icon-star-empty"></i>
                <i class="spr-icon spr-icon-star-empty"></i>
                <i class="spr-icon spr-icon-star-empty"></i>
                <i class="spr-icon spr-icon-star-empty"></i>
                <i class="spr-icon spr-icon-star-empty"></i>
              </span>
            </span>
          </span>
        </div>
      {% endif %}

      <div class="product-pricing" aria-live="polite">
        {%
          include 'product-badge',
          class_root: 'product',
          product_available: product_available,
          on_sale: on_sale,
          price: price,
          compare_at_price: compare_at_price,
          show_saved: true
        %}

        {%
          include 'product-price',
          class_root: 'product',
          price: price,
          price_varies: false,
          compare_at_price: compare_at_price,
          compare_at_price_varies: false,
          on_sale: on_sale,
          emphasize_price: false,
          show_original: true
        %}
      </div>

      {% if settings.product_show_sku == true %}
        {% unless onboarding %}
          <div
            class="
              product-sku
              {% if sku == empty %}product-sku--empty{% endif %}
            "
          >
            {{ 'product.general.sku_html' | t: sku: sku | strip_newlines }}
          </div>
        {% endunless %}
      {% endif %}
    </div>

    {% comment %}
      Product form original location, will remain unless is 3 column layout
    {% endcomment %}
    <div class="product-form--regular" data-product-form-regular>
      <div data-product-form-area>
        {% if is_product_modal %}
          <div data-product-quickshop-message class="product-message--container"></div>
        {% endif %}

        {% unless onboarding %}
          {%
            include 'product-form',
            product: product,
            selected_variant: selected_variant
          %}
        {% endunless %}

        {% if hide_description %}
          <a
            href="{{ product.url | within: collection }}"
            class="product-link"
            data-product-details-link
          >
            {{ 'product.buttons.view_details' | t }}
          </a>
        {% endif %}
        
        {% comment %} code for notify when in stock
        {% unless selected_variant.available %}
        <div id="sold-out">
        {% form 'contact' %}
    	{% if form.posted_successfully? %}
    		<button class="product-form--atc-notify disabled" id="notify-me">We'll let you know when available!</button>
    	{% else %}
    		<button class="product-form--atc-notify" id="notify-me">Notify me when available</button>
    	{% endif %}	
    	{% if form.errors %}
    		<div class="error feedback accent-text">
      			<p>Please provide a valid email address.</p>
    		</div>
    	{% endif %}
    	{% unless form.posted_successfully? %}
    		<div id="notify-me-wrapper" class="clearfix" style="display:none">
      	{% if customer %}
      		<input type="hidden" name="contact[email]" value="{{ customer.email }}" />
      	{% else %}
      		<input style="float:left;" required="required" type="email" name="contact[email]" placeholder="your@email.com" class="styled-input{% if form.errors contains 'email' %} error{% endif %}" value="{{ contact.fields.email }}" />
      	{% endif %}
      		<input type="hidden" name="contact[body]" value="Please notify me when {{ product.title | escape }} becomes available." />
      		<input style="float:left; margin-left: 0" class="btn styled-submit product-form--atc-button" type="submit" value="Send Notification Request" />
    		</div>
    	{% endunless %}
  		{% endform %}
        {% endunless %}
        {% endcomment %}
        
        {% if enable_social_sharing and is_product_modal == false %}
          {{ share_buttons | strip_newlines }}
        {% endif %}
      </div>
    </div>

    {% comment %}
      Product description field, never moves
    {% endcomment %}
    {% unless product.description == blank or hide_description %}
      <div class="product-description rte" data-product-description>
        {{ product.description }}
      </div>
    {% endunless %}

    {% if enable_social_sharing and is_product_modal %}
      {{ share_buttons | strip_newlines }}
    {% endif %}
  </div>

  {% comment %}
    If is a 3 column layout, the form will move here at $bp-large (layout.isBreakpoint('L'))
  {% endcomment %}
  {% if layout == 'layout--three-col' %}
    <div class="product-form--alt" data-product-form-alt></div>
  {% endif %}
</article>
0 Likes
Highlighted

Success.

Finally found the source. Its coming from the Customer Shipping Rules app we are using. We will be contacting their customer support to see if this is necessary or if we can remove the code that is causing this.

1 Like