In the future, could you please post the details of your issue directly in the forum post, rather than on an external link as a) links often end up breaking and b) the content of the google doc is not searchable and so anyone with a similar issue will not be able to find this post.
Bellow is the content of the document as of 2021-04-14 09:15am
1.Case First when calling CalculatePrice() method getting alway 0 price
.html Form Code when call CalculatePrice() method-
In answer to your question, I believe the final exception tells you exactly what the issue is and that is that on your product node you don't have a price property defined (with the alias price) that is using the Vendr: Price property editor. Or if you do have such a property defined, there is no price value on it for the given orders currency.
Issue with veder plugin
We are facing an issue while implementing vendr plugin in our project. The problem is mentioned in the attached link please see.
https://docs.google.com/document/d/1BwtFjNSVKMy0sDkdM2t_yd5-Vtp77ln7LC2eYDNRyrM/edit?usp=sharing
Hi Shyam,
In the future, could you please post the details of your issue directly in the forum post, rather than on an external link as a) links often end up breaking and b) the content of the google doc is not searchable and so anyone with a similar issue will not be able to find this post.
Bellow is the content of the document as of 2021-04-14 09:15am
1.Case First when calling CalculatePrice() method getting alway 0 price
.html Form Code when call CalculatePrice() method-
.cs file Code
See prize on browser-
2.Case Second when calling AddToCart() method getting an error-
Browser view when click on “Add To Cart” Button-
.html form file code-
.cs file code-
Getting error in .cs file screen shot-
After clicking “Add To Cart” Button then browser screen showing that type error-
In answer to your question, I believe the final exception tells you exactly what the issue is and that is that on your product node you don't have a price property defined (with the alias
price
) that is using the Vendr: Price property editor. Or if you do have such a property defined, there is no price value on it for the given orders currency.Please check your products document type and ensure you have the relevant properties defined. You can find details on the various properties Vendr expects in the Vendr docs at https://vendr.net/docs/core/1.6.0/key-concepts/umbraco-properties/
Hope this helps
Matt
is working on a reply...