All things Shopify and commerce
Hi all,
I've got a new section/block where I show 3 metaobject form the vacancies type.
This metaobject have fields, like title, content, featured image.
Now what i want to create a link to the detail page of the vacancy, but I cant figure out how I get this.
Because I assign vacancies with shop.metaobjects.vacancies.values, vacancies.url is empty. If I delete .values at the end of the assign, all vacancies are empty.
This is the code I use to loop trough the vacancies:
{% when 'open_vacancies' %} {% assign vacancies = shop.metaobjects.vacancies.values %} {% for vacancy in vacancies %} <h3>{{ vacancy.vacancy_title }}</h3> <p>{{ vacancy.vacancy_excerpt }}</p> <a href="{{ vacancy.url }}">Bekijk vacature</a> {% endfor %} {% endcase %}
Solved! Go to the solution
This is an accepted solution.
Resolved:
You have target the system.url .
This is an accepted solution.
Resolved:
You have target the system.url .
User | RANK |
---|---|
43 | |
40 | |
24 | |
24 | |
22 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023