Removal of cart attributes

kwat
Tourist
7 0 4

An app (ShopSync) is adding cart attributes (mc_cid and created_at) that are eventually making their way to packing slips. I would prefer that this wasn't the case and would like to remove the attributes so that they do not show up in the Additional Details section of Shopify and get transferred to ShipStation as notes. I am having trouble with the forceful removal of these attributes as they seem to persist regardless of what I do to them. Below is the code I'm attempting to use for removal. This works for removing but on cart update, the attributes come back.

<script>
    $( document ).ready(function() {
      params = {
            type: 'POST',
            url: '/cart/update.js',
            data: 'attributes[created_at]=',
            dataType: 'json'
          };
      $.ajax(params);
      }, this);
  </script>

You can use this link for testing: https://michiganawesome.us2.list-manage.com/track/click?u=6939d72c2cb98ef05c8b83ace&id=b38dc8d39b&e=...

0 Likes
kerrieclark831
Shopify Partner
4 0 0

I am not familiar with ShopSync, but maybe there is some configuration/setting to prevent the cart attribute from being written in the first place?

 

If that isn't possible, you might check where the packing slips are printed. If you are using the Order Printer app, templates can be customized to include cart attributes like this:

 

{% for attribute in attributes %}

  {{ attribute | first }}: {{ attribute | last }}<br>

{% endfor %}

 

If that is the case, a simple template modification may suffice.

 

I hope this helps!

0 Likes
kwat
Tourist
7 0 4

Thanks for replying @kerrieclark831. There seems to be no configuration setting for ShopSync. We have attempted to use Order Printer but it has not been able to meet our needs as ShipStation offers better order filtering and order splitting that we use regularly. Thanks for the suggestions!

Kip_Veasey
Tourist
5 0 0

Was this ever resolved?  I am having the same issue. 

0 Likes
kwat
Tourist
7 0 4

I have not been able to figure out a way to remove the attributes. According to ShopSync support, it is a bug that they are looking in to but gave no timeline

0 Likes
a1fu00
New Member
1 0 0

Solo tienes que pasarle el valor de atributo igual a nada = '', a mi me funciono 

data: {
    attributes: {'EXTRA': ''},
    note: note_self
},
0 Likes