Example #1
0
            <th colspan="2">Itens do carrinho</th>
                <th>Preço</th>
                <th>Qtd</th>
            </tr>
            <?php 
foreach ($pedido->itens as $n => $item_pedido) {
    ?>
            <tr>
            <td class="action">
                </td>
            <td class="product"><a href="#"><?php 
    echo $item_pedido->produto->getAttribute("nome");
    ?>
</a> - <span class="availGreen">Em estoque!</span>
                </td>
                <td><span class="price"><?php 
    echo NumberDecorator::Currency($item_pedido->produto->getAttribute("preco"));
    ?>
</span></td>
                <td>
                <?php 
    echo $item_pedido->getAttribute("quantidade");
    ?>
             
                </td>
            </tr>
            <?php 
}
?>
</table>
</form>
Example #2
0
echo $produto->categoria->getAttribute("nome");
?>
</span></div>
			
			<?php 
if ($produto->isAvaiable()) {
    ?>
            	<span class="availGreen">Em estoque!</span>
            <?php 
}
?>
            
            <div id="fechar_pedido">
            	<div>
                    <span class="preco_por"><?php 
echo NumberDecorator::Currency($produto->getAttribute('preco'));
?>
</span>
                </div>
                <form method="post" action="<?php 
echo $this->createCartUrl();
?>
">
                	<input type="hidden" name="Produto[id]" value="<?php 
echo $produto->getPrimaryKey();
?>
" /> 
                	<div>
                    	<label for="qtd">Quantidade</label>
                        <select name="Produto[qtd]" id="qtd">
                        	<option value="1">1</option>
Example #3
0
Yii::import("application.components.NumberDecorator");
?>
	<?php 
foreach ($pedido->itens as $item) {
    ?>
		<tr>
			<td style="padding: 4px"><?php 
    echo $item->produto->getAttribute('nome');
    ?>
</td>
			<td style="padding: 4px"><?php 
    echo $item->getAttribute('quantidade');
    ?>
</td>
			<td style="padding: 4px"><?php 
    echo NumberDecorator::Currency($item->produto->getAttribute('preco'));
    ?>
</td>
		</tr>
	<?php 
}
?>
	</table>
	<div>
		<p style="font-family:'Century Gothic', sans-serif;font-size:28px;color: #333333;padding: 4px">Total: <?php 
echo NumberDecorator::Currency($pedido->getTotal());
?>
</p>
	</div>
</body>
</html>
Example #4
0
        	<div class="imagem">
				<a class="popup" href="<?php 
    echo $this->createUrl("/produto/view", array("id" => $data->getPrimaryKey()));
    ?>
"><img src="<?php 
    echo $this->createUrl("/imagem/show", array("path" => $data->getFilesCustomPath(), "file" => $data->imagem, "width" => 160));
    ?>
" /></a>
			</div>
            <div>
            	<a href="#" class="nome"><?php 
    echo $data->getAttribute("nome");
    ?>
</a>
            	<span class="preco_por"><?php 
    echo NumberDecorator::Currency($data->getAttribute('preco'));
    ?>
</span>
                <span class="descricao">
                	<?php 
    echo $data->getAttribute('descricao_breve');
    ?>
                </span>
            </div>
        </div>
<?php 
}
?>

	<?php 
if ($index > 0 && $index % 3 == 0) {