本文整理汇总了PHP中Basic::clearsimbol方法的典型用法代码示例。如果您正苦于以下问题:PHP Basic::clearsimbol方法的具体用法?PHP Basic::clearsimbol怎么用?PHP Basic::clearsimbol使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Basic
的用法示例。
在下文中一共展示了Basic::clearsimbol方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: endstep
function endstep()
{
$_GET['currency'] = 2;
$trans = new Translate();
$trans->currency();
$cart = new Cart();
$cart->refresh_prices_product();
$order = $_SESSION['conf']['order'];
$_SESSION['conf']['cart']['uniqueid'] = time();
$totalvalue = $_SESSION['conf']['cart']['subtotal_noformat'] + $_SESSION['conf']['order']['district_price'];
Basic::currency($totalvalue);
Basic::clearsimbol($totalvalue);
Basic::currency($order['district_price']);
Basic::clearsimbol($order['district_price']);
$_SESSION['conf']['cart']['product'][0] = array('name_product' => "envio a {$order['district_name']}", 'quantity' => '1', 'subtotal' => $order['district_price']);
// echo $totalvalue;
$view = View::factory("extras/pay_paypal")->set("direccion_entrega", $order['address'])->set("distrito_entrega", $order['district_name'])->set("zip_entrega", "")->set("idunico", $_SESSION['conf']['cart']['uniqueid'])->set("valorcarro", "{$totalvalue}")->set("products", $_SESSION['conf']['cart']['product'])->render();
// echo Kohana::debug($_SESSION);
return $view;
}
示例2: foreach
width: 300px;
}
</style>
<form action='<?php
echo $url_2checkout;
?>
' method='post' class="2co">
<input type='hidden' name='sid' value='<?php
echo $sid_2checkout;
?>
'/>
<input type='hidden' name='mode' value='2CO'/>
<?php
$ct = 0;
foreach ($products as $id => $properties) {
Basic::clearsimbol($properties['subtotal']);
?>
<input type='hidden' name='li_<?php
echo $ct;
?>
_type' value='product'/>
<input type='hidden' name='li_<?php
echo $ct;
?>
_name' value='<?php
echo $properties['name_product'];
?>
'/>
<input type='hidden' name='li_<?php
echo $ct;
?>
示例3: isset
if ($payment_type == 'Pay_2co') {
?>
<?php
$_SESSION['previous_currency'] = isset($_SESSION['conf']['currency']) ? $_SESSION['conf']['currency'] : 1;
$_GET['currency'] = 2;
$trans = new Translate();
$trans->currency();
$cart = new Cart();
$cart->refresh_prices_product();
$order = $_SESSION['conf']['order'];
$_SESSION['conf']['cart']['uniqueid'] = time();
$totalvalue = $_SESSION['conf']['cart']['subtotal_noformat'] + $_SESSION['conf']['order']['district_price'];
Basic::currency($totalvalue);
Basic::clearsimbol($totalvalue);
Basic::currency($order['district_price']);
Basic::clearsimbol($order['district_price']);
$_SESSION['conf']['cart']['product'][0] = array('name_product' => "envio a {$order['district_name']}", 'quantity' => '1', 'subtotal' => $order['district_price']);
echo View::factory('extras/pay_2co2')->set("country", $country)->set("client", $client)->set("products", $_SESSION['conf']['cart']['product'])->set("ship_name", $_SESSION['conf']['order']['fname'] . " " . $_SESSION['conf']['order']['lname'])->set("direccion_entrega", $_SESSION['conf']['order']['single_address'])->set("distrito_entrega", $_SESSION['conf']['order']['district_name'])->set("ship_city", $_SESSION['conf']['order']['city'])->set("ship_state", $_SESSION['conf']['order']['state'])->set("ship_zip", $_SESSION['conf']['order']['postal'])->set("ship_country", $_SESSION['conf']['order']['country'])->set("email", $_SESSION['conf']['order']['client_email'])->set("phone", $_SESSION['conf']['order']['phone'])->render();
?>
<?php
} else {
?>
<form method="POST">
<div class="btn_ingresar" align="right" style="margin-bottom:20px;"><input type="submit"
value="<?php
__("Confirmar");
?>
"/>
</div>
</form>
<?php