Do you have some feature in mind that you'd love to see in Couch? Let us know.
16 posts Page 2 of 2
@scratz, you mentioned -
Sometimes, taxes on the full value of certain discounted products need to be charged, and sometimes there are items that don't require taxes to be charged.
From what I could understand, there are certain products that may have 'Item level discounts' configured (which serves to reduce their effective prices) but you'd still want to tax these products at their original prices (and this tax percentage could be product specific). Conversely. there are certain products that do not need to be taxed at all.

Did I get the use-case right?

Is there any way to create an option for each product that is something along the lines of "full tax / tax-discount / no-tax" to be taken into consideration during the tax calculations?
Assuming I got the use-case correct above, we can have a dropdown for every product with these four values where -

'normal tax' - Default. Calculate tax on the discounted price using the percentage specified in config file. Thus is how things normally work.
'full tax' - calculate tax on the original undiscounted price using the percentage specified in config file.
'tax-percentage ' - conditionally show a text-box where the user can specify a custom tax percentage and this would be then used to calculate tax on the original undiscounted price.
'no-tax' - zero tax.

As @trendoman mentioned, in the get_taxes() function of cart_ex.php, we can loop through all items in the cart and calculate tax according to the selected values.
Tax on shipping can be added to the calculated value if desired.

How does that sound?
Hello @KK.

Yes, you have the use case correct. I didn't even think about the idea that some items are taxed differently than others. Liquor for example would be taxed heavily, whereas a candy bar would be normally taxed, whereas tomatoes wouldn't be taxed at all. Imported or out of state items could be taxed differently as well. I wonder if the taxing could even be considered per user-created category?

So, as the store with the website, I can fill out a category for products, and in this category, I will also put the tax percent. Then any product assigned to that category would have that tax percent added. Even then a discounted price would still charge THAT percentage. In this way, there could be a category called "Food / Non-Taxable" with a percentage of 0. Italian imports tax 10%, toiletries 8.258%, etc.

Does that make sense? Is something like that doable?
Does that make sense? Is something like that doable?

We can have a separate clonable template for 'Tax Class' having an editable region for the percentage value.
Each tax class (e.g. 'zero tax' etc.) would be created as its page with the percentage value specified.
We can then put a relational field in the products template relating it with the tax class above.

Any product that does not have a relation value set would have the taxes calculated normally (i.e. using default value from the config against the discounted price).

However, if the user chooses to relate a product with any Tax class, the percentage value would be fetched and used for the calculation against the full price.

Would this suffice?
Would this suffice?


Hello @KK,

Yes, I think this is a great solution! This way the clonable template can have an authorization set so a normal user (say, one that inputs products) can't go and create their own tax category (something that should be reserved for admis).

The only other thing I would question and hope to see is, in the cart, will these taxable categories (cloned pages) be itemized in the total? So the user would be able to see the amount of tax in each?
will these taxable categories (cloned pages) be itemized in the total? So the user would be able to see the amount of tax in each?
Could you please elaborate on this point?
I'd like to see a table (representing the cart) showing how you'd like to see the items in it.
You're right @KK, that is confusing, I apologize.

What I meant to say, is in the Cart page, when all the totals and discounts are listed for the grand total like in this code:

Code: Select all
<table>
<tr >
<td colspace='2'>Cart Summary</td>
</tr>
<tr>
<td>Items</td><td>1</td>
</tr>
<tr>
<td>Sub Total</td><td>$55.00</td>
</tr>
<tr>
<td>Discounts</td><td>--</td>
</tr>
<tr>
<td>Taxes</td><td>$ 4.81</td>
</tr>
<tr>
<td>Shipping Cos</td><td>t$ 3.00</td>
</tr>
<tr>
<td>Grand Total</td><td>$62.61</td>
</tr>
</table>



Could it be something like this?

Code: Select all
<table>
<tr >
<td colspace='2'>Cart Summary</td>
</tr>
<tr>
<td>Items</td><td>1</td>
</tr>
<tr>
<td>Sub Total</td><td>$55.00</td>
</tr>
<tr>
<td>Discounts</td><td>--</td>
</tr>
<tr>
<td>Taxes</td><td>$ 4.81</td>
</tr>
<tr>
<td>Liquor Tax</td><td>$ 5.26</td>
</tr>
<tr>
<td>Imported Goods Tax</td><td>$ 2.07</td>
</tr>
<tr>
<td>Shipping Cos</td><td>t$ 3.00</td>
</tr>
<tr>
<td>Grand Total</td><td>$62.61</td>
</tr>
</table>

Something like that? Where the tax categories (or cloned pages) are listed? Does that make more sense?
16 posts Page 2 of 2