SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Addict
    Join Date
    Oct 2009
    Location
    London, UK
    Posts
    382
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question Integrate shopping cart into existing PHP site

    Hi there,

    So this is the first time I've worked on an eCommerce site, and I'm a little in the dark about integration.

    The client has chosen CardSave as the gateway. Now the CardSave system wants to know which Shopping Cart will be used. So, I'm going with TomatoCart, mainly because the hosting package has an installer script for it.

    But, here's my main issue, I've already built the site (pretty much), using PHP and MySQL. All the documentation for TomatoCart seems to suggest that I chose a template and then add products to that.

    The site's design has already been done and sent to me, and I have created the site form scratch to these specs, including a CMS to add products to a MySQL database.

    Am I completely screwed here, or just misunderstanding how Open Source shopping carts work?

    Cheers,
    Mike

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,616
    Mentioned
    413 Post(s)
    Tagged
    7 Thread(s)
    Normally an open source cart provides the full software (CMS) around which you build your site. There are lots of ways to provide ecommerce. I suppose you could install an open source CMS alongside what you have done, but it sounds like a bit of a mess. If the ecommerce needs are fairly simple, it might be better at this point to use a hosted cart lke FoxyCart (meaning that you just put Add to Cart links on your site, and the cart—though themed like your site—is actually hosted elsewhere).

    But starting with a gateway and working backwards may not be the best approach. Firstly, find the appropriate cart, then find a gateway that supports it.

  3. #3
    SitePoint Member
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Integrating Shopping Cart is the toughest decision to take. If you can go for Open-source shopping cart then you can go for following,

    1. Magento Shopping Cart. - Major advantage of this is it can handle Multiple Store. You need fast web host.
    2. X-Cart - X-Cart is commercial and there are very few bugs.
    3. Joomla - If you just want basic shopping features, then you can go for Joomla.

  4. #4
    SitePoint Addict
    Join Date
    Oct 2009
    Location
    London, UK
    Posts
    382
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks both for you responses.

    I finally decided to create my own shopping cart and integrate it with the gateway. The client sells high end watches, and wants the cart hosted on the site. And also I didn't have a choice in the cart because, for some reason, he had already set up an account with CardSave.

    The documentation provided by CardSave is actually pretty lousy, but I've managed to connect to the gateway and perform a few test transactions, so all's well that ends well.

    Many thanks for your input.

  5. #5
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,616
    Mentioned
    413 Post(s)
    Tagged
    7 Thread(s)
    Quote Originally Posted by mickyginger View Post
    I finally decided to create my own shopping cart and integrate it with the gateway ... I've managed to connect to the gateway and perform a few test transactions, so all's well that ends well.
    I'm impressed that you know how to do that (it's way over my head at this stage). Well done, and thanks for the feedback.

  6. #6
    SitePoint Addict
    Join Date
    Oct 2009
    Location
    London, UK
    Posts
    382
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Well to be honest, they had a PHP script template that I just hacked basically, so not sure I deserve the kudos. It was a bit of a nightmare cos it was all OOP, and there were about 200 classes involved all referencing each other. It was pretty old as well, so for anyone who is reading this, if you have a choice maybe dont go for CardSave.

    Also there's a great book which explains how to create a shopping cart and connect to a gateway (specifically Authorize.net) using PHP (cURL), called Effortless E-Commerce, by Larry Ullman published by New Riders, if anyone's interested. Although it didn't help me directly in this instance, it did make the idea of connecting to a gateway much less daunting.

  7. #7
    SitePoint Evangelist
    Join Date
    May 2006
    Location
    Austin
    Posts
    401
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Take a look at Avactis. It pretty much allows you to integrate the cart into the site instead of the other way which is typical of most open source carts. You may run into some overlap but it should be a lot easier than trying to do the same with a typical cart.
    Merchant Equipment Store - Merchant Services, POS, Equipment, and supplies.
    Merchant Account Blog | Ecommerce Blog

  8. #8
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,616
    Mentioned
    413 Post(s)
    Tagged
    7 Thread(s)
    Quote Originally Posted by mickyginger View Post
    Also there's a great book which explains how to create a shopping cart and connect to a gateway (specifically Authorize.net) using PHP (cURL), called Effortless E-Commerce, by Larry Ullman published by New Riders, if anyone's interested.
    Thanks for that. Looks interesting.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •