Timeline for Remove 'add to cart' button on all Virtuemart views except in productdetails
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 22, 2016 at 14:40 | vote | accept | Anant | ||
Nov 22, 2016 at 10:33 | answer | added | Anant | timeline score: 5 | |
Nov 22, 2016 at 10:24 | comment | added | Anant | yes, css trick would never follow a generic rule for all templates. Though I finally able to achieve it. Check my answer | |
Nov 21, 2016 at 17:51 | comment | added | Mikan |
I have no clue about functions you are refering to (never used them), but what I ment by 'simple and dirty' CSS tricks is following: In Category View add CSS rule div.category-view div.product div.addtocart-area div.addtocart-bar {display:none;} and in Productdetail View leave it intact div.productdetails-view div.vm-product-container div.addtocart-area div.addtocart-bar . That way you will have Add-To-Cart button visible only in Productdetail View. But then again, CSS selectors are highly dependent on exact template you are using.
|
|
Nov 21, 2016 at 16:32 | comment | added | Anant | ok, someone ansered that on VM forum, and it is to $product->orderable to false, though when it is set to false then a new button takes its position for that product, and that is 'choose a variant'. Any solution to remove this button too? | |
Nov 21, 2016 at 15:18 | comment | added | Anant | @Mikan There could be any template, right now it is basic 'protostar'. Though, I don't want to achieve it by template overriding. I am looking for some function call, as I have built a custom field, so I am already using VM functions. | |
Nov 21, 2016 at 13:59 | history | edited | Mikan | CC BY-SA 3.0 |
edited title; edited tags
|
Nov 21, 2016 at 13:57 | comment | added | Mikan | Without going into possibility of template overrides (you also haven't mentioned which template are you using), this can be achieved by 'simple and dirty' CSS tricks. Post a link to your site for more precise answer. | |
Nov 18, 2016 at 16:28 | comment | added | Mikan | My man, I am afraid that VM has no popularity whatsoever here on JSE (and among 'serious joomlers'), at least that is my experience. Just click on that tag 'virtuemart' and see for yourself how many questions are left unanswered. Though I might be proven wrong, who knows... | |
Nov 18, 2016 at 15:09 | history | asked | Anant | CC BY-SA 3.0 |