How does the Offer Quantity and Inventory Quantity change? - ebay-api

I am trying to create an Inventory Management application using the Ebay Sell APIs. When adding a product, I first add some quantity (say 100 T-Shirts) to the Inventory. Next, I make this inventory live by creating an offer and specifying the offer quantity (say 10 T-Shirts).
Now, my question is, when there is a successful sale of some of the inventory via an offer, does either of the offer quantity or inventory quantity change automatically? Or do I have to manually call bulkUpdatePriceQuantity to update the quantities?
PS: I would test this myself on the sandbox, however, I am unable to fetch orders due to some internal error on the eBay APIs

Related

Shopify update the inventory for the custom bundle

I am trying to create a bundle for the Shopify site. I do not want to use the Shopify app to create the bundle. Product A has 30 variants. A customer has to buy 6 quantity of variants at a time. It could be any 6 variants. How can I update the inventory for all the variants when the checkout is done?
You don't update inventory, Shopify updates inventory. Your job instead is to ensure the correct number of variants go into the checkout. If you have trouble with that, you can always help yourself out with some clever product manipulations. Another solution is to listen to the checkout and examine the products sold. You can then alter inventory levels to suit your needs.
Almost all the bundle Apps do the same thing. You can try them out and see if that squares your circle. I made one of the original bundlers whereby I had it so in a bundle, made of N products, the merchant could tag each variant for a specific quantity, and then the customer would be buying those specific quantities when buying the product. I would use Ajax calls to check quantity live, and when the product was purchased I would then deduct the right inventory quantities because the product itself had infinite quantity.
That was very sophisticated and worked most of the time, but completely messed up when customers would SIT on the cart. Inventory levels would change, and valid carts at the time would become stale, and inventory would be messed up, resulting in overselling stock. Me bad. Shopify bad. Bundling bad. With Shopify Plus, all that kind of went out the window, and bundles are much easier. Without Plus, you gamble!

Changing quantity units on certain products in BigCommerce

Site: www.peekaboopatternshop.com
Theme: Barcelona Red v. 1.0.1
Stencil
The shop is selling both physical and digital products, and I need the quantity unit to display differently. For instance, if someone is buying fabric, the quantity box should have options like "1/2 yard, 1 yard, 1.5 yards" etc. But for a digital file I want to the quantity box to just have a standard options "1,2,3".
I played around with product options, but I can't figure out how to tie that into the inventory - if someone orders 2 yards of fabric, I need it to take 4 units off my available inventory (inventory for fabric is tracked in 1/2 yards), and I didn't see any way for my product options to affect my inventory unless I get into SKUs, which didn't seem relevant since I don't have variations available for each product.
On a separate note, I also can't seem to get the Quantity option to change from a box to a dropdown.
To have the inventory take off the correct number of units, you would need to setup the product for customers to purchase using the smallest possible unit.
So a customer would have to purchase per the 1/2 yard. Then the stock would be setup as normal. And it would deduct one for every 1/2 yard purchased.
Currently physical and downloadable are treated as separate products on the store.
There are several options:
1. Sell the physical and digital separate
2. Work with a developer to create a custom product where both are available.
3. On the product add a product option that customers can select to have someone email them the digital product later. You can also add price change rules to increase the price based on the option picked.
4. There is a app in the BigCommerce Marketplace called FetchApp that might allow this functionality also.
If you still have questions please reach out to BigCommerce support.

Shopify - New order using the Shopify API - how to know tax and shipping?

We have built an e-commerce web application (Node backend, Vue frontend). We process the payment using Stripe, but many brands have asked us if the order and inventory control can be done in Shopify. We are trying to figure out the best way integrate a payment module into Shopify so that the brand can manage the fulfilment and inventory through Shopify.
It seems we should use the Order API to create an order and mark it as paid. But how do we know that the product is in stock, and what are the cost for shipping and tax from Shopify when creating the order? I think we can use the Product API to get inventory levels, but where is the shipping and tax endpoints?
If I understand the Order API correctly, we need to tell Shopify what are the shipping costs and tax costs, when a new order is created. Is that right? How could we possibly know those figures? Seems like there should be an endpoint to calculate shipping costs and get a product's tax rates so that we can then pass those figures back into the Order API. Am I missing something?
I thought maybe we are supposed to create an order that has financial_status: pending first to get shipping and tax rates back (does it even give you those?), then update the order to either cancel_reason: customer or cancel_reason: inventory if those rates are too expensive and the order is declined? But surely we need to know what shipping methods are available to the customer in order to tell Shopify which one to use, right? Or does it by default choose the cheapest one when creating an order?
Notes:
We know the customers shipping address
We don't know where the product is warehoused (Shopify does I think)
We don't know the weights or dimensions of the product (Shopify does I think)
This answer is a little bit late, but i hope, i can help others that are struggling with the same issue.
First i would recommend to set up all Shipping Rates and Taxes in Shopify. There are plenty of manuals to achieve this:
https://help.shopify.com/manual/taxes#general-process-to-set-up-taxes
https://help.shopify.com/manual/shipping/rates-and-methods/calculated-rates
After this there are different possibilities to calculate your shipping and tax cost.
Your shipping cost can you get via the active_shipping API, which can be found here:
https://github.com/Shopify/active_shipping
Or the following Shopify Application: https://apps.shopify.com/boxify
However, you may need to know size and storage location for theese solutions.
The taxes can you get via the country in the Admin API, there is a specific key-value pair for this:
https://help.shopify.com/api/reference/country
I hope that's enough information to get closer to solving the issue, for at least someone.

Shopping cart - the right way?

I need to implement shopping cart for my website. I decided to store carts in database rather that in session. My website serves as a platform for selling items between users. That said, users can edit their own products any time.
I understand that I can't just use product ID in the cart, because user need to get whatever he put to the cart. If the product is being changed after he put it to the cart, it shouldn't affect what he ordered, correct?
How is it usually solved? Should I copy entire product to the cart? Or maybe rather save versions of particular product and link to them? Another idea would be to inform customer on checkout that the product changed.
How is it solved in popular e-commerce platforms?
I understand that I can't just use product ID in the cart, because
user need to get whatever he put to the cart. If the product is being
changed after he put it to the cart, it shouldn't affect what he
ordered, correct?
the product price is going to change. the inventory is going to change. if a product goes out of inventory you want the customer to know so they can make another choice. if the product price has gone up or down, the cart should reflect the current price. so that means the cart will check the product table for the product pricing and inventory at different steps before the final transaction.
as part of the cart to product lookup -- if the pricing has changed you can alert the user. just as important - if the customer has ordered quantity 4 of a product, but the inventory has gone down to just 3 of them -- you have to change the cart and make it very obvious to the customer what just happened.
there are only two things the cart is responsible for - the product id, and the quantity to be sold. anything else stored in the cart is just to make it easier to display the product on the cart page or information needed for the merchant.

Can we override inventory check in BigCommerce

I want customers to order the product even if it is out of stock, however I want to keep the Inventory tracking option ON as well. So for example if I have a product with 100 items in the stock, if someone orders it I need to see how much left in the inventory and on the other hand of product is out of stock, customer should still be able to order it. Is there a way we can achieve this while overriding any API?
We got it to work by using ajax and javascript. Basically we replaced the text that is generated by bigcommerce for inventory with a little script that checks inventory through our ERP. We then turned off inventory tracking for all products and backorders are now available. I wish I could post a few lines of code to help you, but the script is specific to our database. You can still use all the other features of the API (order import etc.), but you are not using the api for inventory tracking.
Hopefully this gets the wheels turning.