Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #385254

    Hi guys :-)

    I’ve already read through the new tutorial on using the Advanced Layout Editor on a WooCommerce Shop overview page – how about on an individual product page? Is that possible yet, and if so, can you please direct me to the docs or a tutorial, and if not, is it in the pipeline?

    Thanks as always!!!

    Stefanie

    #385992

    Hi Stefanie!

    Yes, it’s possible, add this to your theme / child theme functions.php:

    add_filter('avf_builder_boxes', 'add_builder_to_posttype');
    
    function add_builder_to_posttype($metabox)
    {
    	foreach($metabox as &$meta)
    	{
    		if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout')
    		{
    			$meta['page'][] = 'product'; /*instead add the name of the custom post type here*/
    		}
    	}
    	
    
    	return $metabox;
    }

    However, by doing this the default single product layout will no longer show on products with ALB activated, you can use the following shortcode to bring the “Add to Cart” button though:

    [add_to_cart id="1"] 
    

    Change 1 for the product ID.

    Regards,
    Josue

    #387445
    This reply has been marked as private.
    #388547

    Hi!

    please update Enfold to the newest version (v3.0.8). Also deactivate all plugins and see if things get changed. Switch them on one by one, to see which one is causing any conflict.

    Best regards,
    Andy

    #388657

    Well dang. I had done that with everything but the one…. of course. The culprit was “Root Relative URLs”, a plugin that Rackspace automatically includes on all WP installs. Never caused a problem before. Feeling a little stupid that I didn’t check that one.

    Thank you Andy, it’s looking good at the moment! You’re a lifesaver.

    Stefanie :-)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Possible to customize WooCommerce product page in Enfold?’ is closed to new replies.