<?php $how_to_use = Mage::getResourceModel('catalog/product')->getAttributeRawValue($_product->getId(), 'how_to_use', Mage::app()->getStore());?> <?php if($how_to_use):?> <div class="short-description"> <h3 class="description-header"><?php echo $this->__('วิธีใช้') ?></h3> <div class="description-content"> <div class="content"><?php echo $how_to_use; ?></div> </div> </div> <?php endif;?> <?php $active_concept = Mage::getResourceModel('catalog/product')->getAttributeRawValue($_product->getId(), 'active_concept', Mage::app()->getStore());?> <?php if ($active_concept):?> <div class="short-description"> <h3 class="description-header"><?php echo $this->__('สรรพคุณหลัก') ?></h3> <div class="description-content"> <div class="content"><?php echo $active_concept; ?></div> </div> </div> <?php endif;?> <?php $brief_of_cells = Mage::getResourceModel('catalog/product')->getAttributeRawValue($_product->getId(), 'sale_talk', Mage::app()->getStore());?> <?php if($brief_of_cells):?> <div class="short-description"> <h3 class="description-header"><?php echo $this->__('บทสรุปจากเซล') ?></h3> <div class="description-content"> <div class="content"><?php echo $brief_of_cells; ?></div> </div> </div> <?php endif;?>
<script> $(".product-shop .short-description").click(function(){ $(this > ".description-content").toggle('fast'); }); </script>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง