I am writing rest api using one of the PHP cms for a eCommerce app.
The current cms has sessioncart which uses customer's session to fetch the customer detail and store the cart data.
I want to provide the api for add to cart functionality for android and ios app.
Apps and website will be linked so if user logs in through app or website he/she should be able to see the cart item.
What i cannot get is how to maintain or create the customer session for rest api
Am i doing it right?.
Any help or guidance will be really appreciated.
I am using Magento and cakephp applications. I wanted to have same login for both applications.
For Example: Use Magento Login Module without any Layout inside Cakephp, access database to get details of registered users, authentication if not registered, Create account functionality.
Layout from cakephp application and functionality from Magento.
I tried integrating Magento features like login customer based on email, get login user details, Cart items, add product to magento cart, update product details etc. Posted the code which I tried in gist, But not able make entire login and payment funcionality from cakephp.
Gistlink:https://gist.github.com/kanampalli/692edcf70ca48d02a532f410ddf219be
But not able to integrate entire login functionality and Payment through magento once order placed from cakephp application. How to get session and update in both application?
You should take a look to Magento SOAP API.
We currently have an e-commerce website with a bunch of other features so accounts are necessary.
We're moving over the store over to Shopify but currently customers have to login on our website, then again on the shop. I've been unable to find any Single Sign On documentation, what would be the best solution?
I was considering making the login form post to both our back-end and Shopify to trick Shopify into creating a session but i'm not sure how reliable it'd be.
The website is PHP & MySQL.
Single sign-on is available but only in Enterprise plans. You need to contact Shopify for these plans and access to single sign-on.
first time with Magento, so sorry if it's a stupid question.
I have a website using the Magento API (get product list, information, and the cart) in python. I saw that the cart has is proper ID and session (it seems). Is there a way to transfer this cart / session in the Magento store ?
I started a new module/controller/action receiving a cart id from the API, but I can't figure it out on how to transfer the products from one to the other without calling the API again, from magneto.
Anyone has a clue ?
I didn't find a way to do it properly. But used a workaround. I'm using the Magento API, inside a Magento controller/action to manually transfer the products. I don't like it, but it's the only way I found.
I have a wordpress website, and I want to create a simple web commerce. When I mean simple, it's really simple: Some posts/pages are going to have a custom field named "price". These pages are going to have a link on it, and clicking on it, the user is going to be sent to a simple shopping cart. From the shopping cart, I'm going to create a checkout page, which is mainly a php page that connects to a payment gateway, showing credit cards and such. I'm going to create php files that validates info about these payments after the response from the gateway.
I'm not going to sell "products". I don't need postal offices, no address to deliver something, nothing. It's just a price and a php that receives confirmation from the payment gateway. Think of selling "courses" or something like that. A receipt of the buy is going to be in the database, so the client can reference it later.
So, I think I need to create:
A shopping cart page. This shopping cart can be made using cookies or the database. Which is the best approach?;
A checkout page;
A bunch of scripts to validate a response from the payment gateway;
A simple table that stores all the payments responses, containig price, user_id and such.
Am I forgetting something? What else should I be aware of when trying to create this plugin? I heard that wordpress don't use sessions, so I would need to create one in wordpress just for the carts. Does anyone knows about this issue?
(I don't want to use these complete e-commerce plugins that exist since I don't need all their features.)
I decided to use a cookie approach using $_COOKIE. The values in that cookie are a json_encoded associative array with product information, that is checked in the server with some validation. That way I don't have to mess up with $_SESSION in wordpress that I read is problematic, and the user can have the same shopping cart even if (s)he closes the browser.
One good example of simple e-commerce application is really simple e-commerce.
Just an option, if you are wanting a simple shopping cart (with PayPal integration) and are not wanting to reinvent the wheel, check out Simplecart JS. A javascript, persistent, shopping cart which allows your users to collect items and then proceed to the PayPal portal to complete the purchase.
An easy way to setup an online store is by using the Market theme.
Market is a theme template for Wordpress, that contains a built-in shopping cart system, and product administration tool for easily adding and editing products.
It connects with your Paypal account for processing your customer payments.
If you want to, you can play around with an online demo here:
http://www.markettheme.com/
That way you can try it out before you commit to anything.