How can I add a "More info..." button for longer product descriptions?

RapidCart_Tips_and_Tricks_icon.png

Previous: Change price depending on entered value

Though not directly supported by RapidCart, you can add a "More info..." button with a small piece of HTML/JS code in your product description.

  1. Enable HTML in Product Description
  2. Paste this code

     SHORT_DESCRIPTION<br />
     <a href="#" onclick="$('moreinfo%ID%').toggle(); return false;">More info...</a>
     <div style="display: none;" id="moreinfo%ID%">
     LONG_DESCRIPTION
     </div>
    
  3. Replace SHORT_DESCRIPTION with your description snippet

  4. Replace LONG_DESCRIPTION with your longer description

Next: Adding multiple thumbnails for description