当前位置: 首页>>代码示例>>PHP>>正文


PHP shopFunctionsF::renderVmSubLayout方法代码示例

本文整理汇总了PHP中shopFunctionsF::renderVmSubLayout方法的典型用法代码示例。如果您正苦于以下问题:PHP shopFunctionsF::renderVmSubLayout方法的具体用法?PHP shopFunctionsF::renderVmSubLayout怎么用?PHP shopFunctionsF::renderVmSubLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在shopFunctionsF的用法示例。


在下文中一共展示了shopFunctionsF::renderVmSubLayout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

         echo $currency->createPriceDiv('salesPrice', JText::_("Price: "), $price, false, false, 1.0, true);
     }
     if (!empty($item->prices['salesPriceWithDiscount'])) {
         echo $currency->createPriceDiv('salesPriceWithDiscount', JText::_("Price: "), $price, false, false, 1.0, true);
     }
     echo '</div>';
     echo '</div>';
 }
 ?>
         <?php 
 if ($params->get('item_addtocart_display', 1)) {
     $_item['product'] = $item;
     ?>
             <div class="item-addtocart">
                 <?php 
     echo shopFunctionsF::renderVmSubLayout('addtocart', $_item);
     ?>
             </div>
         <?php 
 }
 ?>
         <div class="content-date-read">
             <?php 
 if ((int) $params->get('item_description_display', 1) && VMListingTabsHelper::_trimEncode($item->_description) != '') {
     ?>
                 <div class="item-desc">
                     <?php 
     echo $item->_description;
     ?>
                 </div>
             <?php 
开发者ID:proyectoseb,项目名称:Matrix,代码行数:31,代码来源:default_items.php

示例2: getUserFieldsFilled


//.........这里部分代码省略.........
							}							// 							vmdebug('emailaddress',$_fld);
						case 'text':
						case 'webaddress':

							$_return['fields'][$_fld->name]['formcode'] = '<input type="text" id="'
							. $_prefix.$_fld->name . '_field" name="' . $_prefix.$_fld->name.'" size="' . $_fld->size
							. '" value="' . $_return['fields'][$_fld->name]['value'] .'" '
							. ($_fld->required ? ' class="required"' : '')
							. ($_fld->maxlength ? ' maxlength="' . $_fld->maxlength . '"' : '')
							. $readonly . ' /> ';
							break;
						case 'textarea':
							$_return['fields'][$_fld->name]['formcode'] = '<textarea id="'
							. $_prefix.$_fld->name . '_field" name="' . $_prefix.$_fld->name . '" cols="' . $_fld->cols
							. '" rows="'.$_fld->rows . '" class="inputbox" '
							. $readonly.'>'
							. $_return['fields'][$_fld->name]['value'] .'</textarea>';
							break;
						case 'editorta':
							jimport( 'joomla.html.editor' );
							$editor = JFactory::getEditor();
							$_return['fields'][$_fld->name]['formcode'] = $editor->display($_prefix.$_fld->name, $_return['fields'][$_fld->name]['value'], '150', '100', $_fld->cols, $_fld->rows,  array('pagebreak', 'readmore'));
							break;
						case 'checkbox':
							$_return['fields'][$_fld->name]['formcode'] = '<input type="checkbox" name="'
							. $_prefix.$_fld->name . '" id="' . $_prefix.$_fld->name . '_field" value="1" '
							. ($_return['fields'][$_fld->name]['value'] ? 'checked="checked"' : '') .'/>';
							 if($_return['fields'][$_fld->name]['value']) {
								 $_return['fields'][$_fld->name]['value'] = vmText::_($_prefix.$_fld->title);
							 }
							break;
						case 'custom':
							if(!class_exists('shopFunctionsF'))require(VMPATH_SITE.DS.'helpers'.DS.'shopfunctionsf.php');
							$_return['fields'][$_fld->name]['formcode'] =  shopFunctionsF::renderVmSubLayout($_fld->name,array('field'=>$_return['fields'][$_fld->name],'userData' => $_userData,'prefix' => $_prefix));
							break;
							// /*##mygruz20120223193710 { :*/
						// case 'userfieldplugin': //why not just vmuserfieldsplugin ?
							// JPluginHelper::importPlugin('vmuserfield');
							// $dispatcher = JDispatcher::getInstance();
							// //Todo to adjust to new pattern, using &
							// $html = '' ;
							// $dispatcher->trigger('plgVmOnUserFieldDisplay',array($_return['fields'][$_fld->name], &$html) );
							// $_return['fields'][$_fld->name]['formcode'] = $html;
							// break;
							// /*##mygruz20120223193710 } */
						case 'multicheckbox':
						case 'multiselect':
						case 'select':
						case 'radio':
							$_qry = 'SELECT fieldtitle, fieldvalue '
							. 'FROM #__virtuemart_userfield_values '
							. 'WHERE virtuemart_userfield_id = ' . $_fld->virtuemart_userfield_id
							. ' ORDER BY ordering ';
							$_values = $this->_getList($_qry);
							// We need an extra lok here, especially for the Bank info; the values
							// must be translated.
							// Don't check on the field name though, since others might be added in the future :-(

							foreach ($_values as $_v) {
								$_v->fieldtitle = vmText::_($_v->fieldtitle);
							}
							$_attribs = array();
							if ($_fld->readonly and !$admin) {
								$_attribs['readonly'] = 'readonly';
							}
							if ($_fld->required) {
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:67,代码来源:userfields.php

示例3: array

    </div>

    <div class="clear"></div>
</div> 
<!-- end of orderby-displaynumber -->

   <!--<h1><?php 
    //echo $this->category->category_name;
    ?>
</h1>-->

    <?php 
    if (!empty($this->products)) {
        $products = array();
        $products[0] = $this->products;
        echo shopFunctionsF::renderVmSubLayout($this->productsLayout, array('products' => $products, 'currency' => $this->currency, 'products_per_row' => $this->perRow, 'showRating' => $this->showRating));
        ?>

<div class="orderby-displaynumber bottom">
	<div class="vm-view-list col-md-2 col-sm-3 col-xs-12">
	<div class="icon-list-grid">
		<div class="vm-view  vm-grid active" data-view="vm-grid"><i class="listing-icon"></i></div>
		<div class="vm-view vm-list" data-view="vm-list"><i class="listing-icon"></i></div>
	</div>
    </div>
    
    <div class="toolbar-center col-md-6 col-sm-5 col-xs-12">
        <div class="vm-order-list">
            <?php 
        echo $this->orderByList['orderby'];
        ?>
开发者ID:proyectoseb,项目名称:Matrix,代码行数:31,代码来源:default.php

示例4: displayProductCustomfieldFE


//.........这里部分代码省略.........
                         $values = explode(';', $customfield->custom_value);
                         foreach ($values as $key => $val) {
                             if ($type == 'M') {
                                 $tmp = array('value' => $val, 'text' => $this->displayCustomMedia($val, 'product', $customfield->width, $customfield->height));
                                 $options[] = (object) $tmp;
                             } else {
                                 $options[] = array('value' => $val, 'text' => vmText::_($val));
                             }
                         }
                         $currentValue = $customfield->customfield_value;
                         $customfield->display = JHtml::_($selectType, $options, $customProductDataName . '[' . $customfield->virtuemart_customfield_id . ']', $class, 'value', 'text', $currentValue, $idTag);
                     } else {
                         if ($type == 'M') {
                             $customfield->display = $this->displayCustomMedia($customfield->customfield_value, 'product', $customfield->width, $customfield->height);
                         } else {
                             $customfield->display = vmText::_($customfield->customfield_value);
                         }
                     }
                 } else {
                     if (!empty($customfield->is_input)) {
                         if (!isset($selectList[$customfield->virtuemart_custom_id])) {
                             $tmpField = clone $customfield;
                             $tmpField->options = null;
                             $customfield->options[$customfield->virtuemart_customfield_id] = $tmpField;
                             $selectList[$customfield->virtuemart_custom_id] = $k;
                             $customfield->customProductDataName = $customProductDataName;
                         } else {
                             $customfields[$selectList[$customfield->virtuemart_custom_id]]->options[$customfield->virtuemart_customfield_id] = $customfield;
                             unset($customfields[$k]);
                             //$customfield->options[$customfield->virtuemart_customfield_id] = $customfield;
                         }
                         $default = reset($customfields[$selectList[$customfield->virtuemart_custom_id]]->options);
                         foreach ($customfields[$selectList[$customfield->virtuemart_custom_id]]->options as &$productCustom) {
                             $price = self::_getCustomPrice($productCustom->customfield_price, $currency, $calculator);
                             if ($type == 'M') {
                                 $productCustom->text = $this->displayCustomMedia($productCustom->customfield_value, 'product', $customfield->width, $customfield->height) . ' ' . $price;
                             } else {
                                 $trValue = vmText::_($productCustom->customfield_value);
                                 if ($productCustom->customfield_value != $trValue and strpos($trValue, '%1') !== false) {
                                     $productCustom->text = vmText::sprintf($productCustom->customfield_value, $price);
                                 } else {
                                     $productCustom->text = $trValue . ' ' . $price;
                                 }
                             }
                         }
                         $customfields[$selectList[$customfield->virtuemart_custom_id]]->display = JHtml::_($selectType, $customfields[$selectList[$customfield->virtuemart_custom_id]]->options, $customfields[$selectList[$customfield->virtuemart_custom_id]]->customProductDataName, $class, 'virtuemart_customfield_id', 'text', $default->customfield_value, $idTag);
                         //*/
                     } else {
                         if ($type == 'M') {
                             $customfield->display = $this->displayCustomMedia($customfield->customfield_value, 'product', $customfield->width, $customfield->height);
                         } else {
                             $customfield->display = vmText::_($customfield->customfield_value);
                         }
                     }
                 }
                 break;
             case 'Z':
                 if (empty($customfield->customfield_value)) {
                     break;
                 }
                 $html = '';
                 $q = 'SELECT * FROM `#__virtuemart_categories_' . VmConfig::$vmlang . '` as l INNER JOIN `#__virtuemart_categories` AS c using (`virtuemart_category_id`) WHERE `published`=1 AND l.`virtuemart_category_id`= "' . (int) $customfield->customfield_value . '" ';
                 $db = JFactory::getDBO();
                 $db->setQuery($q);
                 if ($category = $db->loadObject()) {
                     if (empty($category->virtuemart_category_id)) {
                         break;
                     }
                     $q = 'SELECT `virtuemart_media_id` FROM `#__virtuemart_category_medias`WHERE `virtuemart_category_id`= "' . $category->virtuemart_category_id . '" ';
                     $db->setQuery($q);
                     $thumb = '';
                     if ($media_id = $db->loadResult()) {
                         $thumb = $this->displayCustomMedia($media_id, 'category', $customfield->width, $customfield->height);
                     }
                     $customfield->display = JHtml::link(JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id), $thumb . ' ' . $category->category_name, array('title' => $category->category_name, 'target' => '_blank'));
                 }
                 break;
             case 'R':
                 if (empty($customfield->customfield_value)) {
                     $customfield->display = 'customfield related product has no value';
                     break;
                 }
                 $pModel = VmModel::getModel('product');
                 $related = $pModel->getProduct((int) $customfield->customfield_value, TRUE, $customfield->wPrice, TRUE, 1);
                 if (!$related) {
                     break;
                 }
                 $thumb = '';
                 if ($customfield->wImage) {
                     if (!empty($related->virtuemart_media_id[0])) {
                         $thumb = $this->displayCustomMedia($related->virtuemart_media_id[0], 'product', $customfield->width, $customfield->height) . ' ';
                     } else {
                         $thumb = $this->displayCustomMedia(0, 'product', $customfield->width, $customfield->height) . ' ';
                     }
                 }
                 $customfield->display = shopFunctionsF::renderVmSubLayout('related', array('customfield' => $customfield, 'related' => $related, 'thumb' => $thumb));
                 break;
         }
     }
 }
开发者ID:proyectoseb,项目名称:Matrix,代码行数:101,代码来源:customfields.php

示例5: array

            }
            ?>
                    </p>
            <?php 
        }
        ?>
               <div class="clearfix"></div>
                </div>
            <?php 
        //echo $rowsHeight[$row]['customs']
        ?>
            <div class="vm-product-addcart vm3pr-<?php 
        echo $rowsHeight[$row]['customfields'];
        ?>
"> <?php 
        echo shopFunctionsF::renderVmSubLayout('addtocart', array('product' => $product, 'rowHeights' => $rowsHeight[$row]));
        ?>
            </div>

            <div class="vm-details-button">
                <?php 
        // Product Details Button
        $link = empty($product->link) ? $product->canonical : $product->link;
        echo JHtml::link($link . $ItemidStr, vmText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name, 'class' => 'product-details'));
        //echo JHtml::link ( JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id , FALSE), vmText::_ ( 'COM_VIRTUEMART_PRODUCT_DETAILS' ), array ('title' => $product->product_name, 'class' => 'product-details' ) );
        ?>
            </div>
                                          </div>
        </div>
    </div>
开发者ID:sam-akopyan,项目名称:hamradio,代码行数:30,代码来源:products.php

示例6: displayProductCustomfieldFE


//.........这里部分代码省略.........

							$customfield->display = JHtml::_ ($selectType, $options, $customProductDataName.'[' . $customfield->virtuemart_customfield_id . ']', $class, 'value', 'text', $currentValue,$idTag);
						} else {
							if($type == 'M'){
								$customfield->display =  $this->displayCustomMedia ($customfield->customfield_value);
							} else {
								$customfield->display =  vmText::_ ($customfield->customfield_value);
							}
						}
					} else {

						if(!empty($customfield->is_input)){

							if(!isset($selectList[$customfield->virtuemart_custom_id])) {
								$tmpField = clone($customfield);
								$tmpField->options = null;
								$customfield->options[$customfield->virtuemart_customfield_id] = $tmpField;
								$selectList[$customfield->virtuemart_custom_id] = $k;
								$customfield->customProductDataName = $customProductDataName;
							} else {
								$customfields[$selectList[$customfield->virtuemart_custom_id]]->options[$customfield->virtuemart_customfield_id] = $customfield;
								unset($customfields[$k]);
								//$customfield->options[$customfield->virtuemart_customfield_id] = $customfield;
							}

							$default = reset($customfields[$selectList[$customfield->virtuemart_custom_id]]->options);
							foreach ($customfields[$selectList[$customfield->virtuemart_custom_id]]->options as &$productCustom) {
								$price = self::_getCustomPrice($productCustom->customfield_price, $currency, $calculator);
								if($type == 'M'){
									$productCustom->text = $this->displayCustomMedia ($productCustom->customfield_value).' '.$price;
								} else {
									$trValue = vmText::_($productCustom->customfield_value);
									if($productCustom->customfield_value!=$trValue and strpos($trValue,'%1')!==false){
										$productCustom->text = vmText::sprintf($productCustom->customfield_value,$price);
									} else {
										$productCustom->text = $trValue.' '.$price;
									}
								}
							}


							$customfields[$selectList[$customfield->virtuemart_custom_id]]->display = JHtml::_ ($selectType, $customfields[$selectList[$customfield->virtuemart_custom_id]]->options,
								$customfields[$selectList[$customfield->virtuemart_custom_id]]->customProductDataName,
								$class, 'virtuemart_customfield_id', 'text', $default->customfield_value,$idTag);	//*/
						} else {
							if($type == 'M'){
								$customfield->display = $this->displayCustomMedia ($customfield->customfield_value);
							} else {
								$customfield->display =  vmText::_ ($customfield->customfield_value);
							}
						}
					}

					break;

				case 'Z':
					if(empty($customfield->customfield_value)) break;
					$html = '';
					$q = 'SELECT * FROM `#__virtuemart_categories_' . VmConfig::$vmlang . '` as l JOIN `#__virtuemart_categories` AS c using (`virtuemart_category_id`) WHERE `published`=1 AND l.`virtuemart_category_id`= "' . (int)$customfield->customfield_value . '" ';
					$db = JFactory::getDBO();
					$db->setQuery ($q);
					if ($category = $db->loadObject ()) {

						if(empty($category->virtuemart_category_id)) break;

						$q = 'SELECT `virtuemart_media_id` FROM `#__virtuemart_category_medias`WHERE `virtuemart_category_id`= "' . $category->virtuemart_category_id . '" ';
						$db->setQuery ($q);
						$thumb = '';
						if ($media_id = $db->loadResult ()) {
							$thumb = $this->displayCustomMedia ($media_id,'category');
						}
						$customfield->display = JHtml::link (JRoute::_ ('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category->virtuemart_category_id), $thumb . ' ' . $category->category_name, array('title' => $category->category_name,'target'=>'_blank'));
					}
					break;
				case 'R':
					if(empty($customfield->customfield_value)){
						$customfield->display = 'customfield related product has no value';
						break;
					}
					$pModel = VmModel::getModel('product');
					$related = $pModel->getProduct((int)$customfield->customfield_value,TRUE,$customfield->wPrice,TRUE,1);

					if(!$related) break;

					$thumb = '';
					if($customfield->wImage){
						if (!empty($related->virtuemart_media_id[0])) {
							$thumb = $this->displayCustomMedia ($related->virtuemart_media_id[0]).' ';
						} else {
							$thumb = $this->displayCustomMedia (0).' ';
						}
					}

					$customfield->display = shopFunctionsF::renderVmSubLayout('related',array('customfield'=>$customfield,'related'=>$related, 'thumb'=>$thumb));

					break;
			}
		}

	}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:101,代码来源:customfields.php

示例7: array

</h2>
					<div class="vm-product-rating-container">
						<?php 
        echo shopFunctionsF::renderVmSubLayout('rating', array('showRating' => $showRating, 'product' => $product));
        ?>
					</div>
				</div>
				<div class="align-right">
					<?php 
        //echo $rowsHeight[$row]['price']
        ?>
					<div class="vm3pr-<?php 
        echo $rowsHeight[$row]['price'];
        ?>
"> <?php 
        echo shopFunctionsF::renderVmSubLayout('prices', array('product' => $product, 'currency' => $currency));
        ?>
					</div>
				</div>
				<div class="clearbreak"></div>
			</div>
			<div class="vm-product-descr-container-<?php 
        echo $rowsHeight[$row]['product_s_desc'];
        ?>
">
				
				<?php 
        if (!empty($rowsHeight[$row]['product_s_desc'])) {
            ?>
				<!--p class="product_s_desc">
					<?php 
开发者ID:vanbumi,项目名称:pencerahan,代码行数:31,代码来源:products.php

示例8: array

            echo shopFunctionsF::limitStringByWord($product->product_s_desc, 40, '...');
            ?>
            </p>
        <?php 
        }
        ?>
        <div class="vm3pr-<?php 
        echo $rowsHeight[$row]['price'];
        ?>
">
          <?php 
        echo shopFunctionsF::renderVmSubLayout('prices', array('product' => $product, 'currency' => $currency));
        ?>
        </div>
        <?php 
        echo shopFunctionsF::renderVmSubLayout('addtocart', array('product' => $product, 'row' => 0));
        ?>

        <div class="vm-details-button">
          <?php 
        // Product Details Button
        echo JHtml::link(JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id, FALSE), vmText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name, 'class' => 'product-details'));
        ?>
        </div>
      </div>  
    </div>

		<?php 
        $nb++;
        // Do we need to close the current row now?
        if ($col == $products_per_row || $nb > $BrowseTotalProducts) {
开发者ID:lenard112,项目名称:cms,代码行数:31,代码来源:products_horizon.php

示例9: jQuery

	$("form.js-recalculate").each(function(){
		if ($(this).find(".product-fields").length && !$(this).find(".no-vm-bind").length) {
			var id= $(this).find(\'input[name="virtuemart_product_id[]"]\').val();
			Virtuemart.setproducttype($(this),id);

		}
	});
});';
//vmJsApi::addJScript('recalcReady',$j);
/** GALT
 * Notice for Template Developers!
 * Templates must set a Virtuemart.container variable as it takes part in
 * dynamic content update.
 * This variable points to a topmost element that holds other content.
 */
$j = "Virtuemart.container = jQuery('.productdetails-view');\nVirtuemart.containerSelector = '.productdetails-view';";
vmJsApi::addJScript('ajaxContent', $j);
if (VmConfig::get('jdynupdate', TRUE)) {
    $j = "jQuery(document).ready(function(\$) {\n\tVirtuemart.stopVmLoading();\n\tvar msg = '';\n\tjQuery('a[data-dynamic-update=\"1\"]').off('click', Virtuemart.startVmLoading).on('click', {msg:msg}, Virtuemart.startVmLoading);\n\tjQuery('[data-dynamic-update=\"1\"]').off('change', Virtuemart.startVmLoading).on('change', {msg:msg}, Virtuemart.startVmLoading);\n});";
    vmJsApi::addJScript('vmPreloader', $j);
}
echo vmJsApi::writeJS();
if ($this->product->prices['salesPrice'] > 0) {
    echo shopFunctionsF::renderVmSubLayout('snippets', array('product' => $this->product, 'currency' => $this->currency, 'showRating' => $this->showRating));
}
?>
</div>



开发者ID:thumbs-up-sign,项目名称:TuVanDuAn,代码行数:27,代码来源:default.php

示例10: array

			<div class="vm3pr-<?php 
        echo $rowsHeight[$row]['price'];
        ?>
"> <?php 
        echo shopFunctionsF::renderVmSubLayout('prices', array('product' => $product, 'currency' => $currency));
        ?>
				<div class="clear"></div>
			</div>
			<?php 
        //echo $rowsHeight[$row]['customs']
        ?>
			<div class="vm3pr-<?php 
        echo $rowsHeight[$row]['customfields'];
        ?>
"> <?php 
        echo shopFunctionsF::renderVmSubLayout('addtocart', array('product' => $product, 'rowHeights' => $rowsHeight[$row], 'position' => array('ontop', 'addtocart')));
        ?>
			</div>

			<div class="vm-details-button">
				<?php 
        // Product Details Button
        $link = empty($product->link) ? $product->canonical : $product->link;
        echo JHtml::link($link . $ItemidStr, vmText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name, 'class' => 'product-details'));
        //echo JHtml::link ( JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id , FALSE), vmText::_ ( 'COM_VIRTUEMART_PRODUCT_DETAILS' ), array ('title' => $product->product_name, 'class' => 'product-details' ) );
        ?>
			</div>

		</div>
	</div>
开发者ID:thumbs-up-sign,项目名称:TuVanDuAn,代码行数:30,代码来源:products.php

示例11: array

if ($this->product->product_box) {
    ?>
        <div class="product-box">
	    <?php 
    echo vmText::_('COM_VIRTUEMART_PRODUCT_UNITS_IN_BOX') . $this->product->product_box;
    ?>
        </div>
    <?php 
}
// Product Packaging END
?>

    <?php 
echo shopFunctionsF::renderVmSubLayout('customfields', array('product' => $this->product, 'position' => 'onbot'));
echo shopFunctionsF::renderVmSubLayout('customfields', array('product' => $this->product, 'position' => 'related_products', 'class' => 'product-related-products', 'customTitle' => true));
echo shopFunctionsF::renderVmSubLayout('customfields', array('product' => $this->product, 'position' => 'related_categories', 'class' => 'product-related-categories'));
?>

</div>
<script>
	// GALT
	/*
	 * Notice for Template Developers!
	 * Templates must set a Virtuemart.container variable as it takes part in
	 * dynamic content update.
	 * This variable points to a topmost element that holds other content.
	 */
	// If this <script> block goes right after the element itself there is no
	// need in ready() handler, which is much better.
	//jQuery(document).ready(function() {
	Virtuemart.container = jQuery('.productdetails-view');
开发者ID:binhnk0791,项目名称:joomla,代码行数:31,代码来源:default.php

示例12: array

} else {
    $step = 1;
}
if ($step == 0) {
    $step = 1;
}
?>

	<div class="addtocart-area">
		<form method="post" class="product js-recalculate" role="form" action="<?php 
echo JRoute::_('index.php?option=com_virtuemart', false);
?>
">
			<?php 
if (!empty($rowHeights['customfields'])) {
    echo shopFunctionsF::renderVmSubLayout('customfields', array('product' => $product, 'position' => 'addtocart'));
}
if (!VmConfig::get('use_as_catalog', 0)) {
    ?>

				<div class="addtocart-bar">
				<?php 
    // Display the quantity box
    $stockhandle = VmConfig::get('stockhandle', 'none');
    if (($stockhandle == 'disableit' or $stockhandle == 'disableadd') and $product->product_in_stock - $product->product_ordered < 1) {
        ?>
					<a href="<?php 
        echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&layout=notify&virtuemart_product_id=' . $product->virtuemart_product_id);
        ?>
" class="notify"><?php 
        echo vmText::_('COM_VIRTUEMART_CART_NOTIFY');
开发者ID:SMARTRESPONSOR,项目名称:SMARTRESPONSOR,代码行数:31,代码来源:addtocart.php

示例13: array

				<div class="prod-details fixclear">
					<h3><?php 
    echo JHtml::link($link . $itemid, $product->product_name);
    ?>
</h3>
					<p class="desc"><?php 
    echo JHtmlString::truncate($product->product_desc, 80, true, false);
    ?>
&nbsp;</p>
					<?php 
    echo shopFunctionsF::renderVmSubLayout('kl_prices_basic', array('product' => $product, 'currency' => $currency));
    ?>
					<div class="kl-extra-info">
						<?php 
    echo shopFunctionsF::renderVmSubLayout('kl_rating', array('showRating' => $showRating, 'product' => $product));
    ?>
					</div>
				</div><!-- /.prod-details -->

				<div class="prod-actions">
					<?php 
    // More info button
    echo JHtml::link($link . $itemid, vmText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name, 'class' => 'product-details'));
    // Add to cart button
    // echo shopFunctionsF::renderVmSubLayout('kl_addtocart',array('product'=>$product));
    if ($show_addtocart) {
        echo mod_virtuemart_product_hgcarousel::addtocart($product, $params);
    }
    ?>
				</div><!-- /.actions -->
开发者ID:quyip8818,项目名称:joomla,代码行数:30,代码来源:carousel.php

示例14: array

	<?php 
if ((int) $params->get('item_price_display', 1)) {
    ?>
		<div class="item-price">
			<?php 
    if (!empty($item->prices['salesPrice'])) {
        echo $currency->createPriceDiv('salesPrice', JText::_("Price: "), $item->prices, false, false, 1.0, true);
    }
    if (!empty($item->prices['salesPriceWithDiscount'])) {
        $currency = CurrencyDisplay::getInstance();
        echo $currency->createPriceDiv('salesPriceWithDiscount', JText::_("Price: "), $item->prices, false, false, 1.0, true);
    }
    ?>
		</div>
	<?php 
}
?>
	<?php 
if ($params->get('item_addtocart_display', 1)) {
    ?>
        <div class="item-addtocart">
            <?php 
    echo shopFunctionsF::renderVmSubLayout('addtocart', array('product' => $item));
    ?>
        </div>
    <?php 
}
?>
    </div>
</div>
开发者ID:proyectoseb,项目名称:Matrix,代码行数:30,代码来源:mega_item.php

示例15: array

    }
}
$position = 'addtocart';
?>

	<div class="addtocart-area">
		<form method="post" class="product js-recalculate" action="<?php 
echo JRoute::_('index.php?option=com_virtuemart', false);
?>
">
			<?php 
if (!empty($rowHeights['customfields'])) {
    echo shopFunctionsF::renderVmSubLayout('customfields', array('product' => $product, 'position' => 'addtocart'));
}
if (!VmConfig::get('use_as_catalog', 0)) {
    echo shopFunctionsF::renderVmSubLayout('addtocartbar', array('product' => $product));
}
?>
			<input type="hidden" name="option" value="com_virtuemart"/>
			<input type="hidden" name="view" value="cart"/>
			<input type="hidden" name="virtuemart_product_id[]" value="<?php 
echo $product->virtuemart_product_id;
?>
"/>
			<input type="hidden" class="pname" value="<?php 
echo $product->product_name;
?>
"/>
			<?php 
$itemId = vRequest::getInt('Itemid', false);
if ($itemId) {
开发者ID:naka211,项目名称:studiekorrektur,代码行数:31,代码来源:addtocart.php


注:本文中的shopFunctionsF::renderVmSubLayout方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。