I am trying to modify the list view in the category section. I want to remove the image and the description from this view ONLY. I would also like to add the item number and attributes to this section too, if possible. If someone can just point me in the right direction, I appreciate it. Almost every time I try anything when I change the .php code, I get a 500 script error.
Thanks,
Scott
Ps. Please do not reply "did you search google" or "Have you thought of paying someone to do this for you?" Why? That's what a forum is for... Let's keep open source OPEN.
Thanks,
Scott
Ps. Please do not reply "did you search google" or "Have you thought of paying someone to do this for you?" Why? That's what a forum is for... Let's keep open source OPEN.
You can see here - https://github.com/opencart/opencart/bl ... s#L84-L120
The List Grid is handled via javascript with basic JS skills (show/hide) and google you can achieve what you need.
or you can use css selectors
ex:
...etc.
The List Grid is handled via javascript with basic JS skills (show/hide) and google you can achieve what you need.
or you can use css selectors
ex:
Code: Select all
.product-list .product-thumb .image { display: none; }
.product-list .product-thumb .caption { margin-left: 0; }
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
But often this is exactly the right advice.
Open source doesn't mean you put little projects on the forum and people code them for you for free, although sometimes if you're very lucky that will happen.
If every time you make any sort of change you get a 500 error you're going to need more than pointing in the right direction aren't you?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
paulfeakins wrote: ↑Mon Nov 02, 2020 7:06 pmBut often this is exactly the right advice.
Open source doesn't mean you put little projects on the forum and people code them for you for free, although sometimes if you're very lucky that will happen.
If every time you make any sort of change you get a 500 error you're going to need more than pointing in the right direction aren't you?
Thanks for not helping...
Where am I going to find the javascript files that handle the lines view? I did a grep for product-thumb and product-desc and I come up with /public_html/catalog/view/theme/so-emarket/template/soconfig/listing.twig. I changed those files and don't get any results. Can you let me know where the JS files might be?sw!tch wrote: ↑Sat Oct 31, 2020 2:35 amYou can see here - https://github.com/opencart/opencart/bl ... s#L84-L120
The List Grid is handled via javascript with basic JS skills (show/hide) and google you can achieve what you need.
or you can use css selectors
ex:...etc.Code: Select all
.product-list .product-thumb .image { display: none; } .product-list .product-thumb .caption { margin-left: 0; }
Thanks,
Scott
If you are not using the default theme then chances are the above won't work.. To do this with CSS the code would go in your stylesheet.css or custom.css if you have one.
Above was just an example - if you don't understand work with a professional.
Above was just an example - if you don't understand work with a professional.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
A simple answer to what should be a simple question...
Does anyone know where the code is to modify the list (or grid) view in the default catalog when you’re in the category section? All I want to do is remove the image and description.
Scott
Does anyone know where the code is to modify the list (or grid) view in the default catalog when you’re in the category section? All I want to do is remove the image and description.
Scott
Who is online
Users browsing this forum: No registered users and 414 guests