On my Basket page, I would like to perform 2 calculations. The first will be the total of all items in the shopping cart (like normal). The second will be the total of only specific items who's product code begins with a specific string of letters.
For instance, let's say I've added the following product codes to my shopping cart:
ABC-product1 ($10.00)
ABC-product2 ($10.00)
XYZ-product1 ($10.00)
ABC-product3 ($10.00)
I would like to display a total for all of those items combined ($40.00).... as well as a total for ONLY the items beginning with ABC ($30.00).
I should point out that i don't need a second checkout button. The checkout button, on the page, will still calculate the full total, like normal. I just need that second calculation so that I have a running tally of how much the customer has spent on the 'ABC' product line, so that I can display other information on the page if they've reached a certain amount.
Is this possible?
Any help would be appreciated!
Thanks!
For instance, let's say I've added the following product codes to my shopping cart:
ABC-product1 ($10.00)
ABC-product2 ($10.00)
XYZ-product1 ($10.00)
ABC-product3 ($10.00)
I would like to display a total for all of those items combined ($40.00).... as well as a total for ONLY the items beginning with ABC ($30.00).
I should point out that i don't need a second checkout button. The checkout button, on the page, will still calculate the full total, like normal. I just need that second calculation so that I have a running tally of how much the customer has spent on the 'ABC' product line, so that I can display other information on the page if they've reached a certain amount.
Is this possible?
Any help would be appreciated!
Thanks!
Comment