php and interspire grab information from dropshipper - php

I need to grab information from my dropshipper's site. The only thing I really need to grab is the inventory count. What would be the best technique for doing this with php? Should I use cURL? If so, can you please give me some example code of how to do it?
P.S. I am using interspire shopping cart too
Thanks in advance

It's tough to answer without knowing what your dropshipper allows. Mine gave me a detailed user guide with several ways to get data from their servers (cURL, Ruby, PHP, Perl, etc. all with example code).
The way I handled real time stock levels was to build code from one of their examples and using XML-RPC grab the stock levels from the supplier when a customer navigates to the individual product pages. The response from the supplier's server is just the stock number for that product (based on the SKU). My code then inserts that stock level into the prodcurrentinv field in the database for that particular product. This all happens in a split second before the page loads fully (before the stock level display on the page). I added it as a function in class.product.php.
Because I don't really know PHP, I wasn't able to get this to work with more than one SKU at a time (for use in the shopping cart and on the category product listing pages). I'm hiring a programmer for that.
But it's really important to know what type of interaction your supplier allows and it's hard to answer your question without knowing that.

Related

Select product variations on order creation from backend - Woocommerce

I found a issue with woocommerce and variable products.
The products works good on the frontend but If I try to do the same from the backend, I can't selected the variations that I want.
I just can add a meta (It's an input text field) and this is very limited.
Can I fix this with a hook/function or plugin?
Really need help.
Thanks,
Your question is somewhat difficult to understand. Are you asking if you can change the combination of variations for a product on the backend after an order has been made?
I have only ever been able to do such a thing, in certain situations from within fulfillment software (ShipStation in my case), and even then it's no simple task. The reason likely being due to the fact that WooCommerce essentially locks the order after payment, as a failsafe to the customer probably.

Shoe/Shirt Size clickable list instead of drop down menu

I'm stuck here. I'm trying to create code that will list out all of the available sizes for the item without using a drop down. In the two links below you will see what I am talking about. Any items that are out of stock are grayed out and when you click on an item in stock the item availability comes up in red below your selection.
Can anyone point me in the right direction (maybe a tutorial) in how to get this done? I'm trying to implement it in my magento site. Would I need to use php or is there an option in magento?
Shoe Examples:
http://www.karmaloop.com/product/The-AR-20-Sneaker-in-Craft-Blue-Running-White/263936
Shirt Examples:
http://www.karmaloop.com/product/The-We-Win-Hoody-in-Black/271919
To do what you want, first you would have to create configureable products (for all the size/option per product) to keep track of which option is out of stock.
The easiest way I can think of is to create a custom module and modify /app/code/core/Mage/Catalog/Block/Product/View/Options/Type/Select.php to make Unordered HTML list then use css to style. (you could use javascript to do this but you may run into this issue How do you stop Chrome and Opera sorting JSON objects by Index ASC?)
Then take a look at getJsonConfig() in app/code/core/Mage/Catalog/Block/Product/View/Type/Configurable.php this will produce a json object that is available on the product page and should which product is in stock. Then you can use javascript/css to highlight which is in stock.
This is a example of one site that i work on http://www.contempospace.com/bedroom-furniture/wardrobe-closets/custom-closet-systems/isa-custom-closet-4-module/isa-closet-system-xl-maximize-large-closet-drawers-shelves-hanging.html with that functionality. But as the previous person mention this is a big request. I would reccommend to find a pay/free module and then make any changes you need.
Configurable Products in Magento
This will help !!

Problems with simple eCart solution

Right, I am having a nightmare.
We have been using a service called Fat Free Cart (which has so far been rather good) to build our new eCommerce website.
http://www.fatfreecart.com/
http://www.designti.me/testing/flipstick/index.php
And we have come to the point where we are looking to add postage options.
To my knowledge you cant do this with Fat Free Cart (but if you can then any help would be appreciated)
Can anybody else recommend a cart that is as simple to set up and use as FatFreeCart?
I need to be able to just copy in a line of code where I need to put a buy or Cart button and I also need to be able to get a drop down box with different postage options.
It sounds like FatFreeCart is keeping it's promises, but your application needs more features that go beyond it's scope. I like this "spartan" e-shop very much. It is great for promotion of simple items in any site.
What you could do, would be to set up a "real" e-commerce application, since you are PHP oriented, like osCommerce, Magento or VirtuaMart. Virtuemart is an addon for Joomla. All three offer you a full range of features and a full back-office administrator application that will allow you to make offers, define discount periods and pricing according to criteria like number of items ordered etc.
Now, you can keep your nice website and link your products straight to the appropriate items of the eshop instead of adding FatFreeCart links. This way the user will proceed to complete the purchase.
The other option would be join the E-Junkie.com team and extend FatFreeCart to do what
you think is missing. You should be aware to keep it fat free after the add ons.
I just almost bought a Flipstick...

Magento configure a product while comparing

I'd like to add some functionality to the comparing feature Magento offers. When comparing products, users are presented with an 'Add to cart' button. This feature only works well for simple products. When pressing the add to cart button on a configurable or bundled product the user is redirected to the product detail, out of the compare view.
Would it not be much better when a user could configure the products inside the compare view?!
Do you guys know of a magento plugin that does this trick? Or have ideas how this feature could be implemented in the existing source?
This is something that comes up from time to time as I develop Magento sites. The gist of the problem is this: the logic for dealing with configurable/bundle/etc products is not simple. The JS code that was written to handle this convoluted logic is written is such a way that multiple products on the same page cannot be accomodated.
So, to do what you want, the first thing to do is to simplify your products down significantly. The brunt of the complexity is dealing with multiple configurable attributes and changing pricing, etc. After that, you'll need to rewrite the configurable product JS to set up the submit form properly. Once you get the right data submitted, you should be pretty safe.
Hope that gives you a hint!
Thanks,
Joe

Building site.. custom inventory system.. cart recomendation?

I am building a site using code igniter. I am developing a custom product catalog using php and mysql.
What is the best way to go about making those products purchaseable online. I thought about writing my own cart, but I am a little worried about how much time that would take.
Most carts I come across online are full fledge inventory systems carts / a whole web site basically. I want to be able to really have full control.
What do you think my better options are? Any advise is welcome!
Don't be afraid of building your own. A shopping cart is a solved problem and there are many, many examples on the net. Just define your requirements carefully before you start: do items in the cart persist between sessions? What happens when an item in cart is no longer available for sale, etc.
If you want to have full control but be able to customize how users have that control, building it yourself is probably the only way to go. Depending on the amount of control you wanted to have, it could be very time consuming.
Search for shopping cart systems online and you can find lists like:
http://webtecker.com/2008/04/22/8-best-open-source-shopping-cart-solutions/
Many have demos available that let you try before you download, and if you find something with all the features you want already, problem solved.

Categories