PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.3
ShopBuilder – WooCommerce Builder For Elementor v2.6.3
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Controllers/Hooks/BuilderHooks.php +7 -2 2.1.42.6.3 View file →
@@ -54,9 +54,8 @@
54 54 */
55 55 public function product_page_body_class( $classes ) {
56 56 $classes[] = 'rtsb-shopbuilder-plugin rtsb_theme_' . rtsb()->current_theme;
57 57 if ( Fns::is_woocommerce() || BuilderFns::is_builder_preview() ) {
58 - $classes[] = 'woocommerce';
59 58 $classes[] = 'woocommerce-page';
60 59 }
61 60
62 61 if ( BuilderFns::is_product() ) {
@@ -68,8 +67,14 @@
68 67 }
69 68
70 69 if ( BuilderFns::is_cart() ) {
71 70 $classes[] = 'woocommerce-cart';
71 + // $indexToRemove = array_search( 'woocommerce' , $classes);
72 + // if ($indexToRemove !== false) {
73 + // unset($classes[$indexToRemove]);
74 + // }
75 + } else {
76 + $classes[] = 'woocommerce';
72 77 }
73 78
74 79 if ( BuilderFns::is_checkout() ) {
75 80 $classes[] = 'woocommerce-checkout ';
@@ -102,9 +107,9 @@
102 107 $this->page_edit_with = Fns::page_edit_with( $this->builder_page_id );
103 108 if ( $this->builder_page_id ) {
104 109 if ( did_action( 'elementor/loaded' ) && 'elementor' === $this->page_edit_with ) {
105 110 $this->elementor_frontend();
106 - } else {
111 + } elseif ( 'gutenberg' === $this->page_edit_with ) {
107 112 $this->gutenberg_frontend();
108 113 }
109 114 }
110 115 }