Magento – Category “Add to cart” button to “To the product” or “More info” exchange

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 the "Add to Cart" button in the category generally opposed to a button exchange, 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

(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

This will be replaced by

Now If you click on the button, you will be brought before the details.

Now let on the button but no longer "Add to Cart", but "to product" or similar.

For this we still change (each 2x per line)

to

Finally, we add an entry into their own translate.csv:

Everything save, Upload, evtl. flush the cache, finished!

Used in Magento versions 1.7 – 1.9 Comments? Additions? Notes? Gladly!

Facebooktwitterredditpinterestlinkedinmailby feather
Posted in Magento Design | Leave a comment

Magento – redirect users to login to specific page

Picture

Generally> configuration in the Magento backend under System> Customers / Customer Configuration> Login Options are stored, whether the customer is to be conducted after the successful login to his account or to remain on the site where it was before the login.

However, this may turn out to be difficult especially if you like an extension e.g may. Members Only Catalog used by power workers. Here you will then always passed on to the user account.

you can here on the back end in the standard not counteract.

A small interference in the files is necessary. Most sensible thing would be to write a small module, which overrides the following controller (and also very difficult!), otherwise remains only the engagement into a core file.

It's about the file AccountController.php in the directory app / code / core / Mage / Customer / controllers.

Here, the line provides (that.) 184 for forwarding after successful login. In the standard, this is

$this->_loginPostRedirect();

Now you can change it as desired. Is to be conducted after registration for the home side, change the line in

$this->_redirect(‘/’);

but you can also use other targets. For the imprint (can be contacted at www.domain.de//index.php/impressum/ ) e.g..

$this->_redirect(‘impressum’);

It is important not / Send to.

As I said,, a module for this purpose should be written, Unfortunately, a simple copy in app / code / local / Mage / Customer / controllers is not enough, because controllers are not loaded automatically, if they are in the local directory.

Used in Magento Version 1.9 Comments? Additions? Notes? Gladly!

Facebooktwitterredditpinterestlinkedinmailby feather
Posted in General | Leave a comment

Magento – new extension, to CMS content only defined customer display

customergroupcmsMagento offers various options, to features and content from certain customers / -groups to hide or display only certain customers.

thus, (with or without extensions) Shipping- or Payment only defined customer groups are made available. Setting per customer group defined prices, it can be a category or product- be shown or hidden.

but so far it was not yet possible to certain parts of a CMS-range display only for certain people.

A concrete example: You offer your regular customers payment on account and free shipping to, normal users but not. Now you could work with different CMS pages and these then display depending on group.

Much easier it is yet to have ONE page and then display the relevant parts only certain groups.

"Shipping:
[only regular customers beginning] You pay no shipping costs [only regular customers end]
[all other customer groups beginning] The shipping costs € 5,95 [all other customer groups end]”��

This of course can be used for many other things. Up to a lottery, since it is also possible to work only defined CLIENTS (not only groups) display. You can find more information directly into our SHOP.

And as a small Action for our regular readers: The first 15 Buyers will receive a license for a shop for free with coupon code "customergroupcmsfree”�� (Enter in the cart). The code can be used per customer only once. The license extension applies-as with our other extension also- for a Magento installation.

Supplement of 17.25 Clock: since the 15 Licenses away quickly and there were requests: We extend the action until Monday 🙂

Facebooktwitterredditpinterestlinkedinmailby feather
Posted in Magento Extensions | Leave a comment

“Have I told you lately that I hate Magento 2?”

This is a slightly different line of a very beautiful song, the buzzing me more often by the head in the last days. Now I work for good 8 Years with Magento and have all versions since 1.4 (maybe even a little - is too long). So I can say much to see and experience.

Now I was nevertheless forced me after much reluctance and discouragement with Magento 2 to set apart after I ever directly tested at the appearance and "let's see" again dismissed it.

I can wholeheartedly (and because in principle, not everything was better before!) say, I Magento 2 terrible find! My new motto is #IHM2 - fittingly both English and German - I hate Magento 2!

It should be faster than M1 - I could not feel anything so far from.

It should be comfortable and tidier than M1 - it's ... different. Certainly get used to it, However, I have not bemägelt a lack of order in M1.
Just the way a list of product orders and products to filter - in M2 one must first to "filter" button, then out looking for the right filter, since the filters are not next to each other as the columns and then we go ... unnecessary!
If you want to edit a CMS page or block, does not help the click of the respective block, you must first click on "Select" and then "Edit" - what does that? Toll, I have by clicking a "Quickedit function" but how often you name the URL Key times just to compared to substantive changes in the text?

How to get the new Magento Connect "Web Setup Wizard" back to back? I have except for changing the URL is no facility / a link found.

And only the installation of extensions ... a gray! If you do not work with Magento Connect and the cozy "Drag and Drop to Rootfolder" liked - that there are still. Just so it's not done! To all, who do not have shell access to your server: forget M2 (how it works currently)! After each one has DnD by Shell / Command Line (frequent tool is here Putty) initiate the installation of the extension (e.g.. am by "php / magento setup:upgrade”). M2 is then the extension to be installed in the file bin / config.php Enter -as often there was on the part of M1, a change to a file? Ok, installed patches were noted ... but otherwise?
Sometimes a Deploy is also necessary (“php bin/magento setup:static-content:deploy”) - and has it all. Here, significantly more changes may be made than you really wanted. Just quickly is not.

A problem, which can provide here: M2 expected to run the o.g. commands min. PHP (cli) Version 5.3 - it does not exist, it will be difficult. While there are workarounds, but they are not without. One can possibly. access a server-installed higher version, if one does not

“php bin/magento [command]”��

carries, but

“/usr/local/php7.0/bin/php bin/magento [command]”��

This helped in our case.

It continues with the M2 horror:

If you used to work at the template, one found frequently in the skin folder again and there in each of the CSS own themes. Today this is no longer quite so simple.
The front end displays CSS -as Example- is located in the folder pub / static / frontend / Theme / Theme. So if you smaller, makes continuous adjustments to the CSS and later deployed, all changes away again ... Why?
Magento copies the CSS (and images etc.) from the folder app / design / frontend / Theme / Theme in the o.g. Directory AND it also deletes files and folders, are not in the most recent folder available.

So how do you work within the meaning of M2 at CSS? Very easily: Just writes in the CSS in the app directory and need for each change (you'd like to see) Clear the cache management the "Static Files cache". Efficient, or?

Oh - I could go on writing for a long time and the one and other will be sure to think "nonsense - that's a lot better" - but I take the liberty my personal Shit Storm or Fire letter with my personal opinion GANZ, currently the rage drives me into the hair tips.

Therefore # IHM2 and "I'll stay (for the time being) at M1 "

but, that feels good - I'm off 🙂

Facebooktwitterredditpinterestlinkedinmailby feather
Posted in General | Tagged | 2 Comments

Magento – Create your own CSS, the standard CSS overruled

Using an existing (Standard-)Template as e.g.. the RWD theme and would like to customize it according to his own ideas CSS, you should really take the styles.css and customize everything you want to have changed.

But if you want anything / as little as possible styles.css working to, e.g. by. to see his changes better future, you can also create your own CSS file and integrate it into the theme with. This is relatively easy ansich.

You open the local.xml in Theme (or creates) from the folder app / design / frontend /[Eigenes Theme]/[Eigenes Theme]/layout and adds the following code

Now you create naturally own CSS file together with the required name in the directory skin / frontend /[Eigenes Theme]/[Eigenes Theme]/css

Then the CSS adjustments are taken in the theme.

Now, there is the problem, that the default CSS files as the styles.css by the system as a priority be viewed on our own CSS. This is not a problem if you make an adjustment, which is not yet addressed by a CSS file. But if you want an existing definition e.g.. overrule from the styles.css, not working this as.

As Simon Sprankel in his blog post (HERE) declared, this is because, Magento that prefers the CSS files, include a condition.
The other CSS files are e.g.. in the page.xml with a condition such as

loaded.

So in order to prioritize their own CSS, one must also deposit a condition - even if there is nothing in this.

The code in the local.xml (if this e.g.. only this involves one thing) then reads

For most CSS definitions of the standard CSS files are then overruled by their own CSS. Otherwise helps every now and again "!important "after the definition.

Used in Magento Version 1.9 Comments? Additions? Notes? Gladly!

Facebooktwitterredditpinterestlinkedinmailby feather
Posted in Magento Design | Leave a comment

Magento – Welcome – Message on CMS page / Show in CMS block

The standard "Welcome" message from Magento is known for a long time. It is usually displayed at the top in the header and often disappears again.

Picture

but you do not want this "welcome" message in the header but at a desired location e.g.. have on the home page, is this not so easy but-if you know how- but rel. quickly.

  1. If you create a file e.g.. named "welcome-cms.phtml" in the folder app / design / frontend /[Eigenes Theme]/[Eigenes Theme]/template/page/html
  2. Here you copied purely following code:
  3. Saving, Upload. With this code, the default welcome text appears a non-logged-in visitors now, the man> Configuration> Design> "Visible head area" in the backend under System - can enter "greeting". If the user is logged but, is his "Welcome, [his name]"appears. This can now be adjusted directly in the file or about the translation. This was with us in the page.csv be found in app / locale / en_US and there as "Welcome, %out s ".
  4. Now in the desired CMS page, the variable

    inserted.
  5. Last must now (Magento> = 1.9) the authorization are set for the block. This is done by> Permissions> block to make a new entry under System and "page / html" allowed.
  6. Now, in the front end, the welcome message should appear beautiful. It can now be mockup directly from the admin or via the CSS with the class ".welcome-cms"

Used in Magento Version 1.9 Comments? Additions? Notes? Gladly!

Facebooktwitterredditpinterestlinkedinmailby feather
Posted in General | Tagged | Leave a comment

Magento – M2E error when saving a product in the backend

We just got an error message, that occurs when you save a product in the Magento backend. Oddly, not all products, but only for a specific product.

Once you click on "Save" comes

Fatal error: Call to a member function getOptions() on boolean in /app/code/community/Ess/M2ePro/Model/Amazon/Listing/Product.php on line 308

(the line can obviously vary).

This has to do with a database problem and can be corrected as follows (backup database!).

e.g.. log in via phpMyAdmin into the database and run the following SQL command:

Then worked with us to save the products / the product again without problems.

Used in Magento Version 1.9 Comments? Additions? Notes? Gladly!

Facebooktwitterredditpinterestlinkedinmailby feather
Posted in General problems Magento | Leave a comment

Magento – Change the URL of the Contact Us page of contacts

By default, Magento will accommodate the contact page on the URL / contacts. If you want to change this, however - for example, because it is through the URL zugespamt, this can be done with a small adjustment.

We once cast this adaptation into a finished small extension and attached here (download HERE). The URL must now simply the app code local Commercers Contacts etc config.xml be opened to change to a desired URL and then there in row 14 at the desired address to be entered is at the current "contact-us". As an example,

In this case, the contact page would then www.domain.de/ihre-kontaktseite reachable.

Do not forget possible links e.g.. to consider in the footer, whether this be changed automatically or need to be manually.

A file, die man mglw. must edit is then the contacts.xml in the layout directory of the theme used.

Used in Magento Version 1.9 Comments? Additions? Notes? Gladly!

Facebooktwitterredditpinterestlinkedinmailby feather
Posted in Magento Extensions | Leave a comment