Adding WooCommerce Product Attributes to Migrated Products

WooCommerce has a product attributes feature that lets you add additional information to a product outside of the description field. These are often displayed on the product detail pages in a table format and show things like the weight or dimensions of the product:

Shopify does not have product attributes built-in, so by default, these will not be imported when you migrate your products from WooCommerce to Shopify. If you would like to include a product attribute table on product detail pages, you can use the following workaround:

1. Get in touch

Send an email to support@ablestar.com and let us know you want to add product attributes to your products during migration.

Make sure to include your Shopify store name in your message. Once we receive your message, we can add metafields to all your products with the WooCommerce product attributes within one business day.

Metafields are one way Shopify allows the addition of custom data to products, pages, and more.

2. Update your Shopify theme to show the metafields as a table

Now that your products have the attributes saved to them as metafields, you can update your theme's code to show the metafields in a table.

You can do this by editing the Liquid code for the product page and add the following code to the template:

{% if product.metafields.woo_importer_product.size > 0 %}

<table>

{% for field in product.metafields.woo_importer_product %}

<tr>

<td>{{ field | first }}</td>

<td>{{ field | last }}</td>

</tr>

{% endfor %}

</table>

{% endif %}

This will show the attributes on your product detail pages. You can further customize the look and feel of this table using CSS or additional HTML tags.

Finally, if you have any questions about adding WooCommerce product attributes, just get in touch.

✅ Tips and Troubleshooting

[wc.44]

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us