jvpolivares Posted September 12, 2011 Share Posted September 12, 2011 Hi there, I'm trying to create a new module to calculate the volume of products, in the cart. The max volume is a constant, the container capacity, in container.php, I define the variable $smarty->assign('Volumen',0); in container.tpl foreach (from=$products item=product name='myLoop') { $Volumen=$Volumen+($cart_qties*$product.supplier_reference) } {$Volumen} {l s=' % Loaded'} even if I only put in container.tpl {$Volumen} {l s=' % Loaded'} d'ont show me 0 % Loaded. Does anyone kwons what happens, Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now