Disable One-Page Checkout in OpenCart - php

How can I disable OnePage Checkout in OpenCart?
Version 1.5.x comes with it in the default template and I would rather not use it as we want to have step by step pages and not use Ajax (speed/page views and process serves our needs better) for our customers.

It is possible to remove the one-page setup, but you'll have to do a very good work on the template (the checkout folder contains all steps). You will need personalized controllers as well. The built-in checkout page uses jQuery and Ajax to gathering all the information necessary in only one page, to send everything together when the customer clicks "confirm".
Once you don't want to use ajax, you will have to send the information from one page to the next using post requests, putting then in hidden <input>'s and/or in $_SESSION variable. Anyway, you will have some problems with the countries and locations, since OpenCart retrieves then via ajax.
Actually, some time ago I've found some templates on ThemeForest and other sites that implemented what you want, but I don't know if they are available anymore.

I would actually recommend you use something like Uber Checkout which while its still a short checkout process, is better visually as you don't have the panels that are standard in 1.5.X. If you're wanting to completely rewrite it to work like the old checkout system, well in theory it's already there, you just need to rewrite the controllers for the various steps to output full pages rather than JSON and put in validations through each step to make sure previous steps have been completed

Related

AMP pages server by Google on checkout

I have a big problem with product amp pages when the page is served by google cache.
The user can add the product to the basket with a call like this:
action-xhr="https://sample.com/index.php?route=checkout/cart/add".
The backend is Opencart(php), and the product added to cart, no problem, but when the user go to checkout page (no AMP page, and not served by Google cache) there are no products on the shopping cart.
I guess it will be because when the article is added it is in a domain (google) and the payment page is in another domain, mine.
Is there any way to fix this?
I don't understand that google wants to provide a better user experience, and makes it so difficult to create a simple product page
Sorry you're hitting problems.
Here is the most relevant guide for your situation. In short, you want to transfer some kind of identifier from the AMP version of the page to your backend, and use that to sync the user state.
Without more information on your seutp, it is hard to get more specific.
source: work at Google on AMP
Are you looking for a way to make sure the user's cart is retained, whether they try to add to cart on an AMP cache or on your origin?
If so, there's a nice way described in detail here:
https://blog.amp.dev/2020/06/16/amp-camp-cross-origin-user-state-in-amp/

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.

Can i customize the magento back end for admin users?

I am making an ecommerce website using magento.. I want to know if i can customize the back end as per my requirement.
Example : In the manage products page i want to create a custom page and give the admin users the option to easily add the products (Most of the values will be taken by default) and some will be chosen by user (I want to change the default UI and functionality for the admin users)
Is it possible ?
Yes, it is possible. You can develope a simple module or a simple php one-file-script and add products easily using Magento API. You can set default values to some attributes inline.
I found a blog post, I don't recommend to use that code because it looks messy, but it will give you a hint;
http://magentocoder.jigneshpatel.co.in/automated-quick-simple-product-creation-in-magento/
Also, there's a non-free module in magento connect named "Quick Product Add". It looks like what you need but I didn't test it and this is not a recommendation. You can find it here;
http://www.magentocommerce.com/magento-connect/quick-product-creation.html

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

How can I do Magento one page checkout (together with the UI) using API calls?

I want to implement one page checkout part of Magento from the outside of Magento structure (i.e. using API calls). If it is possible, I want to start using the existing code to reduce the implementation effort. So, how can I modify the existing checkout implementation in order to make it run from outside? Or, is there any other implementation which provides Magento checkout functionality together with the UI?
I'm not entirely sure what it is your after but if you're thinking of using Magento checkout say in Wordpress then you could simply include app/Mage.php and use pretty much all the functionality provided by Magento.
Say create a product (you would need one to check out) on the fly if it isn't already in Magento or render any templates - checkout in your case.
Not a problem to insert "add to cart" buttons to any website and use AJAX to request cart contents to the same page.
Also I just needed to code pretty much the same thing for OneStepCheckout which opens up in lightbox and allows you to check out from pretty much anywhere. HTML onepager for example or from Facebook:P

Categories