Adding item to cart via API with CS-Cart - php

I am building a web application which allows visitors of a site to custom-build a product, and then add that custom-built item to their shopping cart in order to purchase it. For instance, I might build a car with the following customizations:
Alloy wheels
Leather seats
Red
I've searched around looking for a solution to my problem, but have yet to come across anything very helpful. I am using CS-Cart as my shopping cart solution.
What I need to know is how I might programmatically add this custom-built item to a user's shopping cart. Does CS-Cart provide an API for doing something like this? If not, does anyone have any suggestions on how I might achieve my goal? I basically just need to add a generic "custom build" item to the user's cart with the customizations they made somehow attached to this item.

I've been taking a look at CS-Cart and this question came up.
From reading through the CS-Cart API documentation, it looks like CS-Cart's API is more of a plugin framework than an actual web service. In other words, I believe you can write code to modify CS-Cart (or programmatically update shopping cart items) but this code needs to be written as a plugin into CS-Cart rather than simply as an API call from your third-party webapp.
So I think you have two solutions:
Build a CS-Cart plugin which has a mini-API to take your custom item from your webapp and add it into the shopping cart through CS-Cart
If you literally just need to add the item into the shopping cart, and your webapp and CS-Cart are on the same server, you may be able to skirt around CS-Cart and get your webapp to literally just add the item into CS-Cart's shopping cart PHP session
I hope this helps - I'm not mega-familiar with CS-Cart so if there are any factual errors in this I apologise.

Related

Creating a Shopping Cart with Paypal

I wish to use paypal to create a shop to an existing site, however I have reached a problem.
Paypal has a facility to 'add to cart' however when clicked on, it goes to their servers.The check out has no customisability what so ever, so looks completely out of sync with my site.
Is it possible to create a shopping cart on PayPal showing the list of items on MY site (so I can customise the look and feel of the shopping cart) and then only when the payment needs to be made, the user is sent to the PayPal Site.
Thanks
NOTE: I'm using pure HTML,CSS & PHP. I am not using a CMS such as WordPress.
Also when I mean I want to customise the look and feel of the shopping cart, I don't mean just the button, but the way the items is shown up along with details such as Qty.
If you're working with basic PHP code that you built on your own (no framework like WP) then you'll need to build your own shopping cart.
If you were to use WP, though, you could use WooCommerce which is a great shopping cart system and would probably save you lots of time.

Adding multiple items to OS Commerce cart programmatically / with API

I am creating a custom paintball marker configurator. The customers will be able to choose a marker, then add hundreds of different accessories with our html5 / java script configurator. The client has an OSCommerce site and the goal is to send all the pieces that make up their custom marker to the OScommerce cart.
All the pieces in the configurator will be in the oscommerce system, but we're going to build the configurator on codeigniter and a seperate html5 site. So my question is, is there any way to send information from another page on his site (our configurator) to the oscommerce cart.
I was thinking maybe an array of products with their specific information like sku number, product id, etc, and add that array to the oscommerce cart.
Any ideas? I can't find any solutions online. Thanks ahead of time!!!
http://forums.oscommerce.com/topic/45279-add-to-cart-from-external-page-or-site/
https://www.google.com/search?q=oscommerce+add+to+cart+from+external+site+site:forums.oscommerce.com
Looks like a nightmare TBH. Lots of issues with cookies/sessions. Might have to create a separate oscommerce file (e.g. custom_add_to_cart.php) to hit from the external page. Doesn't look like there's an easy way to add to cart > edit options on external page > save to cart. May be able to avoid some issues if you serve the html5 site on the same domain or create a custom page/module (if oscommerce has those).
Good luck!

Magento Customization Issues

I am building a custom tool where the user can play around with the product (customize parts and add colors) and then go ahead and buy. I have so far built this in PHP but would like to integrate it with my Magento store. Is there a way I can connect this to Magento so that the product can be passed through Add to Cart etc?
Thanks.
Magento already has a support for this.
Check the configurable products, or the Custom options tab in the product admin edit page. You can also use bundle products.
If none of these fit your needs then you may want to rephrase your question and explain what exactly do you need.

Open Source Shopping Cart / Checkout System Like FoxyCart

I'm looking for an open-source shopping cart check-out system like FoxyCart. The idea here is that I'm looking for a shopping cart and checkout only and NOT a shopping cart with a CMS. I have my own CMS that I love and I don't want my products managed by my shopping cart.
I'm open to any programming language.
Thanks.
As of now there isn't any stand-alone Cart + Checkout Open Source system that solves the requirements that FoxyCart does.
You will have to find a work around existing e-commerce platforms or DIY.
Whilst not open source Moltin might be worth looking into, you can use whichever components you need. It will require some extra work integrating with your CMS and frontend however.

Explanation of shopping carts and webshops

I posted a question here concerning creating a shopping cart. It seems maybe I am misusing the phrase "shopping cart" or maybe the people that answered didn't understand the post well.
I understand that open source software like "Magento, OpenCart, Prestashop etc.." are called shopping carts.
I also understand that paid hosting services like "Shopify, BigCommerce, 3dCart etc.." are also called shopping carts. Am I wrong?
Both the open source and the paid hosting services gives you the admin panel that you use to create your own shopping site.
I also understand that "Yii, CakePHP, Symphony, Zend etc.." are frameworks for creating whatever you want.
Is there a difference between "shopping carts" and "web shops". For me I see them as the same.
A shopping cart is a module of a web shop used for holding items waiting to be ordered in a place where the user can keep track of them.
A web shop is Amazon, ebuyer, or some other shopping site.
Magento is actually classed as eCommerce software which is umbrella term for what you're looking at.
I think you answered your own question: "...hosting services like "Shopify, BigCommerce, 3dCart etc..". These are services that offer a shopping cart. And Webshops are pretty much an implementation of shopping carts. Your whole onlnine store is the webshop, and the mechanism to choose products and purchase them is the shopping cart of that. The likes of "Magento, OpenCart, Prestashop" are eCommerce typically packages that include a shopping Cart that you would use as part of your "webstore". The whole eCommerce solution also includes things like order reports, customer reports, administrative features, etc.

Categories