Questions tagged [products]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
24 views

Commerce search: return products containing keywords in related entries' fields

Craft CMS 3.6.11.2 / Commerce 3.2.17.4 We have a Stores structure section that contains fields (searchable) such as phone, address, etc. These Stores are assigned as Entries (searchable, max of 1) to ...
0
votes
0answers
24 views

Triggering different webhook when product is updated by Feed Me

I have two different webhooks that need to run when a product is saved. Webhook 1 should only run after manually saving the product Webhook 2 should only run after Feed Me saves the product Is ...
1
vote
1answer
17 views

Commerce - Email users on new product input

Good Afternoon, Is it possible to have Craft email a list of users (based on a category) when a new product is added to the shop? Is there a pluigin that would do this, or is it a matter of a small ...
0
votes
0answers
8 views

How to pass extra filters to products field type?

We are adding a 'Featured products' field to a category fields config and we're looking to filter the list of products that are selectable by the category this field is appearing in. For example, if ...
1
vote
1answer
20 views

Get UI elements of entry in front end

Is is possible to get UI-elements of Craft 3.5 in the front end? Specifically wanting to get hold of the headers I use to separate fields of products. This is my current code: {% set layout = product....
1
vote
2answers
67 views

Change naming of sections in Craft Commerce CMS

Is it possible to change the name of the of 'Products' to 'Projects' & Variants to 'Pledges'? I would like to use the Commerce CMS as a base to start from but need to be able to change certain ...
1
vote
3answers
173 views

Commerce: How can I check that a user has bought a product?

I have a digital product, with a landing page, and I want to know if the connected user has already bought the product so I can give him access to the content.
1
vote
1answer
204 views

Commerce 2: Custom product fields not showing up in order

I've created a dropdown field for my users to select from on each of my products, but if the user was to select an option from the dropdown and click 'add to cart' , it doesn't show up in their order ...
1
vote
1answer
54 views

Filter and sort Commerce products based on Matrix blocks

We have a website that uses Craft CMS v3.1.28 and Commerce v2.1.6.1. The below logic is implemented within a plugin and we're prepared to do custom implementations aka. prepared to go deep! I would ...
2
votes
1answer
110 views

Commerce 1: Different default order status based on product types

I want to assign different default order status based on product types. Is this possible? What I need to achieve is to send different email notifications based on product types. Can this be ...
2
votes
1answer
176 views

Get and display a product's variant fields in twig

I'm working on a product template that can display products of any type. Various product types have varying numbers of variant fields each with their own options as other products. (All of my variant ...
2
votes
0answers
197 views

Creating multiple plan subscriptions

Versions: - Craft CMS (3.1.21) - Craft Commerce (2.1.2) - Stripe for Craft Commerce (1.2.0) Problem: - My website offers user's ability to subscribe to several subscriptions at the same time. ...
3
votes
2answers
70 views

Showing a list of selected/related categories to entry

I have a suitability category field in my product type that allows the content writer to select which categories this product is associated with. But my issue is that on the product page I need to ...
2
votes
1answer
33 views

Including a variant segment in product type template route in Commerce 2

Is it possible to use a wildcard when specifying the template path for a Commerce 2 product type? I want to format my URLs as /type/product/variant Where 'variant' could be a custom field applied to ...
1
vote
2answers
634 views

Search products and entries with pagination

Is there any way of searching both entries and products at the same time? Wanting a single search on the site which will return all entries and products containing the searched for phrase. Looked at ...
1
vote
0answers
42 views

Commerce filter with width, height and length with tolerance

Hope you guys can help. I need to create a search feature on a craft commerce site that will allow the user to search for products in this principle: Product Type Width +- value height +- value ...
1
vote
0answers
114 views

Add fields to Product Type itself

I want to create product groups and save some data in themselves. but I only could add field to individual product, not product type itself. Or it is nice if product could have hierarchal structures. ...
1
vote
1answer
50 views

How to show a product from a field entry

I'm trying to bring in recommended products for adding to a bigger purchase. I set up a simple matrix but can't seem to figure out how to pull product information. This is what I have so far, it ...
1
vote
1answer
329 views

Filter products by custom boolean field

I'm working on a online store website and we need a filter to hide some products based on the country. I created a lightswitch field called "Hide in Europe" (default false) and added it to the ...
4
votes
2answers
593 views

Multiple category relationship criteria (or)and(or)

Is there a way to do relatedTo categories where the category is (a or b) and (c or d or e)? I can get (a or b) working using: {% paginate craft.commerce.products.relatedTo(categories).limit(20) as ...
0
votes
1answer
182 views

How to use promotable Boolean in Craft Commerce?

I'm sure this is somewhere in Craft documentation but I cannot find anything on it. There is that checkbox in the product area that says "Promotable". I'm assuming this is so I can reference it later ...
1
vote
1answer
32 views

How can I break up a product into two page templates?

I have a product overview page, with images and some text, then a call to action that launches a product customiser for that particular product. (the customiser is requiring some bespoke JSON using ...
1
vote
1answer
117 views

Is it possible to use images as variant selectors when choosing products?

I am fleshing out all the main parts of my commerce site and going through all the requirements needed. I have installed the Craft Commerce plugin and set it up with required shipping, delivery, etc. ...
1
vote
1answer
221 views

Enforce search match multiple parameters

I actually found this code on here Search Form with Craft Commerce. I had a problem with this code pulling up products that didn't match, and then after creating a new product it worked for a bit and ...
1
vote
1answer
378 views

Sort products by category field value

All of my products have a category field called stateCat. These state categories have a field called stateImportance. This is because some states are more important than others and I want to sort the ...
1
vote
1answer
739 views

Craft Commerce - Product Types URL

I'm working for the first time with Craft Commerce and trying to create product types. So far so good, now I have three product types: "Inspiration", "Gift" and "New". I need the URL of these three ...
1
vote
2answers
429 views

Craft Commerce - Advanced Product Options & Pricing

What are the options for creating advanced product options with pricing. I see there are way to create variants ok - but can this be linked to advanced pricing, e.g. for printing products. the ...
0
votes
1answer
340 views

Craft Commerce hasStock not working?

I'm trying to query for certain products but only ones that have stock (the products just have defaultVariants): {% set earliestDate = now | date_modify('- 1 days') %} {% set latestDate = now | ...