Orocommerce::Purchase price - orocommerce

As far as I can see there is not possible to calculate profits between our and a purchase prices.
Is it possible to set the purchase price?
It need to adequate calculate net profits along with a revenue.

I'm not familiar with WooCommerce but look at OroCommerce price attributes that can be used to store price values that are not rendered to the user storefront so that you can operate them in any custom calculations. And check out the OroCommerce pricing concept guide to understand what capabilities are available in OroCommerce pricing engine.

Related

Shopify changing product price for variation by app

I am a shopify partner, I am trying to get around the the variant limits of shopify by coding an app and also because my client has a complicated formula for calculating the price. I don't have a problem with the part that adds the information for my variants to the order, however when I want to modify the price based on the user selection, it doesn't seem an easy task to do.
I came across couple of apps which does the same thing by adding a new product or variation which is not optimal for my use case, is there any app that does the job without adding extra information to the database, if so, how?
Qualified Yes
Unfortunately, Shopify doesn't give us a lot of options to edit prices of items dynamically. Here are the two options that I know of that will allow you to adjust the price of a product directly - however, both have limitations.
Using Shopify Script Editor
If you're working with a Shopify Plus merchant, you can use the Shopify Script Editor to dynamically adjust the prices of products, provided that the direction you adjust is down. You cannot increase the price of a product using the script editor - so for your use case, the list price would have to be the most expensive possible price that the item sells for, which you would then discount appropriately using the app.
Using draft orders
Using an app, you can use Shopify's Draft Order API to create an order with custom discounts and/or create completely custom items that are independent of the products set up in the product database.
The basic flow for this is that when the customer clicks 'checkout' you halt the normal navigation, send the cart contents to your app, create a draft order with the appropriate pricing, then supply the front-end code with the draft-order checkout/invoice URL so that you can send the customer there instead of the normal checkout. This has several limitations, however, including that prices of existing products can only be discounted, not increased, and the fact that Shopify will not allow a customer to use discount codes on a draft order invoice - once an order is set up this way, Shopify's assumption is that all prices are final.
Disclaimer: Sorry if someone sensible doesn't like a response with a link :) I'm not related to this app I'm just a user.
On a project with complex pricing, we use the app Wholesale Pricing Discount by Wholesale Helper we liked because is easy to import multiple pricing by-product and relate it by customer.
this app does not multiply the products, they use customer tags. maybe that can give you some guidance.
An important rule on Shopify is you can't increase the price by API on an order, you can just reduce i

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.

How can I query a user's Shopify Order History?

I'm customizing a Shopify site for a client running a membership-based site.
The way they want the membership to work is that each member gets 3 items at a discounted rate every month, and then every subsequent product ordered is at the regular rate.
I've figured out how to limit the amount of discounted products ordered PER order, but what I can't figure out is how to use Shopify's API to query that customer's order history so I can see how many products a member has ordered each month and adjust the prices as needed (I'm using the Customer Pricing plugin to manage the pricing discounts currently).
I've been digging into the Liquid documentation, and I can see where there are tags for orders and tags for customers but not necessarily how to loop them together.
Is there anyone who is more familiar with the Shopify API than I am able to point me in the right direction?
If you are using the API, you have this:
**Get all orders from this customer in this shop**
GET /admin/orders.json?customer_id=207119551
So with that, you have your desired history.
You can loop through all of a customer's orders. See https://help.shopify.com/themes/liquid/objects/customer#customer-orders
and figure out which month the order was placed and what products were on it.

How best to calculate sales tax in a marketplace (i.e., with multiple sellers)?

We process orders for multiple sellers (a typical "marketplace" scenario). Are there APIs or services that correctly compute sales tax for our use case?
I simply want to provide the sellers' (1 or more) locations and the buyer's location, and receive the correct tax rate to assess on the corresponding line item.
Most offerings I've evaluated (TaxCloud is one) seem to fall down in this use case.
I'm implementing a TaxCloud solution for a single-seller and multiple-buyer situation. You can utilize TaxCloud to determine tax cost by creating an account for each seller in the marketplace, configuring nexus for each, then using the appropriate API key/ID pair to lookup tax on items based on the seller.
Unfortunately, this means that you'll have to make multiple calls if the shopping cart has items from multiple sellers.