Is there a way to set min/max order quantity for all products based on a customer type? - bigcommerce

I have different customer groups and I want to set a min/max order quantity for all my products based on a customer group, Is this possible?

This is not a native feature in BigCommerce. The native functionality is to allow a min/max purchase quantity at the product level, regardless of customer.
There are, however, a few potential workarounds.
You could create separate products that each customer group has access to. You could then set the min/max on these products.
If you were to create custom fields on the product for min/max purchase quantities for each customer group, you could use these values based on the current customer. You would need to modify the following lines in add-to-cart.html, switching them for the custom field values:
value="{{#if product.min_purchase_quantity}}{{product.min_purchase_quantity}}{{else}}1{{/if}}"
data-quantity-min="{{product.min_purchase_quantity}}"
data-quantity-max="{{product.max_purchase_quantity}}"

Related

Shopware API search products endpoint total from a stream inconsistent

I have two dynamic product groups
First: Test Product with variants
Conditions: Product Is equal to Variant product
Result total 7 like I expect this
Second: Active Products
Conditions: Active yes
we allready see that the stream ids are just set to 5 products
Now we get a total of 5 instead of 15 products like expected?
Why is it inconsistent, and how can I modify my request to consider also the variants?
You shouldn't rely on the stream_ids column as an indicator which product is shown in a dynamic product group at any given moment. This is because there are multiple more things that factor into whether a product is shown to a user in a dynamic product group.
The filters you define for the group resolve to an SQL query, which in simplified terms would yield something like WHERE active = 1 AND id IN ('...', '...'). So the stream_ids column isn't used to select the contents of a group, but the entire query including all filters is executed in the storefront request. The result of that query is what you see in the preview of the dynamic product group.
Why doesn't it correlate completely with the content of stream_ids?
Shopware features inheritance of fields. If fields of a variant haven't been assigned a value, they may inherit that value from their parents. This may not be reflected in the contents of stream_ids. In fact the children/variants may even inherit the contents of stream_ids.
Then there's the fact that contents of the product group may vary, depending on the current sales channel. That may be because the sales channel features a different language, hence the content of a translatable field used in a filter may vary. Also if you use price filters, there is the possibility of products with multiple prices, which might only be shown if certain conditions are met, defined by the rule builder.
In short, don't count on the stream_ids, which can't reflect all these variables but are used in some capacity internally, for invalidating caches and such. Instead use the preview to judge what the average user might find when they see a product group. There's also the possibility to choose which sales channel the preview should apply to, for the exact reason, that contents may differ depending on the sales channel.

Prestashop partial order invoincing

I would like to know if it is possible to invoice only a part of a client order. I don't want to change the original order of the client. I need to invoice only that articles that I have in my stock. My environment is with no stock.
You can override PDF class, but order total will be different than invoice total and you should add an invoiced total column in AdminOrders vieworder for your info.
I do not see the point about allow orders with no stock products, then not include these in bill but not delete products in order ....
Prestashop statistics will be affected too.
I am not on your shoes, but I advise you to analyze the situation and take the simplest solution.

I would like to run a query to produce a price list for each customer and product taking into consideration promotional prices and discount prices?

We have a number of different promotions (fixed prices and discount %) for each customer. I want to be able to produce an extract so that we can work out what the price the customer would pay if they were entering a Sales Order direct within Epicor. I then want to use this as part on an internal portal so I will store these prices in a seperate table.
I can extract each item individually i.e. customers & products. but I can't seem to get the logic correct for working out the correct sales price.
This is for Epicor 9.05
Thanks
It sounds like you want to use customer price lists to track pricing for your customers. This will allow you to set discounts or custom prices for some or all of your parts.
While the material is proprietary to Epicor, you can take a look at the "Customers and Accounts Receivable" chapter of the EpicorAppplication_UserGuide for your version as found on your EpicWeb customer portal for more information on using these.

Is it possible to show the number of pre-orders on the product page?

My primary business is pre-orders, and this is how it works:
I list an item for sale.
My customers order the item. Their credit card is authorized but not charged.
Once a minimum number of orders are placed, the customers are charged, and the buy is live.
If, after a specified amount of time, the minimum is not reached, all orders are cancelled.
What i would like to do is this:
Specify the minimum number of orders needed for a particular item in the backend. (not 100% needed, but it would be nice).
Display the total number of pre-orders on the product page, so that my customers know how many are left before the buy is live (it would be great to show it in the following format: 23/50 Ordered).
Does anyone know if this is possible? If so, can you please explain to me what I need to do in order to make this happen?
Thanks!
P.S. - In case it doesn't show up, I'm using Bigcommerce
Store the minimum needed as a custom field & set the initial inventory to that same number. You'll also need to allow inventory to be displayed for pre-orders, though you can hide it from display if you'd like (we only want it present in the DOM).
As the products are pre-ordered, inventory will decrement. Use javascript to subtract the number left in inventory from the original number (the custom field) and display in the ProductDetails.html panel.

Odoo invoice items that need to be associated to different analytic accounts

We need to invoice donations that are linked to an analytics account.
We have about 400 projects for which a user can make a donation.
A project is linked to a analytic account and only 1 donation per invoice.
As I understand it correctly, OpenERP/Odoo uses an invoice based on the analytic account to which it is associated at item level.
This would mean that we need to add for every new project/analytic account a new product item to invoice that is linked to the analytic account.
I find this not a good maintainable approach.
So what would be a other approach to invoice projects and make sure that the invoice item is linked to the analytic account?
you are right in odoo you need to select analytic account manually for each associated item.
what you need to do is if you want to set auto analytic account when product will be selected on invoice line.
Create custom module add m2o field inside product and override the on change method of invoice line which will automatically set the analytic account.