GiftingLife Posted April 30, 2021 Posted April 30, 2021 Hi was wondering if there is a possibility to set to different categories different payment mode instead of by customer type. This is due to because we are having a community shop and I hope to remove online payment. Thank You
veganline Posted May 2, 2021 Posted May 2, 2021 (edited) I think I know what you mean but have lost the way I did it! So here is a simple answer and an unfinished part of the complicated answer.Simplest. Use backoffice > preferences > CMS to write a page about whatever you want that has no shopping cart form included. By default the url will be example.com>info>newpage but this can be changed. There is a basic html editor built-in, which you can upgrade, or if you have a desktop html editor you can experiment. Use backoffice> catalog for anything that needs an online shopping cart and maybe some kind of inventory system[second part deleted] Hope this helps more than hinders Edited May 5, 2021 by veganline deleted bit that the next post replaces
veganline Posted May 5, 2021 Posted May 5, 2021 (edited) Changing product template files A more direct answer to your question. The nearest I can think of is to do it for certain products, by using an edited prduct template. Product templates look like this:https://github.com/thirtybees/niara/blob/master/product.tpl If you can get to the file on your server (example.com/themes/niara/templates/product.tpl if your theme is Niara)... You can copy and then edit the template. What I did was to delete equivalent lines to 435 to 463 on the githb link. The loop of code that begins "<div class="box-cart-bottom">". If your server has built-in editing software it might compact the loop of code into one line before you delete it, so you can be sure of getting the right end point, which is difficult otherwise. Your new product template will no longer show a shopping cart and can be enabled from any product page in the back office. If your product is "fresh bread", Backoffice > Catalog > Products > Fresh Bread > Template Manager > choose your new template from the drop-down menu (There is probably a way of editing a product template to ignore "catalog mode", which you can turn on or off from Backoffice > Preferences > General > Catalog Mode | Off The edited template would ignore the switch, but all the products using the standard template could have their shopping carts switched on or off in one go. I haven't tried it though - you'd have to experiment). (I don't know a way of doing for a category) Edited May 5, 2021 by veganline 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now