...How to show the item quantity available in the frontend
...place the following code wherever you want the quantity to show up (for example: in view.phtml)
For all the non-programming, non-developers, common mortals, like your truly
it could be very helpful to quote the whole path of a file,
like: .../.../.../.../.../.../view.html
Don’t mind, please
A n g e l o
For example /app/design/frontend/default/default/template/catalog/product/view.phtml
One thing I would find EXCEEDINGLY useful is a list of all the files int he layout directory and what they’re meant to do.
For example, I figured out that page.xml is, apparently, the default layout for all pages, but I couldn’t for the life of me see where it was pulling the lef_col.phtml stuff from as it only define the “left” block. Then I was screwing around looking where other things are and discovered that the catalog.xml for some reason defines this.
I’m trying to create a custom homepage that displays a list of the manufacturers the site I’m working on carries along with their logos in the left menu on the homepage. I also want to do a list of all of the major categories plus five or so of their sub cats at the bottom of the page. I’m having a heck of a time trying to figure out what files/code does all this. The designer guide is incredibly light on details, spending entirely too much time with concept. I already grasped the conept - I just want to understand how to make my Magento site match what my designer came up with. There’s not that much in the way of documentation for this, which is utterly frustrating.
Wow - this is an awesome reference… I’ve read the design guide but didn’t quite kick me in the direction I wanted.
Reading this there’s already some key things I’ve done which have helped me in my nooby ventures to customising my layout :D
How to change default JPEG compression
credit goes to PitchO from this thread
http://www.magentocommerce.com/boards/viewthread/6158/
If you use only jpg images, you can change the code like this in lib/Varien/Image/Adapter/Gd2.php :
Change
case IMAGETYPE_JPEG:
imagejpeg($this->_imageHandler, $fileName);
break;
to
case IMAGETYPE_JPEG:
imagejpeg($this->_imageHandler, $fileName, 95);
break;
To get a default compression of 95% instead of the default value (75%).
Hi
have you seen that gd2.php in the latest magento package 1.1.2 is a little bit (!!) different?
I’m not able to avoid jpg image compression
and catalog is very horrible at the moment
(also because watermark is added before compression… and the result is horrible too)
I honestly haven’t upgraded from version 1. I tried to, multiple times, but each time it broke the database, and I wasn’t about to enter hundreds of entries by hand again. I’m sticking with version 1 until they fix dataflow, so I won’t be able to update this thread with my own experiences for a long time. Good luck everyone.