Shopware 6 administration: on create new product, price cannot be null - shopware6

If i create a new product price.net === null & price.gross === null the product can't be saved.
What is the concept behind this? Why can a product.price not be null?

In the context of a commerce platform a product should have a price, even if it may be 0. Otherwise every application of a price calculation would have to take into account, that a price might be null, which just isn't feasible.

Related

How to write a SQL function into Acces 2003

So I have an acces table : Data
Data is made of :
Client ID
Product ID
Sell Category ( exemple : Sell Dones, Sell Planed ,Forecast Sales) ,written all in letters
Quantity sold .
unitary price.
I am trying to build a single Acces query which would display things like :
|Client ID||Product ID||Total Sell Dones||Total Sell Planed||Total Forecast Sell||Quantity Sell Dones||Quantity Sell Planed||Quantity Forecast|
How can I do that ?
Like if I had only one type of sell and one single quantity I could simply do :
SELECT (sells*quantity) AS [Total Sells]
But the thing here is have different quantity and different types of sells could I put IF into the select ?
Something like :
Select (IF Data.Sell Category="Planned Sell" THEN quantity Sold*Unitary Price
ELSE 0) as [Total Planned Sell] , etc etc (for every single one ?
The thing is I am using acces 2003 and I dont think I can create a sql function in acces 2003 and use it in my select , but if I can I am willing to do so , else if I can only use "select,delete,update " in acces 2003 I guess I will have to do it like this

SQL: Conditional Percentage Increase

Using Bartender custom SQL, I am attempting to add 20% to a label price if it is VAT applicable (i.e. if it has a tax ID of 2583)
The information for tax is stored in one database table called StockItem.TaxCodeID, and the price is stored in another called StockItemPrice.Price.
Is there a way to make this happen? I'm very new to SQL and have gotten by so far using the query and join tools included with bartender, and the code it generates makes logical sense to me.
SELECT "dbo"."StockItem"."Code", "dbo"."StockItem"."Name", "dbo"."StockItem"."TaxCodeID", "dbo"."StockItem"."PartNumber", "StockItemPrice"."Price" FROM "dbo"."StockItem" , "StockItemPrice"
WHERE "dbo"."StockItem"."ItemID" = "StockItemPrice"."ItemID"
AND
("StockItemPrice"."PriceBandID" = 1001
AND "dbo"."StockItem"."Code" LIKE '6%'
AND "dbo"."StockItem"."PartNumber" LIKE '%?BarcodeSearch1%'
AND "dbo"."StockItem"."Name" LIKE '%?NameSearch%'
AND "dbo"."StockItem"."TaxCodeID" = 258
Sorry in advance if I haven't provided enough information, I'll do my best to add more if needed!
Use case when statement,
select *, CASE taxid
WHEN taxid=2538 THEN price *1.20
else price
END as newcolumn
from stockitem

how to set discount price for multiple products in prestashop

I am using prestashop version 1.5.4.1
I am need to set clearance sale offer to my shopping site (particular date).
In particular date i need to set discount price for all products in my products by common.
EXAMPLE : I have 250 products in my catalog. I need to discount price $100 for all products from june-24 to june 30. How to set in a one click
You can easily set a "Catalog price rule" in your PrestaShop Back-office.
Go to "Price rules > Catalog price rule" and create a new rule.
It will allow you to select various criteria and the amount or percentage of reduction you would like to apply to all the related products.
You can also cumulate the criteria, example:
For all products in the "T-shirts" category
With "XXXXX" as a Manufacturer
and with the color "Blue"
=> Apply a discount of 30%
Regards,

range price in openerp

Can I make a price limit or like range price ? so if the prices are beyond the type that has been specified, it will come out a warning. I tried setting in the price list. but still can not
is there a module that?
Yes you can have feature like this .
Please provide 2 fields in product min_price and max_price
in SOL or POL override the onchange events of the product and check for the condition and return warning in case of the conditions .

How to change the order number

My site is new and as in the below text the "order number" has reached only 57. But without creating any products in real I want the product number to start at some 500. So if a customer buys a product tomorrow, he/she should get "order number" as 500.
I understand we can change the product number in field:order_id table uc_orders by creating a dummy record with order_id of 499 or so. But will it affect anything else?
Order Grand Total: Rs. 20.00 Payment
Method: Bank Transfer To: Reason
for payment: order number 57
Assuming you're using Drupal 6, the Ubercart FAQ on How do I set/reset the starting order number for my store? suggests using of the following:
alter table uc_orders auto_increment = 999;
I've used that technique on a couple of sites without any problems.