Support for Envato Buyers Forums Samsara Search boxSearch Box

Viewing 1 reply thread
  • Author
    Posts
    • #6264
      mattboggs
      Member

      I am using the The Events Calendar: WooCommerce Tickets plugin to highlight our national lecture tour (http://discoverdavinci.com/) and would like to add that page to the ‘search box’ function of Samsara. Can you help me ?

      Thanks,

      Matt

    • #6266

      Hi

      I can only give you some general idea and you have to customize the php file by yourself, and I can’t promise it will work fine, just a general idea, because the customization issue is not included in the service.

      Edit content-slidedown.php, find the following code

      <select name="post_type" id="post_type">
                       <option value="post"><?php _e('Blog Posts','Samsara');?></option>
                       <option value="portfolio"><?php _e('Portfolios','Samsara');?></option>
                       <?php if(is_plugin_active('woocommerce/woocommerce.php')):?>
                       <option value="product"><?php _e('Products','Samsara');?></option>
                       <?php endif;?>
      </select>

      Change to

      <select name="post_type" id="post_type">
                       <option value="post"><?php _e('Blog Posts','Samsara');?></option>
                       <option value="portfolio"><?php _e('Portfolios','Samsara');?></option>
                       <?php if(is_plugin_active('woocommerce/woocommerce.php')):?>
                       <option value="product"><?php _e('Products','Samsara');?></option>
                       <?php endif;?>
      
                       <?php if(is_plugin_active('Your-plugin-folder/Your-plugin-main-file.php')):?>
                       <option value="ticket"><?php _e('ticket','Samsara');?></option>
                       <?php endif;?>
      </select>

      You should replace “Your-plugin-folder/Your-plugin-main-file.php” to the actual plugin folder and main file like “woocommerce/woocommerce.php”
      Replace “ticket” to the name of plugin post type

      Thanks

Viewing 1 reply thread
  • You must be logged in to reply to this topic.