本文整理汇总了PHP中CitruscartHelperBase::addJsTranslationStrings方法的典型用法代码示例。如果您正苦于以下问题:PHP CitruscartHelperBase::addJsTranslationStrings方法的具体用法?PHP CitruscartHelperBase::addJsTranslationStrings怎么用?PHP CitruscartHelperBase::addJsTranslationStrings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CitruscartHelperBase
的用法示例。
在下文中一共展示了CitruscartHelperBase::addJsTranslationStrings方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
# @license GNU/GPL Based on Tienda by Dioscouri Design http://www.dioscouri.com.
-------------------------------------------------------------------------*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
JHtml::_('stylesheet', 'media/citruscart/css/pos.css');
JHtml::_('stylesheet', 'media/citruscart/css/citruscart.css');
$row = @$this->product;
$values = @$this->values;
$changed_attr = isset($values['changed_attr']) ? $values['changed_attr'] : -1;
$changed_pao = -1;
if ($changed_attr > -1) {
$changed_pao = $values['attribute_' . $changed_attr];
}
Citruscart::load('CitruscartHelperBase', 'helpers._base');
$js_strings = array('COM_CITRUSCART_UPDATING_ATTRIBUTES');
CitruscartHelperBase::addJsTranslationStrings($js_strings);
$helper_product = CitruscartHelperBase::getInstance('Product');
// Selected attribute options (for child attributes)
$selected_opts = !empty($this->selected_opts) ? json_decode($this->selected_opts) : 0;
if (!count($selected_opts)) {
$selected_opts = 0;
}
$attributes = CitruscartHelperProduct::getAttributes($row->product_id, $selected_opts);
$default = CitruscartHelperProduct::getDefaultAttributeOptions($attributes);
// First view of the page: select the first value in the list
if (!$selected_opts) {
$selected_opts = $default;
$selected_opts[] = 0;
}
foreach ($attributes as $attribute) {
?>