If no other information must be provided for the purchase of a product in the Magento Store (Example: individual (Mandatory-)Options, Selection at Configurable products etc.), you can put the products directly from the category to the cart without first visiting the product detail page.
This has of comfort- and efficiency reasons certainly has its advantages. but you want to inform before the acquisition or MUST customers even further details, this can also interfere.
So if you want to “Add to cart” generally Replace button in the category against a button, of or the customer only to Product Details. brings to the product page, is a small interference in the template code necessary.
To do this, open the list.phtml in the directory app / design / frontend /[Theme]/[Theme]template/catalog/product
There, one looks for
<button type="button" title="<?php echo $this->quoteEscape($this->__('Add to Cart')) ?>
(This gives it twice – 1 x for the grid display and 1 x for the list display!)
Responsible for the action – is the part contained therein
onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"
This will be replaced by
onclick="setLocation('<?php echo $ _product->getProductUrl() ?>')"
Now If you click on the button, you will be brought before the details.
Now let on the button but no more “Add to cart” be, but “To the product” o.ä.
For this we still change (each 2x per line)
('Add to Cart')
to
('More details')
Finally, we add an entry into their own translate.csv:
"More details","To the product"
Everything save, Upload, evtl. flush the cache, finished!
Used in Magento versions 1.7 – 1.9 Comments? Additions? Notes? Gladly!