$cart_subtotal in cart_totals.tpl --> using different val
The Problem is, that the $cart_subtotal shows the net price. In the country the shop will be used in, the net price must not be shown to private customers. Is there another variable i could use here that shows the product gross price before discounts and shipping are added.
CU Tim |
yes, find the function that creates the $cart_subtotal and find out what the variable name is of the root price before it does the calculations of adding discount and shipping. Then I would assume you would want to make internationl customers a diff usertype then other customers so you could put an if statement like {if $usertype eq "Iinternational"} Show regular price {else} show $cart_subtotal {/if}
Something like that. Hope that helps. I'll look around for that variable. I am making a personal list variables made in xcart and what they do, I am new to all this as well and knowing what variables are named and what there function is would be a great help. I will post it on here for everyone once I get it a good size, unless there is already something like this available. |
sounds logical - but i cannot locate a variable in the alter_currecy_value.tpl, wich should be the place, where the variable values are changed. Or am i searching in the wrong place?
|
Quote:
Please let us know when you have finished if your able to post it for the community. A well done list of variables and what they do is escential IMO for any XCART developer. |
All times are GMT -8. The time now is 04:19 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.