Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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=...
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!
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!
Was this ever resolved? I am having the same issue.
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
Hi Kwat,
Have you found any solution on that? That attributes suddenly popped up 2 days ago, and it is a pain to remove that in Shipstation.
On your very first post' code, where is it added to?
Thanks
Do you use Mail Chimp? I wonder if Mail Chimp is putting that info in based off of this article...
Solo tienes que pasarle el valor de atributo igual a nada = '', a mi me funciono
Hi A1fu00
Where is it added to? Thanks?
This should work to remove cart attributes.
Where did you add this code? Is this a checkout script?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024