Forum Replies Created
-
AuthorPosts
-
November 22, 2015 at 1:42 pm in reply to: Having issues with importing a CSV file of events #1029339J DaviesParticipant
This reply is private.
J DaviesParticipantOk so after a while I have solved this, and I would like to share this information incase anyone else needs this solution.
I have created a custom post type called add_product_shortcode . This is where you enter the woocommerce product ID using the woocommerce shortcode plugin and code [product_page id=”XXXX”] in your events custom fields
Edit tickets.php and add my code just after line 10 or after
ob_start(); ?>
<?php $productshortcode = get_field('add_product_shortcode'); if( $productshortcode != '' ){ ?> <?php echo do_shortcode($productshortcode); ?> <?php } else { ?>
at the end of the file add an extra
}
What this will do is, once you add the direct product shortcode in the event page it will embed the product directly into the event and not display the event ticket .
We needed this option to offer “Bundles of EVENT products” and also our deposit system only works with the woocommerce system.
J DaviesParticipantHas part of my answer, but when I add that code it fails I need oniregoc’s Help
-
AuthorPosts