• Resolved Art Project Group

    (@artprojectgroup)


    Try to use this code in an Avada cart page:

    [fusion_builder_container admin_label="Contenido" type="flex" hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" align_content="stretch" flex_align_items="flex-start" flex_justify_content="flex-end" hundred_percent_height_center_content="yes" equal_height_columns="no" container_tag="div" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" padding_top="50px" padding_bottom="50px" border_style="solid" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" background_blend_mode="none" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" pattern_bg="none" pattern_bg_style="default" pattern_bg_opacity="100" pattern_bg_blend_mode="normal" mask_bg="none" mask_bg_style="default" mask_bg_opacity="100" mask_bg_transform="left" mask_bg_blend_mode="normal" absolute="off" absolute_devices="small,medium,large" sticky="off" sticky_devices="small-visibility,medium-visibility,large-visibility" sticky_transition_offset="0" scroll_offset="0" animation_direction="left" animation_speed="0.3" animation_delay="0" filter_hue="0" filter_saturation="100" filter_brightness="100" filter_contrast="100" filter_invert="0" filter_sepia="0" filter_opacity="100" filter_blur="0" filter_hue_hover="0" filter_saturation_hover="100" filter_brightness_hover="100" filter_contrast_hover="100" filter_invert_hover="0" filter_sepia_hover="0" filter_opacity_hover="100" filter_blur_hover="0"][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" align_self="auto" content_layout="column" align_content="flex-start" valign_content="flex-start" content_wrap="wrap" center_content="no" column_tag="div" target="_self" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" order_medium="0" order_small="0" margin_top="0" margin_bottom="0" hover_type="none" border_style="solid" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" z_index_subgroup="regular" background_type="single" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" lazy_load="avada" background_position="left top" background_repeat="no-repeat" background_blend_mode="none" sticky="off" sticky_devices="small-visibility,medium-visibility,large-visibility" absolute="off" filter_type="regular" filter_hover_element="self" filter_hue="0" filter_saturation="100" filter_brightness="100" filter_contrast="100" filter_invert="0" filter_sepia="0" filter_opacity="100" filter_blur="0" filter_hue_hover="0" filter_saturation_hover="100" filter_brightness_hover="100" filter_contrast_hover="100" filter_invert_hover="0" filter_sepia_hover="0" filter_opacity_hover="100" filter_blur_hover="0" transform_type="regular" transform_hover_element="self" transform_scale_x="1" transform_scale_y="1" transform_translate_x="0" transform_translate_y="0" transform_rotate="0" transform_skew_x="0" transform_skew_y="0" transform_scale_x_hover="1" transform_scale_y_hover="1" transform_translate_x_hover="0" transform_translate_y_hover="0" transform_rotate_hover="0" transform_skew_x_hover="0" transform_skew_y_hover="0" transition_duration="300" transition_easing="ease" animation_direction="left" animation_speed="0.3" animation_delay="0" last="true" border_position="all" first="true"][fusion_tb_woo_notices alignment="left" show_button="yes" hide_on_mobile="small-visibility,medium-visibility,large-visibility" padding_top="20px" padding_right="20px" padding_bottom="20px" padding_left="20px" margin_bottom="50px" border_style="solid" background_color="var(--awb-color4)" border_color="var(--awb-color7)" icon="fa-check-circle far" icon_color="var(--awb-color3)" font_color="var(--awb-color3)" link_color="var(--awb-color5)" link_hover_color="var(--awb-color3)" success_background_color="var(--awb-color8)" success_border_color="var(--awb-color7)" success_icon="fa-check fas" success_icon_color="var(--awb-color4)" success_text_color="var(--awb-color4)" success_link_color="var(--awb-color1)" success_link_hover_color="var(--awb-color4)" error_background_color="var(--awb-color8)" error_border_color="var(--awb-color7)" error_icon="fa-exclamation fas" error_icon_color="var(--awb-color1)" error_text_color="var(--awb-color1)" error_link_color="var(--awb-color4)" error_link_hover_color="var(--awb-color1)" animation_direction="left" animation_speed="0.3" animation_delay="0" /][fusion_woo_cart_table table_columns="name,price,quantity,subtotal,remove" table_header_visibility="show" hide_on_mobile="small-visibility,medium-visibility,large-visibility" fusion_font_family_heading_font="var(--awb-typography2-font-family)" fusion_font_variant_heading_font="var(--awb-typography2)" heading_font_size="20px" heading_line_height="var(--awb-typography2-line-height)" heading_letter_spacing="var(--awb-typography2-letter-spacing)" heading_text_transform="var(--awb-typography2-text-transform)" heading_color="var(--awb-color1)" fusion_font_family_text_font="var(--awb-typography4-font-family)" fusion_font_variant_text_font="var(--awb-typography4)" text_font_size="var(--awb-typography4-font-size)" text_line_height="var(--awb-typography4-line-height)" text_letter_spacing="var(--awb-typography4-letter-spacing)" text_text_transform="var(--awb-typography4-text-transform)" text_color="var(--awb-color4)" animation_direction="left" animation_speed="0.3" animation_delay="0" /][/fusion_builder_column][fusion_builder_column type="1_2" layout="1_2" align_self="auto" content_layout="column" align_content="flex-start" valign_content="flex-start" content_wrap="wrap" center_content="no" column_tag="div" target="_self" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" order_medium="0" order_small="0" margin_bottom="0" hover_type="none" border_style="solid" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" z_index_subgroup="regular" background_type="single" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" lazy_load="avada" background_position="left top" background_repeat="no-repeat" background_blend_mode="none" sticky="off" sticky_devices="small-visibility,medium-visibility,large-visibility" absolute="off" filter_type="regular" filter_hover_element="self" filter_hue="0" filter_saturation="100" filter_brightness="100" filter_contrast="100" filter_invert="0" filter_sepia="0" filter_opacity="100" filter_blur="0" filter_hue_hover="0" filter_saturation_hover="100" filter_brightness_hover="100" filter_contrast_hover="100" filter_invert_hover="0" filter_sepia_hover="0" filter_opacity_hover="100" filter_blur_hover="0" transform_type="regular" transform_hover_element="self" transform_scale_x="1" transform_scale_y="1" transform_translate_x="0" transform_translate_y="0" transform_rotate="0" transform_skew_x="0" transform_skew_y="0" transform_scale_x_hover="1" transform_scale_y_hover="1" transform_translate_x_hover="0" transform_translate_y_hover="0" transform_rotate_hover="0" transform_skew_x_hover="0" transform_skew_y_hover="0" transition_duration="300" transition_easing="ease" animation_direction="left" animation_speed="0.3" animation_delay="0" last="true" border_position="all" first="true"][fusion_woo_cart_totals buttons_visibility="show" buttons_layout="stacked" floated_buttons_alignment="flex-start" stacked_buttons_alignment="flex-end" button_span="no" button_margin_top="20px" button_margin_bottom="20px" hide_on_mobile="small-visibility,medium-visibility,large-visibility" fusion_font_family_heading_font="var(--awb-typography3-font-family)" fusion_font_variant_heading_font="var(--awb-typography3)" heading_font_size="20px" heading_line_height="var(--awb-typography3-line-height)" heading_letter_spacing="var(--awb-typography3-letter-spacing)" heading_text_transform="var(--awb-typography3-text-transform)" heading_color="var(--awb-color2)" fusion_font_family_text_font="var(--awb-typography4-font-family)" fusion_font_variant_text_font="var(--awb-typography4)" text_font_size="var(--awb-typography4-font-size)" text_line_height="var(--awb-typography4-line-height)" text_letter_spacing="var(--awb-typography4-letter-spacing)" text_text_transform="var(--awb-typography4-text-transform)" animation_direction="left" animation_speed="0.3" animation_delay="0" /][fusion_code]PHNjcmlwdD4KZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcigiRE9NQ29udGVudExvYWRlZCIsIGZ1bmN0aW9uKCkgewogIGpRdWVyeShkb2N1bWVudCkucmVhZHkoZnVuY3Rpb24oJCl7CiAgICAgICAgbGV0IHRpbWVvdXQ7CiAgICAgICAgJChkb2N1bWVudCkub24oJ2NoYW5nZScsICdpbnB1dC5xdHknLCBmdW5jdGlvbigpIHsKICAgICAgICAgICAgaWYgKCB0aW1lb3V0ICE9PSB1bmRlZmluZWQgKSB7CiAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQoIHRpbWVvdXQgKTsKICAgICAgICAgICAgfQogICAgICAgICAgICB0aW1lb3V0ID0gc2V0VGltZW91dChmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgICQoIltuYW1lPSd1cGRhdGVfY2FydCddIikudHJpZ2dlcigiY2xpY2siKTsKICAgICAgICAgICAgfSwgMTAwICk7CiAgICAgICAgfSk7CiAgICB9KTsKfSk7Cjwvc2NyaXB0Pgo=[/fusion_code][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container][fusion_builder_container admin_label="Carrito vacío" type="flex" hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" align_content="stretch" flex_align_items="flex-start" flex_justify_content="flex-start" hundred_percent_height_center_content="yes" equal_height_columns="no" container_tag="div" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" margin_top="-50px" border_style="solid" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" background_blend_mode="none" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" pattern_bg="none" pattern_bg_style="default" pattern_bg_opacity="100" pattern_bg_blend_mode="normal" mask_bg="none" mask_bg_style="default" mask_bg_opacity="100" mask_bg_transform="left" mask_bg_blend_mode="normal" render_logics="W3sib3BlcmF0b3IiOiJhbmQiLCJjb21wYXJpc29uIjoiZXF1YWwiLCJmaWVsZCI6ImNhcnRfc3RhdHVzIiwidmFsdWUiOiJlbXB0eSJ9XQ==" absolute="off" absolute_devices="small,medium,large" sticky="off" sticky_devices="small-visibility,medium-visibility,large-visibility" sticky_transition_offset="0" scroll_offset="0" animation_direction="left" animation_speed="0.3" animation_delay="0" filter_hue="0" filter_saturation="100" filter_brightness="100" filter_contrast="100" filter_invert="0" filter_sepia="0" filter_opacity="100" filter_blur="0" filter_hue_hover="0" filter_saturation_hover="100" filter_brightness_hover="100" filter_contrast_hover="100" filter_invert_hover="0" filter_sepia_hover="0" filter_opacity_hover="100" filter_blur_hover="0"][fusion_builder_row][fusion_builder_column type="1_1" layout="1_1" align_self="auto" content_layout="column" align_content="flex-start" valign_content="flex-start" content_wrap="wrap" center_content="no" column_tag="div" target="_self" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" order_medium="0" order_small="0" margin_top="0" margin_bottom="0" hover_type="none" border_style="solid" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" z_index_subgroup="regular" background_type="single" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" lazy_load="avada" background_position="left top" background_repeat="no-repeat" background_blend_mode="none" render_logics="W10=" sticky="off" sticky_devices="small-visibility,medium-visibility,large-visibility" absolute="off" filter_type="regular" filter_hover_element="self" filter_hue="0" filter_saturation="100" filter_brightness="100" filter_contrast="100" filter_invert="0" filter_sepia="0" filter_opacity="100" filter_blur="0" filter_hue_hover="0" filter_saturation_hover="100" filter_brightness_hover="100" filter_contrast_hover="100" filter_invert_hover="0" filter_sepia_hover="0" filter_opacity_hover="100" filter_blur_hover="0" transform_type="regular" transform_hover_element="self" transform_scale_x="1" transform_scale_y="1" transform_translate_x="0" transform_translate_y="0" transform_rotate="0" transform_skew_x="0" transform_skew_y="0" transform_scale_x_hover="1" transform_scale_y_hover="1" transform_translate_x_hover="0" transform_translate_y_hover="0" transform_rotate_hover="0" transform_skew_x_hover="0" transform_skew_y_hover="0" transition_duration="300" transition_easing="ease" animation_direction="left" animation_speed="0.3" animation_delay="0" last="true" border_position="all" first="true"][fusion_builder_row_inner][fusion_builder_column_inner type="5_6" layout="3_4" align_self="auto" content_layout="column" align_content="flex-start" valign_content="flex-start" content_wrap="wrap" center_content="no" column_tag="div" target="_self" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" order_medium="0" order_small="0" hover_type="none" border_style="solid" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" z_index_subgroup="regular" background_type="single" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" lazy_load="avada" background_position="left top" background_repeat="no-repeat" background_blend_mode="none" sticky="off" sticky_devices="small-visibility,medium-visibility,large-visibility" absolute="off" filter_type="regular" filter_hover_element="self" filter_hue="0" filter_saturation="100" filter_brightness="100" filter_contrast="100" filter_invert="0" filter_sepia="0" filter_opacity="100" filter_blur="0" filter_hue_hover="0" filter_saturation_hover="100" filter_brightness_hover="100" filter_contrast_hover="100" filter_invert_hover="0" filter_sepia_hover="0" filter_opacity_hover="100" filter_blur_hover="0" transform_type="regular" transform_hover_element="self" transform_scale_x="1" transform_scale_y="1" transform_translate_x="0" transform_translate_y="0" transform_rotate="0" transform_skew_x="0" transform_skew_y="0" transform_scale_x_hover="1" transform_scale_y_hover="1" transform_translate_x_hover="0" transform_translate_y_hover="0" transform_rotate_hover="0" transform_skew_x_hover="0" transform_skew_y_hover="0" transition_duration="300" transition_easing="ease" animation_direction="left" animation_speed="0.3" animation_delay="0" last="false" border_position="all" first="true"][fusion_text hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" fusion_font_family_text_font="var(--awb-typography4-font-family)" fusion_font_variant_text_font="var(--awb-typography4)" font_size="var(--awb-typography4-font-size)" line_height="var(--awb-typography4-line-height)" letter_spacing="var(--awb-typography4-letter-spacing)" text_transform="var(--awb-typography4-text-transform)" animation_direction="left" animation_speed="0.3" animation_delay="0"]

    And it will return this error:

    Fatal error: Uncaught Error: WooCommercePayPalCommerceApiClientApiModule::WooCommercePayPalCommerceApiClient{closure}(): Argument #1 ($cart) must be of type WC_Cart, null given, called in /home/xxx/public_html/wp-includes/class-wp-hook.php on line 308?
    in?
    /home/xxx/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/ApiModule.php on line 38.?

    Avada support says that the issue is generated by your plugin, which is true, and that it is up to you to fix it. However, we believe that the issue is generated by Avada Builder.

    We look forward to your prompt response.

    Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @artprojectgroup

    The Avada team is responsible for the compatibility of their page builder with PayPal Payments. We also don’t have access to this theme and plugins, so we cannot test it.

    Avada support says that the issue is generated by your plugin, which is true, and that it is up to you to fix it.

    While it is true that the error is thrown by PayPal Payments, it is thrown for a good reason. The $cart object is supposed to be of type WC_Cart and not null. Disabling the fusion builder will most likely resolve the issue.
    There have been other compatibility issues with the fusion builder in the past, but in every case solution had to be impleted by the Avada team.

    However, we believe that the issue is generated by Avada Builder.

    We agree that this problem must be addressed within the fusion builder directly and not in PayPal Payments.

    Kind regards,
    Niklas

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    As we haven’t heard back, and the issue is unlikely to be caused by the PayPal Payments plugin, I’m marking this thread as resolved.
    Hopefully, you were able to proceed as advised above. Please let us know if the Avada support comes back with any additional information that would be relevant from our end.
    And if you have any further questions, please feel free to reopen this topic or create a new one.
    Thanks!

    Kind regards,
    Niklas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with Avada theme custom Cart Template’ is closed to new replies.