Closed riccardolardi closed 1 year ago
Hi!
Now that the plugin is under Pixel & Tonic’s wing, we've released version 3.0 which includes a number of fixes.
Craft now synchronizes products into elements, so you get back a fully-featured Product object in the template.
{% set products = craft.shopifyProducts.productType('Gift').all() %}
{% for product in products %}
{{ product.title }}
{{ product.slug }} (or {{ product.handle }}, if you want Shopify’s version!)
{% endfor %}
Would it be possible to return product name and slug alongside the id?