Magento backend shipping selection - php

Heyhey,
I made a pretty kickass Magento 1.6 module to select a store and time to come pick stuff up at the shop, and it works fine in the front end. It doesn´t however appear in the backend, and the backend order creation system needs to have the same functionality.
How do I enable my module for backend order creation?
I'll supply any details needed!
Kind regards,
Alex

in the file:
/app/design/adminhtml/default/default/layout/sales.xml
around line 497 (on my version, which is Enterprise 1.10.0.1)
you should find
<adminhmtl_sales_order_create_index>
I strongly believe that has the information on what you want. Your module will need it's own layout xml file that references these areas to insert its own content. Then, you will need to hook into the order create event with an observer to run your own code to deal with the data. This may already be happening, as I'm not sure if the backend code creating the order is any different from the front end.
Hope this helps as a jumping off point.

Related

Joomla PHP code

I'm new in using Joomla and i need your help please.
I'm newly working in a company. The company bought a web shop from other company and the web shop is live now.
One button in one of the pages is responsible to place an order and the action for this button is to send an email with all the data about the orders to my company.
Now my task is to develop an API which does the following:
when clicking on that button the information should be handles in certain way and sent to other system which our company have and this system is used by my company to handle the different orders.
My problem is that i can't find the php page that contains the code which is creating these orders email in order to change it.
Is there is any tool or plugin which might help or do you have any idea how to handle this situation?
Hint: I'm not able to get any support from the company who programmed the web shop
It is very hard to tell you what to do when we don't even know which Joomla e-commerce extension you are using. Nevertheless, there are things that you can do to find out which file is doing the actual processing of the order.
However, before even doing that, you will need to define what "order processing" means. Is it when the order is saved to the database? Is it when the order is approved by the payment gateway?
In the first case, you will need to look up for code saving the data to the database (which is likely in the models folder of the extension - it might also be in the controllers), in the latter case, you will need to look up for the code processing the payment (which is likely in the controllers folder or the helpers folder).
Note that some "advanced" e-commerce extensions trigger events when an order is processed that you can use in a plugin in order to do what you want.

How to customize Plugins and Themes for WordPress

I am currently trying to build a website for a client using WordPress for a school project. The client requires a user system with a log in and storage of user permissions and information.I downloaded a plugin called Simple Membership because it had the best reviews for user membership plugins.
The biggest problem I am experiencing at the moment is the default contact information that comes with the plugin is not the information I wish to store. I need other fields to be stored. I am a developer so I first took a look at the code using FTP and made a few changes just to the registration form to show off to the client for the first iteration.
I have now been made aware that when updating the plugin all of my changes will be overridden. I am here to ask if there is an efficient way to make changes to a plugin without creating a new plugin(does not seem practical, I need to change the function of this plugin not just add to it). At the moment that is the only solution I am aware of. Can someone point me in the right direction?
It may not be the best solution but it's practical on your case.Take a backup of your formula plugin and re install it if a new update comes in.

How to set up an upload form in back office of prestashop ?

I'm trying to add a menu in the back end office of Prestashop 1.6 that allows the admin to add some image in order to be displayed in a specific category , I need to upload an image to the server How I can set up this functionality safely using some Prestashop internal functions
not an easy task, I will recommend create a module for doing this otherwise you will need to modify system files of prestashop and you will hook yourself with old version of Prestashop. Its not the complete answer for your question but it may at least point you to the right direction.
here is simple tutorial how to make module
http://doc.prestashop.com/display/PS16/Creating+a+first+module
and more specific one for the backend
http://doc.prestashop.com/display/PS16/Creating+a+Dashboard+Module
basically use modules to extend any functionality in prestashop to keep it easy to maintain
you may also find necessary to hook your module into prestashop Hooks so you will need to read about them as well
http://doc.prestashop.com/display/PS16/Managing+Hooks
http://mypresta.eu/en/art/developer/prestashop-hook-list.html
Another approach less portable is to override categories here is tutorial how to do it in Ps 1.6
http://nemops.com/prestashop-categories-second-image/

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