One of my client runs a successful store using WooCommerce, and now he wishes to create another WooCommerce site with the exact same products. But since opening a new actual business is a big deal for him, he wish that after the users has placed items in their cart and clicked on "checkout", the user will be redirected to the first ("original") site and choose the shipping option and payment method and complete the checkout process there.
We have thought about it through, from different aspects, and finally the user insist this is the solution he wants to try.
Can it be done? If yes, does anyone know of a simple way to accomplish it? or what should I consider before trying to implement this solution.
Related
I need to develop multiple e-commerce websites. Let's call them foobar1.com, foobar2.com and so on. The catch is, when you hit the final checkout button, the checkout process needs to happen at checkout.foobar.com for all domains.
Is this possible, and if so, how could it be done? Session data (that holds cart info) won't be available at the checkout.foobar.com, and neither will cookies.
One way I could get it to work is if I maintain the cart at foobar.com, which means everytime you add an item at foobar-n.com, I will make an API call to foobar.com which will update the cart.
Is there a better way to go about this?
For the sake of not leaving this unanswered:
I implemented the database solution, i.e. when you hit checkout, your cart contents are dumped into a database with a unique id, and you're then sent to checkout on foobar.com?id={uniqid} and cart contents are retrieved. When you successfully complete checkout, the items are removed from the DB. I also ran a nightly cron job that removed items from the DB that were more than 6 hours old (for those who didn't go through the checkout process).
I need some help and out-of-the-box thinking, because I'm genuinely stumped.
I'm making a gift registry website (like for wedding registries). The idea is that the person making the gift registry can add items from anywhere on the web (say, target.com). Then, when someone wants to buy them an item off the registry, they come to our website, find an item, click on the link and are taken to the product page (on target.com) and buy the gift.
The problem is that we need to know if the product was actually purchased so the gift isn't purchased multiple times. Also, we need to give the purchaser the address of the person for whom they're buying a gift.
Here's what we'd like to do:
Unfortunately, the only way I can think of how to do this is through an iframe, which doesn't work with many large retailers (like Amazon and Wal-Mart), which have blocked iframes for legitimate security reasons. Another option is opening two new browser windows, but that's just ugly.
So, what else can I do? Any brilliant JavaScript/css/php or whatever solutions out there?
you can't reliably detect if an item was purchased if it can be any shop in the web. you can only detect if somone clicked a link to the item in the shop but not if he buys it.
you should rely on the user to mark the item as bought.
Your only option, albeit a poor one, is a Bookmarklet. The buyer would have to add/install the bookmarklet before they began shopping. After they complete an order they would have to run the bookmarklet on the order confirmation/receipt page to "verify" the purchase.
You would have to write code for every merchant you support. Anytime the merchant changes their confirmation/receipt page you would have to update your verification script. The bookmarklet would determine the merchant from the page URL and check the page for specific elements to determine which product was purchased.
I would use the bookmarklet as an optional step since you can't assume your users will remember to use it or even know how to use it. I would mark items as "Unverified Purchase" when they choose a product from your list, then mark it as a "Verified Purchase" if the bookmarklet is used. You can also make your bookmarklet verification work on "order history" pages for users who forget to use the bookmarklet during the checkout process but still wish to verify their order.
I have created a basket where a user can add to and update etc. This basket has been built based on what product the user adds to cart obviously. The product itself is grabbed from the database and displayed in a table in the basket. How do I use Paypal from here? I now want a button called 'pay' that the user can click and then it takes them to Paypal to pay. But I want the details of the items to be displayed in Paypal.
I have signed up to paypals web standard payment. Obviously I don't need their add to cart buttons since I have got my own cart. I think I just need the buy button but as mentioned, I am not sure how to get products over to Paypal.
Can somebody explain what I need to do please
This broad of a topic is generally best suited with a quick Google search. Basically, find a paypal form (perhaps through Paypal's button builder) and edit the form's values to suit your needs. This can be accomplished with php or javascript quite easily (PHP is a bit safer as it limits tampering). Then users send the form :)
You can also create a link such ashttps://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=$business which will do the same as the full form (add all of the fields you want to send, of course).
Give it a shot - if you have more specific questions, post back with clarifications.
I'm working on a project that ties into an API and uses virtuemart. Basically a user can buy time for a phone card. the few things I need help with are:
A) can/how can I create a custom php function once the user signs up. For instance, the user adds Items to the cart and proceeds to checkout. once the user clicks checkout they need to create an account, after they create an account is there an area in this process that allows for a custom function so that I can tie the creation of the account to an API?
B) same as above but after checkout. After the checkout goes through, how can I make it so the new values are sent to the API? Is there an area in the files that allow for custom functions here.
C) Lastly is it possible to add more options the the virtuemart customer account maintnance screen. I want an option that will tie into the API and show them exactly how much time the have left for their phone card. This information will be provided by the api.
All of these things can be achieved with a System Plugin. You would simply look for the right url, get any information from the result screen with regex, call your API and insert any changes back into the screen.
I'm not specifically aware of any VM functions for this, but as VM is in flux with Version 2 getting closer, it may not be a good time for any such investment in any case.
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.