I would like to add the cart66 shortcode to my template file as such:
<?php echo do_shortcode( ‘[add_to_cart item=”1″]’ ) ?>
However, as you can see it will always then call item no. 1. Instead i want it to get the item number from the post so i can have a universal shortcode. For example, <?php echo do_shortcode( ‘[add_to_cart item=”GETTHECUSTOMVALUE”]’ ) ?>
Any idea how to do this?
- The topic ‘Cart66 lite add_to_cart shortcode in template file’ is closed to new replies.