VM2Sellscount modification

More
10 years 1 month ago #21468 by nordmograph
OK I get it so it must show

total sales * (20% of the product price) + sum of all donations for this product.

Which means the shop is donating 20% and customers donate what they want.

Is that it ?

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago - 10 years 1 month ago #21479 by calavaro
Replied by calavaro on topic VM2Sellscount modification
Yes, that is it!

Double double confirm with several examples...
Example 1
T-Shirt Price: US$ 30
Voluntary donation: US$ 5
Output: (30*0.2)+5 = 11

Example 2
T-Shirt Price: US$ 30
Voluntary donation: US$ 7
Output: (30*0.2)+7 = 13

Example 3
T-Shirt Price: US$ 30
Voluntary donation: US$ 0
Output: (30*0.2)+0 = 6

Example 4
T-Shirt Price: US$ 30
Voluntary donation: US$ 1000
Output: (30*0.2)+1000 = 1006

The output for "Donated so far:" should be a running total
After Example 1: "Donated so far: US$ 11"
After Example 2: "Donated so far: US$ 24"
After Example 3: "Donated so far: US$ 30"
After Example 4: "Donated so far: US$ 1036"

:)
Last edit: 10 years 1 month ago by calavaro.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago - 10 years 1 month ago #21480 by nordmograph
Not yet ... :)
When I said:
total sales * (20% of the product price) + sum of all donations for this product.
I was wrong right ?
Site gives 20% only once (not on every sales) right?

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.
Last edit: 10 years 1 month ago by nordmograph.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #21481 by calavaro
Replied by calavaro on topic VM2Sellscount modification
The site gives 20% donation for every 1 item sold.

Lets assume 10 sales, and price is US$ 30 per sale.
That means the site is giving 10*30*20% = US$ 60 in total.
Then add any voluntary donations on top of that (example 3 voluntary donations of 5, 10 and 15).
The total donated is US$ 60+5+10+15 = US$ 90

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #21484 by nordmograph
Ok so I was right. let's go.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #21489 by calavaro
Replied by calavaro on topic VM2Sellscount modification
Please let me know if there is anything else you need from me and the estimated time of delivery. Thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.331 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.