Example #1
0
            <label for="from">De: </label>
          </div>
          <div class="col-xs-10">
            <input id="from" type="text" class="forms-control" name="cost1" value="<?php 
echo prep_cost(round($search->filter->cost1 > 0 ? $search->filter->cost1 : 0), false, false);
?>
" >
          </div>
        </div>
        <div class="row">
          <div class="col-xs-2">
            <label for="to">A: </label>
          </div>
          <div class="col-xs-10">
            <input id="to" name="cost2" value="<?php 
echo prep_cost(round($search->filter->cost2 > 0 ? $search->filter->cost2 : $maxCost), false, false);
?>
" type="text" class="forms-control">
          </div>
        </div>
        </div>            
        <div class="col-sm-3 sizes text-center">
          <label class="label-mobile">Talla</label>
          <div class="btn-group margin-bottom" role="group">
            <button type="button" data-value="XS" class="btn btn-default<?php 
if ($search->filter->size == 'XS') {
    ?>
 active<?php 
}
?>
">XS</button>
Example #2
0
 public function ItemCost($cost = 0, $symbol = true)
 {
     return prep_cost($cost, $symbol, false);
 }
Example #3
0
    echo $b->id_book;
    ?>
/<?php 
    echo prep_word_url($b->title);
    ?>
" class="app-loader">
					<figure><img src="<?php 
    echo thumb($b->file, 235, 300, false);
    ?>
" alt=""></figure>
					<h2><?php 
    echo $b->title;
    if (round($b->cost)) {
        ?>
 <span class="cost">• <?php 
        echo prep_cost($b->cost);
        ?>
</span><?php 
    }
    ?>
</h2>
				</a>
			</div>
			<?php 
}
?>
		</div>
	</div>
</div>
<script>
$(document).ready(function() {
Example #4
0
<div class="row products-list">
  <?php 
foreach ($productsSearch as $item) {
    $itemUriName = prep_word_url($item->name);
    $inCart = $this->Cart->ItemExists($item->id, 0, 0);
    $itemCost = prep_cost($item->cost, true, false);
    if (round($item->cost2) == round($item->cost)) {
        $item->cost2 = 0;
    }
    $colors = $this->Data->ProductColors($item->id);
    ?>
  <div class="col-sm-3 product-list-item">
      <div class="cover style3 product-preview" style="background-image:url('<?php 
    echo thumb($item->file, 386, 450);
    ?>
')">
      <?php 
    if ($item->id_state != 1) {
        ?>
      <span class="badge badge-outstock"><?php 
        echo $item->state;
        ?>
</span>
      <?php 
    } elseif (round($item->cost2) && ($perc = round(($item->cost2 - $item->cost) / $item->cost2 * 100)) >= 5) {
        ?>
        
      <span class="badge badge-discount rbadge-discount"><?php 
        echo $perc;
        ?>
%</span>
Example #5
0
        ?>
"><img src="<?php 
        echo thumb($item->file, 90, 90, false);
        ?>
" /></a></td>
			<td class="name">
				<div class="title">
					<a class="app-loader" href="<?php 
        echo $link;
        ?>
"><?php 
        echo $item->title;
        if (round($item->cost)) {
            ?>
 • <?php 
            echo prep_cost($item->cost);
        }
        ?>
</a>
				</div>
				<div class="cart noselect">
					<div class="button button-less">-</div>
					<div class="count"><?php 
        echo round($item->items);
        ?>
</div>
					<div class="button button-more">+</div>
					<?php 
        $sizes = $this->Cart->Sizes($item->id);
        ?>
     	    <?php 
Example #6
0
</span></p>
                <?php 
    if (isset($cartDisabled) && isset($coupon1)) {
        ?>
                <p><span class="txt_total hsub">Cupon (<?php 
        echo $coupon1->value;
        ?>
%)_</span><span class="ff" id="cupon">- <?php 
        echo prep_cost($cuponST, true, false);
        ?>
</span></p>
                <?php 
    }
    ?>
                <p><span class="txt_total hstyle1">Total_</span><span class="ff bb" id="total"><?php 
    echo prep_cost($subtotal, true, false);
    ?>
</span></p>
                <div class="clearboth"></div>
              </div> 
            </div> 
            <div class="clearboth"></div>

      <?php 
}
?>
<script>

$(document).ready(function() {
  <?php 
if (!isset($cartDisabled)) {
Example #7
0
    if (!isset($cartDisabled)) {
        ?>
                        <th></th>
                        <?php 
    }
    ?>
                    </tr>
                </thead>
                <?php 
    $subtotal = 0;
    $shipping = 0;
    foreach ($cartItems as $item) {
        $link = base_url() . 'libro/' . $item->id . '/' . prep_word_url($item->title);
        $itemCost = prep_cost($item->cost, true, false);
        $itemCostIVA = prep_cost($item->cost * 0.96, true, false);
        $itemCostST = prep_cost($item->cost * round($item->items), true, false);
        if ($item->active == 1) {
            $subtotal += $item->cost * round($item->items);
        }
        if ($item->active != 1 && isset($cartDisabled)) {
            continue;
        }
        $inCart = $this->Cart->ItemExists($item->id, 0, 0);
        ?>
                    <tr data-value="<?php 
        echo $item->active == 1 ? $item->cost : 0;
        ?>
" data-id="<?php 
        echo $item->iditem;
        ?>
">
Example #8
0
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <?php 
    $first = false;
}
?>
     
            </div>

            <div class="row">
                <div class="col-xs-12">
                  <div class="product-price"><span>Total: <span id="totalLook"><?php 
echo prep_cost($look->cost, false, false);
?>
</span>€</span></div>
                  <div class="col-sm-offset-3 col-sm-6" style="margin-top: 40px;">
                    <button class="btn btn-block btn-default open-guide">Guía de tallas</button>
                    <button class="btn btn-block btn-primary button-buy">Comprar</button>
                  </div>
                </div>
              </div>
            </div>


          </div>
        </div>
      </div>
    </div>
Example #9
0
<?php

if (!AJAX) {
    $this->load->view('common/header');
}
?>
<div class="app-section section-product">
	<div class="info">
		<div class="app-inside">
			<div class="cc">
				<h1><?php 
echo $product->title;
if (round($product->cost)) {
    ?>
 • <?php 
    echo prep_cost($product->cost);
}
?>
</h1>
				<?php 
if (round($product->cost)) {
    ?>
				<div class="cart noselect">
					<div class="button button-less">-</div>
					<div class="count">1</div>
					<div class="button button-more">+</div>
					<div class="button button-add">Add to cart</div>
				</div>
				<?php 
}
?>
Example #10
0
}
?>
        
  </tbody>
</table>      
<div style="font-size:12px;margin-bottom:20px;margin-top:20px;text-align:right">
  <div style="margin-right:10px">
    <div style="font-size:15px;margin-top:2px"><span style="font-weight:bold">Subtotal:</span> <span style="display:inline-block;width:100px"><?php 
echo prep_cost($cdata->subtotal, true, false);
?>
</span></div>
    <div style="font-size:15px;margin-top:2px"><span style="font-weight:bold">IVA:</span> <span style="display:inline-block;width:100px"><?php 
echo prep_cost($cdata->tax, true, false);
?>
</span></div>
    <?php 
if (round($cdata->desc1)) {
    ?>
    <div style="font-size:15px;margin-top:2px"><span style="font-weight:bold">Descuento:</span> <span style="display:inline-block;width:100px"><?php 
    echo prep_cost($cdata->desc1, true, false);
    ?>
</span></div>
    <?php 
}
?>
    <div style="font-size:18px;margin-top:5px"><span style="font-weight:bold">Total:</span> <span style="display:inline-block;width:100px"><?php 
echo prep_cost($cdata->total, true, false);
?>
</span></div>
  </div>
</div>
Example #11
0
    echo $cart->id_cart;
    ?>
" target="_blank"><?php 
    echo str_pad($cart->id_cart, 6, "0", STR_PAD_LEFT);
    ?>
</a></td>
					          <td><?php 
    echo isset($shipping->expedicion) ? $shipping->expedicion : "-";
    ?>
</td>
					          <td><?php 
    echo $cart->state;
    ?>
</td>
					          <td><?php 
    echo prep_cost($cart->total, true, false);
    ?>
</td>
					        </tr>
					      	<?php 
}
?>
					      </tbody>
					    </table>
					    <?php 
if (!count($carts)) {
    ?>
					    <div class="no-history">NO HAY PEDIDOS EN EL HISTORIAL</div>
					  	<?php 
}
?>