Getting certain information from magento's mage.php file - php

I wonder if any of you could help?!
I've recently started a new project which requires an e-commerce system, with that being said I have installed magento and have started to play around with it.... however I am struggling to find any sort of information on using the mage.php file.
What I need really is help on the list below...
I've been looking for the code to display a product from magento on a page that is not situated within magento's platform. Can anyway point me to the code needed for this please
I'd like to incorporate the checkout/login or logout/my account links on every page even when not viewing a page located in magentos system.
I suppose basically I want to use magento to handle the product side of things but want to create my website without having to touch magento except from to call in certain functions.
Any help on this would be appreciated!

You can build the website using an easier content management system such as Wordpress and only use Magento for the Shop section of the website.
There is a plugin for Wordpress that allows you to display products from a Magent website.
https://wordpress.org/plugins/magento/

Related

Single Login Between Opencart and custom website

So I'm developing a website for a school project, we are creating a website that has a user database for access on certain pages as well as a online store.
I have done so research into Opencart but am unable to find out if I'm able to extend the login banner on opencart to my custom webpages.
So my questions are:
Is this possible?(I'd like to not have to create 2 user dbs)
If so, where would I look to find the code needed to do this?(online or in the opencart files)
I know that there is supposed to be code here but I have yet to find the code.
Thank you in advance

edit magento navigation without coding

I just recently started working with a Magento site, and so far I'm really not liking it. I need to remove a couple links from the main navigation, but I can't seem to find the option for it. I've googled it numerous times, and all I see are examples for coding the navigation. My question is, can you edit the site navigation like you can with say wordpress? Seeing how it's a cms I'd imagine the user should be able to make changes to the navigation using some type of interface, and without having to pull the files from the server and edit them.
Also just out of curiosity, for anyone experienced with Magento would you say it's a good choice for a cms? I've heard of it before, but haven't seen many sites that use it.
No!, so you have three options here.
Learn how to extend the navigation with the 100's of tutorials out there, it is really not that hard, assuming you have a theme you just have to edit app/design/frontend/[theme]/default/template/page/html/topmenu.phtml
Get an extension to do it for you.
Hire a developer to do it for you, we create a static block with installer for the html which make it slightly more user friendly to update in the future.
Stackoverflow is a bad place to ask questions like this, it is aimed at programmers and doing such a procedure is rudimentary stuff, I really hope you are a client trying to be cheap rather than someone who claims they can run this site.
Edit: The cms features are ok but you need to be able to code to set them all up so the end user can make the changes with WYSIWYG.
If you don't want to code for navigation then you can do below things
1) Create category and then Display Settings=>Display Mode=>static block only and Display Settings=>CMS Block=>static block name. In static block u can include in page url or custom page
2)You need to hire developer
If you're using Magento and have an integrated WordPress blog, it's possible to design a completely custom menu in the WordPress Admin using the menu builder. You have complete control over what menu items you want and the hierarchy of each item.
To get this to work, you need to integrate your WordPress blog using WordPress Integration in full integration mode. Your Magento template also has to be using the default Topmenu block.

wordpress help... integrating existing PHP code to work side-by-side

I know very little of WP aside form it being a CMS geared towards (or started from) blogging, but may people have found the product capable of functioning as their sites CMS.
I was recently asked to write a PHP app to signup, (with email confirm and email notification to admin), login to make and manage orders. - so a user can register and get an email confirmation... once they are approved, they can log in, and place an order. and manage their information. There is also an admin section to manage the users and requests... ALL very straight ahead.
So I write it - and test it and everything is fine... Until the client tells me that it's going to be part of a WP site.
Problem, the client ONLY knows HTML, NOT PHP... I don't know WP.
When I upload a directory to the root - and try to run the app, I get redirect to /$url .. and a page not found displaying in the WP theme.
I have a feeling it has to do with the AUTH module I'm using... but there is a huge BIG PICTURE issue I need to conquer - how to integrate an existing PHP app into a WP site...
Q: how do I reference and use the WP emailing system?
thx - I know it's a broad question. but if someone can point me into a direction...
I have read the post regarding templates in WP and setting up a template with PHP code so it's executed... but it seems 'wrong' to have to create a template for each php page.
What your app is about ? If you got only the Auth module already coded you should only import user and password because WP does this out-of-the-box.
Wordpress can be twist up for your need but you need to do it in the WP way :).
If you want to add some functions to it check out the plugin library on wordpress.org. If you know wordpress and no plugin match your needs then the best way to go is writing your own plugin : https://codex.wordpress.org/Writing_a_Plugin
Or maybe just add your custom functions into functions.php, see https://codex.wordpress.org/Theme_Development#Functions_File
For pages, you basically have to type of it in WP : articles - i.e. blog posts - and the static pages. You can add some custom one check https://codex.wordpress.org/Post_Types
I know this answer is more a bunch of links but if you don't nothing about WP you should first learn how it works before try to hack it.
Hope it helps !

Completely custom Magento interface without shop

I have been searching but have not found much information on this. Would it be possible to completely override Magento's frontend interface? What I mean with this is completely remove the shopping cart, menu's, product listings, everything, and replace with a completely customized interface, which will not be used for a eCommerce portal.
I just found out that our customer does not in fact want a eCommerce solution, although we have built a lot of functionality on Magento and it would be a shame to have to re-write EVERYTHING on another platform and still build a ordering framework as well.
So my question is this, can you build a theme on Magento that only shows parts of the system completely unrelated to the actual 'shop' and where would I find information to figure out how to do this? I'd like to keep the custom frontend in Magento to easily re-use the product view blocks, etc. but Magento itself is not a system our client wants.
I have thought of an alternative where the Magento shop is merely placed in a sub-directory and used as a sort of 'engine' to run the eCommerce side of the system and building a completely different system which integrates with Magento, the downside of this of course being that we would have to rewrite completed work as well.
What would be the best route to follow?
Here is one way to go about it:
Edit the homepage via the backend and enter the following code in to it:
{{block type="catalog/product" template="page/homepage.phtml"}} this will allow you to display products on the page.
Make sure that when you enter the code you can see html markup (and not just the output)
Make a completely customized webpage showing whatever you want

Magento: how to add a new backend php form

I would appreciate any input here.
I have some php code that I've developed to import a csv file into a custom table in the Magento db and then compare this data with data in the sales_flat_order table and display a simple report.
I now need to add a link to this page in the Magento backend so the guys using the backend can find and use it easily.
I have a bit of experience with adding new Magento modules, but I was wondering if there is any easier way to just add the Magento backend look and feel to my php pages and add a new menu item linking to them?
It seems like a big bloated exercise to have to have to go through the process of adding a Magento module and to have to re-code everything now that its already done.
Any help would be very much appreciated!
Just pop your link in the header links - header.phtml in admin template folders. Job done, not elegant but why spend any longer on it?

Categories