Magento Checkout Page content (not in CMS) - magento

Can someone please explain the Magento directory structure in relation to URL? I'm using the community version I believe.
So I had someone ask me to update some content on a magento checkout page. I'm not familiar with the framework that much so trying to figure out the file/folder structure has been a challenge for me. That said, the checkout is located on http://domain.com/magento/checkout/onepage/
The only thing I'm trying to update is some "terms" that are showing up in the checkout tab, which I can't seem to find through the Magento CMS anywhere (pages, terms, etc), and the other thing I'm trying to add is the coupon code field display, which I checked (at least what I think) were the corresponding XML and PHTML files and the code isn't commented out for the coupon code, so I suspect my problem is with the fact that I'm just not looking in the right project folder/file, or there's some kind of inheritance from default that I'm missing.

Step 1 to debug this is to enable template path hints from the admin HTML console. This will show you what template files are being loaded. From there you should be able to resolve your problem.
System -> Configuration -> Developer -> Advanced -> Template hints
However I've looked at my local install of CE and on the one page checkout don't see any reference to terms. Perhaps this is an extra block being inserted?

Applies to all versions of Magento
Magento path hints
If you enable Template Path Hints on a site and refresh the cache, ALL site visitors will see the hints.
To avoid this, put you external ip address into:
System -> Configuration -> Developer -> Developer Client Restrictions -> Allowed IPs (comma separated)
Example: goto http://www.whatismyip.com/ and note down your ip address (for example 103.167.139.74). Enter the ip into the field and save.
Doing this will only show the path hints to visitors from the above mentioned ip address.
Path to template files
This will depend on the theme used. Let's pretend you're using the default magento theme on community edition. Then you will find all of the templates at app/design/frontend/base/default/template/checkout/
Checkout parts live in app/design/frontend/base/default/template/checkout/onepage

Magento Path hints for sure or if you can invest a few bucks buy commerce Bug 2. Now if this is your first time working with magento I strongly advice you to backup your database, copy all the files from your theme and set a development enviroment. Other thing you should do is to disable the cache and tell magento to display erros while workin (check your index.php ini_set('display_errors', 1);}

Related

Magento, category, details button

I'm trying to teach myself Magento, and basic programming.
In the product lists I have, beside the "add to cart" button is a "Details" button. It has a typo in the label, and says "Detalis".
I need to fix this, but I can't find where/which file it is in. Can anyone point me in the right direction?
Generally,product list layout came from list.phtml file.
file location:app/design/frontend/default/my_theme/template/catalog/product/list.phtml
(or)
Please enable the path hints via admin panel.It's show all block paths.
How do I turn on template path hints?
To turn on template path hints in Magento:
log into the magento back-end admin
Go to System -> Configuration in the main menu
Go to Developer on the bottom left under ADVANCED
Switch to the store view on the top left to your current website or
store view.
Under the Debug tab of the same Developer config page you will see a
new option appear that will allow you to turn on/off template path
hints.
Remember to clear your cache.
Generally, I believe that the templates associated with products would be located in the
app/design/frontend/default/your_theme/template/catalog/product/
However, I am unsure of your site template files etc, especially if you are doing things yourself.
To make your life easier, I would suggest installing a program called Agent Ransack which I have found to be invaluable when searching for a needle in a haystack.

magento mutiple shipping address not displaying on front end

I am working on an existing magento project. Previous development team used custom design. I have enabled multiple shipping address from admin side, and cleared all cache. But am not able to see multiple address option in checkout page.
Since you have custom design, if the previous development team didn't override the default magento theme, you can switch to it from System > Configuration > General > Design
If they have written their changes directly into the default theme, then you can just rename the base/default (from design and skin) into something like custom/default and copy/paste the base/default from a Magento archive matching your version.
This way you can see if shipping to multiple addresses works or not. If it works then it means it was removed from the custom design - you have to check the design/skin files.
If it doesn't work then either you didn't configure something, or the code was overriden you have to check files under app/code/local (code/community or worse case code/core) .

magento Manage Products* logs me out

Firstly let me say that I haven't changed anything on our magento installation.
This problem occured 1-2 weeks ago after updating stock products. After that an asterisk mark appeared next to Manage Products link.
When I click the Catalog -> Manage Products link it goes to /index.php/enhancedgrid/catalog_product/
I've searched all over the net but couldn't find the reason.
Thank you,
This looks like a 3rd party extension causing this. I see that they are actually quite a few like this. Ex: http://www.magentocommerce.com/magento-connect/enhanced-admin-product-grid.html.
You can tell by the controller name enhancedgrid in the url you listed which is not a core controller for magento.
I would look for this particular extension and disable it completely in the proper xml file located in your app/etc/modules folder (or uninstall it). Then your store should behave normally again.

opencart theme not changing

I installed opencart 1.5.6 on my localhost, and it's not possible for me to change the theme. The admin panel says the new theme is active, but the default theme always appears.
I made the same installation on a remote server, and everything is working well there.
I have no idea what's wrong on my localhost. I'm on a new installation on Ubuntu 12.4 with a default configuration for LAMP. I tried to compare the two phpinfo but there are so many things that are different that gives me no clue.
It was just a problem of rights on the theme folder. Very stupid ...
First, I would check your database to see if the change is registered. Use phpMyAdmin (or whatever included with your LAMP stack) and look at the "oc_setting" (prefix may differ) and see if the config_template is set to the template you've chosen via the admin. This will help identify if the issue is database related.
I have the solution, the ACTUAL solution. (For me anyway)
Extract the theme.
Login to your OpenCart website using FTP. Please read our article if
you need help using FTP.
Upload the catalog and images folders to the root of your OpenCart installation.
Once the upload is finished, log into your OpenCart Dashboard and go
to System > Settings
Choose your website from the list, check the box next to it, and select “Edit”
In the store tab you will now see your new theme option available under 'Template'
Click Save.
It has now been updated.
Many, many tutorials online at the moment incorrectly instruct people to upload their theme directly into the catalog > view > theme location as though it were a WordPress theme or similar. You actually need to put the appropriate resources where they need to be.

Magento Related Products Sidebar

In Magento I took and duplicated a theme and made a few changes to the second one. Called it recipes, removed the price, etc. All worked out fine except! When I add a related product it shows up and says "other featured products". This is what the old theme said.
After some research i am seeing it is pulling this file from the "app/design/frontend/base/template/catalog/product/list folder instead of the theme folder ?
http://www.colbrookkitchen.com/recipes/pico-de-gallo.html
Turn on template/path hints in your administration area:
System -> Config / Advanced -> Developer
This will show you exactly which template and block it belongs to. The product list template you are referring to just renders the products, it's possible the theme does not also include the header in that file.
Alternatively, a quick grep (or search via IDE if you are on Windows) for 'Other Featured Products' is a good solution, since that should be a fairly unique string.

Resources