เช่น เราทำปุ่ม <span class="btn btn-pramary"> ปุ่ม </span> ก็จะได้ปุ่ม Primary มาหนึ่งปุ่มแล้วนะครับ แต่ว่าผมได้เจอปัญหาก็คือ ใส่ class="btn btn-primaty" ไปแล้วปุ่มไม่ขึ้นเลยครับ ก็เลยอยากจะแชร์ความรู้ อาจจะเป็นแนวทางในการแก้ไขปัญหาหนึ่งก็ได้ครับ
พอผมใส่ class ในปุ่ม Delete ครับ โดยที่ยังไม่ได้แก้บัค ก็จะไม่ขึ้นภาพ ครับ
โค้ด: เลือกทั้งหมด
<a class="button-img" href = "<?php print $prod['remove_to_cart'] ?>" onclick="document.updateCart.submit(<?php print _MZC_REMOVE_TO_CART; ?>);">
<center>
<span style="font-size: 15px" class="btn btn-primary"> // class ที่ใส่ไปนะครับ class="btn btn-primary"
<i class="fa fa-shopping-cart" aria-hidden="true"></i>
</span>
</center>
</a>