Shop with product with price eur/m2 
Autor: Andrzej K.
Visitado 366,
Seguidores 2,
Compartilhado 0
Is there any idea to sell product for m2? That means the customer put length and width and we calculate m2 and put the total price that is: price for m2 x calculated m2.
Publicado em

This should probably work with EXTRA code, perhaps KolAsim (moderator) has a solution for this.
With the existing possibilities of WebSite X5 alone it probably won't work.
Autor
Eventually the customer could calculate the surface himself and put the amount for example 1,572 x 80 EUR. I check it is possible - the amount does not have to be an integer.
Autor
Correction - the quantity is set to an integer but in the basket it is possible to change it to not integer. But how to do the quantity in the shop as not integer?
Incomedia would actually have to add this function to the shop so that customers would have 2 input fields for length and width for corresponding products.
The shop operator would then only have to specify the units of measurement (e.g. meters, inches, etc.) and a price per unit of area (e.g. square meters, square inches, etc.).
But it is questionable whether this wish will at some point be implemented by Incomedia for the WebSite X5 shop.
...
Unfortunately, I am not a Javascript expert and cannot create such a script.
Any tricks with the options in the shop are difficult to implement and not particularly customer-friendly.
...
A possible implementation would be an ordering option using a contact form with the corresponding input fields to request all the required information.
Otherwise wait for KolAsim (Modrator) or other users of WebSite X5, maybe the problem has already been solved somehow.
Autor
Incomedia, where are you? Putting no integer amount is technical possible (but only by changing amount in basket) so how to do that in the shop?
Hello Andrzej,
if you are referring to the field where the quantity is specified, it is not meant to support non-integers, as it is used for the actual units of products.
At the moment there are no options for products to be set with a price depending on their length/width/amount, I can report this as a suggestion so that it can be considered in the future.
Alternatively, as Daniel mentioned, it could be possible to intervene with custom code.
I remain available.
Autor
Eric, i am afraid you don't know yuor product. I made tests and it is not possible to add no integer quantity in the shop but you could change quantity on no integer quantity in the basket so it could be possible after small change in code of shop.
If I understand Eric C. correctly, the wish is added to the end of a long wish list and it could take years for the wish to be fulfilled.
The quickest solution would be to have a Javascript expert write HTML code for the input fields and Javascript code for the calculations and for changing the price per unit area to the price of the calculated area.
If Incomedia doesn't fulfill your request and you can't find a Javascript expert, here are my tricks to simulate the length and width input.
To be on the safe side, name the products for which the number of pieces is used for the length specification slightly differently, e.g. with the additional information (order number 1, order number 2 and order number 3) in order to avoid mixing up the orders.
My demo shop (Text translate with Google), see
>> https://findelinks.de/123shop-hosteurope/produktkatalog-mit-spanplatten.html
-----
-----
-----
Since I had to make a new order because a screenshot was lost, there is a small difference - €120.00 / €120.20 - so don't be confused.
-----
-----
-----
The error in the order overview (missing numbers) was caused by a self-inserted CSS code, I have now fixed the error.
UPDATE 1
To make things easier I changed a few things:
There is only one entry in the product list and no additional copies with slightly different titles to prevent mixing.
Instead, in addition to the main option (width), there is also a sub-option (order number) so that the product can be ordered multiple times (whether in the same or a different size).
Tip:
To ensure that the entry in the product list is not too large, a <hr> (dividing line) can be used in the short description text, see screenshot (3) below
----- (1) -----
----- (2) -----
----- (3) -----
Update 2 - Minor changes
-----
Here is information and examples to convert the price in square meters to the prices per centimeter of width and the price at the price difference.
Conversion of prices per square meter into prices per centimeter for width:
100 euros per square meter = 0.01 euros per centimeter of width
90 euros per square meter = 0.009 euros per centimeter of width
89.99 euros per square meter = 0.008999 euros per centimeter of width
100 euros per square meter:
1 cm = 0.01 euro (Price)
2 cm = +0.01 euro (Price difference)
3 cm = +0.02 euro (Price difference)
4 cm = +0.03 euro (Price difference)
5 cm = +0.04 euro (Price difference)
6 cm = +0.05 euro (Price difference)
7 cm = +0.06 euro (Price difference)
8 cm = +0.07 euro (Price difference)
... etc.
5 cm = 0.05 euro (Price)
10 cm = +0.05 euro (Price difference)
15 cm = +0.10 euro (Price difference)
20 cm = +0.15 euro (Price difference)
25 cm = +0.20 euro (Price difference)
30 cm = +0.25 euro (Price difference)
35 cm = +0.30 euro (Price difference)
40 cm = +0.35 euro (Price difference)
... etc.
10 cm = 0.10 euro (Price)
20 cm = +0.10 euro (Price difference)
30 cm = +0.20 euro (Price difference)
40 cm = +0.30 euro (Price difference)
50 cm = +0.40 euro (Price difference)
60 cm = +0.50 euro (Price difference)
70 cm = +0.60 euro (Price difference)
80 cm = +0.70 euro (Price difference)
... etc.
The examples shows that it is easier to calculate the price per square meter with full euro amounts.
And the smaller the width gradations, the longer the list of options becomes.
My version for products with width and length selection requires an explanation for the buyer, see
----- Example text -----
There are a few points to note when ordering:
1.
The width of the chipboard is set in the left selection list.
2.
The length in centimeter is entered in the quantity field (changes can also be made in the shopping cart)
3.
If the product is purchased multiple times, regardless of whether it is in the same or a different size, a different order number must be selected in the right-hand selection list so that the quantities do not mix up, as these are used here for the length of the chipboard.
4.
The price shown is per 1 centmeter length - when you click "Add" the total price of the chipboard is displayed in a pop-up window.
--------------------------
(It > En) ...in addition to what's been suggested, ,,, we could try something with an old idea of mine with the EXTRA code, limiting purchases to a single product per unit at a time, no more than one product...
...here you can see a simulation made for another purpose, which works to give you an idea; basically, the calculation should be done in the "notes" section of the contact form, obviously to be designed, for that specific item/product:
> https://kolasim.websitex5.me/carrello_max1/cartsearch/index.html
.
Bye, ciao
.
Autor
Thank you for your help. I have to analyse all things but my problem is I change also width and length so I think for now the best way for me is to add separate calculator for the customer at website and making price for 0,1 or 0,01 m2 to provide integer quantities for customer.
About incomedia - I know this is company like an old soviet company and the do nothing important for customer quickly, only like there is specified in its 5 or 10-years-plan.
Let's write down what maximum areas are involved and what the length and width specifications should look like, maybe I can then make improvements on my test page.
A new version with an area and price calculator in the pop-up window, see screenshot below
If you are interested, I can provide instructions with the settings and the code.
Here is my test page with the area and price calculator, see
>> https://findelinks.de/123shop-hosteurope/product/?spanplatten-mit-flaechen--und-preisrechner
----- Translation of the instructions in the product description -----
Chipboard 19 mm - product no. 45 355
Wooden panels
The chipboards can have a maximum length of 3 meters and a maximum width of 2.20 meters.
The price per m² is 11.99 euros
__________________________________
[ Open area calculation in popup ]
1. Click on the "Open area calculation in popup" link above and calculate the price based on the desired size and price per m².
2. Write down the product name, product number, length, width and price on a piece of paper; enter this information in the "Comments" field in the shopping cart below the address entry.
3. If the amount in the shopping cart is accidentally rounded down, correct it.
4. If you order the product multiple times, whether in the same or a different size, then choose a different order number from the options. so that no mixing occurs.
----- Screenshot -----
I put a note at the very beginning so that customers in the shop search know that there is a description for the area and price calculator, see
----- Translation -----
Note: Click on the image if the description and link to the area and price calculator are not displayed.
----- Screenshot -----
In the shopping cart, the customer must enter the information previously written down on a piece of paper in the field below according to the following scheme:
Product name - Product number - Width x Length - Price
----- Screenshot -----
I adapted the description for the input field to 2 different types of input:
1. Individual labeling of products
2. Dimensions for width and length of products
----- Screenshot -----