Advertisement
sathyashrayan

vm 20

Jan 19th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.79 KB | None | 0 0
  1. Store Description
  2. <?php echo $this->vendor->vendor_store_desc ?>
  3.  
  4. Product Name
  5. <?php echo $this->product->product_name ?>
  6.  
  7. Product SKU
  8. <?php echo $this->product->product_sku ?>
  9.  
  10. Product Name with Link (from Category)
  11. <?php echo JHTML::link($product->link, $product->product_name) ?>
  12.  
  13. Product Details Link with anchor “Product Details” (from Category)
  14. <?php echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'product-details'));?>
  15.  
  16. Ask a question about this product
  17.  
  18.             <div class="ask-a-question">
  19.             <a class="ask-a-question" href="<?php echo $url ?>" ><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>
  20.             </div>
  21.  
  22.  
  23. Edit Product LINK (shows when admin logged into front)
  24.    <?php echo $this->edit_link ?>
  25.  
  26. Short Description
  27.    <?php echo $this->product->product_s_desc ?>
  28.  
  29. Product Full Description
  30.       <?php echo $this->product->product_desc ?>
  31.  
  32. Product MAIN Image (the 0 is the column number for the 1st image)
  33. <?php echo $this->product->images[0]->displayMediaFull('class="product-image"',false) ?>
  34.  
  35. Additional Images (>1 means all images past the 1st image)
  36.       <?php if(!empty($this->product->images) && count($this->product->images)>1) {
  37.          foreach ($this->product->images as $image) {
  38.             echo $image->displayMediaThumb('class="product-image"',true,'class="modal"'); //'class="modal"'
  39.          }
  40. }
  41. ?>
  42.  
  43. Product Availability AS TEXT
  44. <?php echo $this->product->product_availability; ?>
  45.  
  46. Product Availability As Picture
  47. <?php echo JHTML::image(JURI::root().VmConfig::get('assets_general_path').'images/availability/'.$this->product->product_availability, $this->product->product_availability, array('class' => 'availability')); ?>
  48.  
  49.  
  50. Category Description
  51. <?php echo $this->category->category_description  ?>
  52.  
  53. Product Stock Level Picture
  54.  
  55.                   <?php if (!VmConfig::get('use_as_catalog')){?>
  56.                   <div class="paddingtop8">
  57.                      <span class="vmicon vm2-<?php echo $product->stock->stock_level ?>" title="<?php echo $product->stock->stock_tip ?>"></span>
  58.                      <span class="stock-level"><?php echo JText::_('COM_VIRTUEMART_STOCK_LEVEL_DISPLAY_TITLE_TIP') ?></span>
  59.                   </div>
  60.                   <?php }?>
  61.  
  62.  
  63. Sort by drop down
  64. <div class="width70 floatleft">
  65.          <?php echo $this->orderByList; ?>
  66.       </div>
  67.  
  68. Product Name
  69. <?php echo $this->product->product_name ?>
  70.  
  71. Product SKU
  72. <?php echo $this->product->product_sku ?>
  73.  
  74.  
  75.  
  76. Ask a question about this product
  77.  
  78.             <div class="ask-a-question">
  79.             <a class="ask-a-question" href="<?php echo $url ?>" ><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?
  80.  
  81. ></a>
  82.             </div>
  83.  
  84.  
  85. Edit Product LINK (shows when admin logged into front)
  86.    <?php echo $this->edit_link ?>
  87.  
  88. Short Description
  89.    <?php echo $this->product->product_s_desc ?>
  90.  
  91. Product Full Description
  92.       <?php echo $this->product->product_desc ?>
  93.  
  94. Product MAIN Image (the 0 is the column number for the 1st image)
  95. <?php echo $this->product->images[0]->displayMediaFull('class="product-image"',false) ?>
  96.  
  97. Additional Images (>1 means all images past the 1st image)
  98.       <?php if(!empty($this->product->images) && count($this->product->images)>1) {
  99.          foreach ($this->product->images as $image) {
  100.             echo $image->displayMediaThumb('class="product-image"',true,'class="modal"'); //'class="modal"'
  101.          }
  102. }
  103. ?>
  104.  
  105. Product Availability AS TEXT
  106. <?php echo $this->product->product_availability; ?>
  107.  
  108. Product Availability As Picture
  109. <?php echo JHTML::image(JURI::root().VmConfig::get('assets_general_path').'images/availability/'.$this->product->product_availability, $this-
  110.  
  111. >product->product_availability, array('class' => 'availability')); ?>
  112.  
  113. Minimum Order Level
  114. <?php echo $this->product->min_order_level ?>
  115.  
  116.  
  117. Maximum Order Level
  118. <?php echo $this->product->max_order_level ?>
  119.  
  120. Product Unit
  121. <?php echo $this->product->product_unit ?>
  122.  
  123. Product Weight
  124. <?php echo $this->product->product_weight ?>
  125.  
  126. Product Weight Unit of Measure
  127. <?php echo $this->product->product_weight_uom ?>
  128.  
  129. Product Length
  130. <?php echo $this->product->product_length ?>
  131.  
  132. Product Width
  133. <?php echo $this->product->product_width ?>
  134.  
  135. Product Height
  136. <?php echo $this->product->product_height ?>
  137.  
  138. Product URL
  139. <?php echo $this->product->product_url ?>
  140.  
  141. Product # In Stock
  142. <?php echo $this->product->product_in_stock ?>
  143.  
  144. Product Availability Date
  145. <?php echo $this->product->product_available_date ?>
  146.  
  147. Product Special 0 or 1 0 for no, 1 for yes.
  148. <?php echo $this->product->product_special ?>
  149.  
  150. Product Ship Code ID
  151. <?php echo $this->product->product_ship_code_id?>
  152.  
  153. Product Packaging
  154. <?php echo $this->product->product_packaging ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement