New answers tagged plugin-craftcommerce
1
vote
Stop customers from increasing line item
I found a coded solution using EVENT_BEFORE_SAVE_LINE_ITEM
... but I think @JamesSmith's answer would be the ideal solution
2
votes
Stop customers from increasing line item
I might be misunderstanding your situation, but Commerce has built-in min/max "Allowed Quantity" per product (per variant technically) here:
Limiting that to 1 max will prevent more from ...
1
vote
How-to display a dropdown field with optgroups?
FYI, small change to get this working in Craft 4 via Craft support/Oli. Change the 3rd line in the above to:
{% set optgroupCount = 'optgroup' in 'field.options.optgroup' ? 0 : false %}
3
votes
How to make AJAX request to controller inside module?
The documentation on controllers has everything you need. An action path consists of the module ID, the name of the controller and the name of the action. In your case, the action path will be ...
2
votes
Accepted
Craft Commerce Missing Products Tab
The Products link in the navigation only shows up if you have at least one product type defined. Go to Commerce -> System settings -> Product Types to create your first product type.
Top 50 recent answers are included
Related Tags
plugin-craftcommerce × 833plugin-development × 72
craft3 × 66
ecommerce × 50
plugin-craftcommerce2 × 40
templating × 36
order × 28
plugin-craftcommerce3 × 26
shipping × 25
plugins × 21
products × 20
discounts × 20
payment-methods × 19
adjusters × 16
categories × 13
stripe × 13
custom-field × 12
addresses × 12
emails × 11
ajax × 11
events × 11
payment × 10
users × 9
php × 9
tax × 9