WordPress.org

Forums

WooCommerce - excelling eCommerce
Change where single-product template is displayed (1 post)

  1. surge74
    Member
    Posted 1 year ago #

    I hope i ask this properly. What i am trying to do is have the contents of the single-product.php page appear inside of a slider (view port). So basically i have a plugin that how all the products i carry in a grid format and as you click on the product a slider appears where i want the product description, price, etc… to be. Just like when someone clicks on the product and the single product page appears. So i have this code that i will place in the plugin in question that uses hooks and filters:

    function replace_content($html, $post_id) {
     return "This is my replaced content";
    }
    
    add_filter('colio_content', 'replace_content', 10, 2);

    But i just can't seem to figure out what woocommerce code to place in the "this is my replaced content" section. Any ideas?

    https://wordpress.org/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.