New answers tagged

0

If you use this, it should work: \rias\scout\ScoutIndex::create(getenv('SCOUT_INDICES'))


2

Once you have created the sequence (starting at 1) with your sequence key/id you can manually reset/update the number in the craft_sequences table in the next column. Obviously if you reset the number, you could get duplicate order reference numbers though if you are not careful. Alternatively, you could just let the sequence start at 1 and use twig to add ...


1

If I am reading you right you are wanting to update the shipping address on the order rather than create a new one. You should be able to do that right now: {% set cart = craft.commerce.carts.cart %} {% set flashNotice = craft.app.session.getFlash('notice') %} {% if flashNotice %} <div class="bg-blue-500 text-white"> <div class="...


1

You're always using variants. Just that if you have no 'other' variants commerce hides that stuff away. But your product has a defaultVariant behind the scenes. Adding… .hasVariant({ hasStock: true }) …to your query should (I think) return your products that have ([hidden] variants in) stock.


0

so there is an actual asset volume defined before the location text input field? where do you want to save files in relation to that defined volume?


1

Not Commerce 2, but in Commerce 3, like this: {% set userIdsWithSubscriptions = craft.subscriptions.limit(null).all()|group('userId')|keys %} {% set users = craft.users.id(userIdsWithSubscriptions).all() %} <ul> {% for user in users %} <li>{{ user.username }}</li> {% endfor %} </ul> Via Nathaniel @ Craft Support (thanks!)


Top 50 recent answers are included