Timeline for Magento2 - disable add to cart on product page
Current License: CC BY-SA 4.0
21 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 12, 2021 at 10:55 | comment | added | Kasper Elund | Is it possible to add a second attribut with the name "obsolete" and that displays the text "no more in stock" | |
Mar 4, 2020 at 13:26 | comment | added | Kasper Elund | Have another quesion for you. If I want to add the text from a custom attribute in the order email how is the easiest way to do this? The attribute name is placement_01 Want it to be under the sku of the product and only on the ones where this location is avaible. | |
Mar 4, 2020 at 13:24 | comment | added | Kasper Elund | Sorry for the delay in accepting your answer. | |
Mar 4, 2020 at 13:23 | vote | accept | Kasper Elund | ||
Mar 4, 2020 at 13:23 | vote | accept | Kasper Elund | ||
Mar 4, 2020 at 13:23 | |||||
Feb 25, 2020 at 4:41 | comment | added | Kishor Thummar | Please accept and upvote the answer, So it will help others in the community. | |
Feb 24, 2020 at 15:51 | comment | added | Kishor Thummar | Let us continue this discussion in chat. | |
Feb 24, 2020 at 15:21 | comment | added | Kishor Thummar | I have updated my answer, So now if an attribute is enabled the Add to cart button will be hidden. | |
Feb 24, 2020 at 15:20 | history | edited | Kishor Thummar | CC BY-SA 4.0 |
deleted 92 characters in body
|
Feb 24, 2020 at 15:13 | comment | added | Kasper Elund | Have you updated the code so it will do it when the atrribute is enable and not disable? | |
Feb 24, 2020 at 15:09 | comment | added | Kishor Thummar | Greate, Please accept and upvote the answer, So it will help others in the community. | |
Feb 24, 2020 at 14:56 | comment | added | Kasper Elund | Looks great now it works. Only need it be enable when I have it to yes insteed of no. | |
Feb 24, 2020 at 14:53 | comment | added | Kishor Thummar | Have you checked? | |
Feb 24, 2020 at 14:47 | comment | added | Kishor Thummar | I have updated my answer, Now replace the whole code with my updated code in your file and flush the cache. | |
Feb 24, 2020 at 14:46 | history | edited | Kishor Thummar | CC BY-SA 4.0 |
added 861 characters in body
|
Feb 24, 2020 at 14:42 | comment | added | Kasper Elund | Yes I have. Will look a bit closer and see what it could be | |
Feb 24, 2020 at 14:40 | comment | added | Kishor Thummar | have you replaced whole file? | |
Feb 24, 2020 at 14:38 | comment | added | Kasper Elund | Gets this error for the variable _product "Exception #0 (Exception): Notice: Undefined variable: _product in /var/www/testmigreparkogf.dev/public_html/vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml on line 9" | |
Feb 24, 2020 at 14:32 | comment | added | Kishor Thummar | So you can copy the vendor file in the ultimo theme path which i given and update the code. | |
Feb 24, 2020 at 14:09 | comment | added | Kasper Elund | I use the Ultimo theme so that might be the issue. addtocart.phtml is not in the app etc folder. Ultimo uses the file from the vendor dir. | |
Feb 24, 2020 at 4:47 | history | answered | Kishor Thummar | CC BY-SA 4.0 |