- Posts: 13
- Thank you received: 1
Remove Add to Cart button on product listing
I've search and searched but can't find what I've missed. Anyone help?
Thanks
Please Log in or Create an account to join the conversation.
That's a default parameter. So it works only for new menus and modules.
For existing menus and modules, you will find similar options via the menus Display->Content menus/modules.
You can also just create a new menu and it will use that value.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I am using just the starter version. I am also looking for a solution to this without having to delete existing modules or hacking the PHP code.
The method you mention: "For existing menus and modules, you will find similar options via the menus Display->Content menus/modules."
This does not seem to be correct, I do not see the option to Display/not display the "Add to cart" button in the Display > Content menus.
Can you confirm?
Please Log in or Create an account to join the conversation.
Once you are in the menu Display > Content menus, you need to edit your products listing menu and you will see the option among all the other options of your products listing menu.
Please Log in or Create an account to join the conversation.
nicolas wrote: I can confirm that this method is correct.
Once you are in the menu Display > Content menus, you need to edit your products listing menu and you will see the option among all the other options of your products listing menu.
As always Nicolas you are correct, thank you.
This may not be the place to raise this suggestion:
I find all the answers to any question I have on this forum - which is very nice, but I would prefer a lot of these things to be documented properly.
And, I find the main documentation for Hika Shop a bit lacking - sometimes parts are missing altogether and sometimes the language is very confusing.
Since a lot of people are using this extension in its free version, would you consider opening up your documentation (as a Wiki for example) so that the community that are using can at least contribute something, prepare FAQ for things such as the one here and keep the main documentation updated?
Regards,
Please Log in or Create an account to join the conversation.
We would be even more happy to include them in our documentation if you are ok with that.
If you do so, just send a contact request to us via our contact form:
www.hikashop.com/en/contact-us.html
Also, if you have specific things you would like to add in one place or another in the FAQ, do not hesitate to tell us. We will be more than happy to improve the documentation.
A wiki wouldn't allow us to include the documentation inside HikaShop views like we do at the moment, so I don't see that happening in the short term though.
Please Log in or Create an account to join the conversation.
I 've found the content menu, but I am trying to remove the add to cart buttons only in one subcategory.
How can I override the existing options of my main category?
Please Log in or Create an account to join the conversation.
You have to override the view "product / listing" and in the foreach on the categories "foreach($this->categories as $category) {" add a code like:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
So all the products of this category will not have the "add to cart" button displayed.
Please Log in or Create an account to join the conversation.
Full source code of the view removed. Don't worry, we have it too
Please Log in or Create an account to join the conversation.
Replace:
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Does not exist in my view file. Is it another version? My hikashop business version is 2.2.1.
Please Log in or Create an account to join the conversation.
It's near the line 221. If you don't have it, that's maybe because you have an override on this view.
Thanks to save your current override in an external file, then remove the override by clicking on the dustbin on the views listing.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
how i can remove the add to cart from the product listing here
server.webartscy.com/~mazrin/index.php/h...egory/13-decorations
i set the the value to No at the product listing option but nothing change
also i want to hide the product code from the product listing .
Please Log in or Create an account to join the conversation.
I don't see the add to cart button on that listing.
Regarding the product code, you would need to add such CSS:
.hikashop_product_code_list{ display: none; }
How to add CSS:
www.hikashop.com/support/documentation/1...ize-the-display.html
Please Log in or Create an account to join the conversation.
here is the url
server.webartscy.com/~mazrin/index.php/h...ategory/14-ornaments
i set on the content menu product listing the option "Display 'Add to cart' button" to NO .
Please Log in or Create an account to join the conversation.