Tagged: advanced-layout-editor, woocommerce
-
AuthorPosts
-
March 15, 2016 at 2:50 pm #598392
Hi there,
I’m having trouble enabling the advanced layout editor on the woocommerce product pages. I remember while doing a local installation a month ago that it was possible to also use the advanced layout editor on these pages, however I currently don’t see any setting or button which enables this feature. I also feel like I miss some of the shortcodes that I used on the local installation, I currently only have the product grid, product list and product slider shortcodes available, none of which actually add the price & add to cart section.
I already tried reinstalling the woocommerce plugin a couple of times, that did not seem to help. The only difference I can see between the local installation and the live one is that the admin and all plugins are in Dutch, versus English on the local installation. Not sure if that could have something to do with it?
Already spend a couple of hours trying to fix this, would appreciate some outside insights!
March 18, 2016 at 5:36 am #600077Hi axelpersoon,
Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.
Best regards,
RikardMarch 21, 2016 at 12:46 pm #601182Sorry for the delay, would be great if you could take a look!
Details are below.March 25, 2016 at 8:19 am #603588Hi!
Thank you for the info and sorry for the delay. Please update the theme to the latest version, 3.5.1. The dashboard is a bit too slow and I can’t access the dashboard panels. Please try to deactivate all plugins then test the product editor again.
UPDATE: I probably can’t access the panels because my connection is a little unstable. I’ll ask the rest of the support team to check it.
Regards,
IsmaelApril 26, 2016 at 10:55 am #622025Hi guys,
Apologize again for the long delay, this project has been side-tracked for a little due to other work.
I’ve been trying to fix it again for the last couple of hours, unfortunately without any results.
Installed the newest version of the theme (3.5.3), deleted and installed Woocommerce a bunch of times, all plugins are disabled. Funny thing is that even though I delete woocommerce, after reinstall all my product pages reappear again. It seems like the avia builder doesn’t recognize the ‘product’ post-type for single product pages. If I start a new ‘normal’ page I can see all the functions of Woocommerce in the avia builder, although only half are useable since the others are only for ‘single-product’ pages. On a product page however, I don’t see the avia builder but if I look at the shortcodes options I can see the Woocommerce shortcodes, but only the ones that are available on all page types.
Hope my explanation makes some sense to you, I’m kinda out of ideas at this point.
The login credentials are still valid if you want to take a look yourselves.
Thanks!
Axel
April 28, 2016 at 8:54 am #623536Hey!
For clarification, the advance layout builder is enabled for single product pages by default but it is disabled on the product or shop page. If you want to enable it for the base shop page, add this in the functions.php file:
add_theme_support('avia_custom_shop_page')
Best regards,
IsmaelApril 28, 2016 at 9:26 am #623556Hi Ismael,
Thank you for your reply. The problem is not with the base product/shop pages, there the advanced layout editor works. It’s the single product pages that are missing the advanced layout editor. There isn’t even the ‘warning’ about the advanced layout editor being disabled due to WooCommerce on the single product pages, even though I do get this warning on the base product/shop pages (because I haven’t added the line of code yet you mentioned).
Any other ideas? :)
Axel
May 2, 2016 at 7:42 am #625494Hi,
I see. By default, the ALB should be enabled on single product pages but I don’t see the builder button when I checked the only product in your installation. I would like to check the child theme modifications but the Appearance > Editor panel is missing. Do you remember adding any modifications to the child theme? Please try to get a fresh copy of the theme from your themeforest account then override the theme files via FTP. I hope it fix the issue.
Best regards,
IsmaelMay 2, 2016 at 5:28 pm #625952Hi Ismael,
That finally did the trick! Once I started with a fresh child theme the ALB button appeared again. I tracked the error down to the following line of code in my functions.php file:
add_filter('avf_builder_boxes','enable_boxes_on_posts'); function enable_boxes_on_posts($boxes) { $boxes[] = array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('page','post', 'portfolio'), 'context'=>'normal', 'expandable'=>true ); $boxes[] = array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('page','post', 'portfolio'), 'context'=>'side', 'priority'=>'low'); $boxes[] = array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('page','post','portfolio'), 'context'=>'normal', 'priority'=>'high' ); return $boxes; }
Not even sure anymore what I used that for, but after removing that everything seems to work again.
Thank you a lot for you help!
Axel
May 4, 2016 at 11:19 am #627075Hi,
glad you could fix it! Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Best regards,
Andy -
AuthorPosts
- The topic ‘Advanced Layout Editor notavailable on Woocommerce Product Pages’ is closed to new replies.