Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

WCMp Catalog Enquiry breaks variations in WC 4.

WCMp Catalog Enquiry

Resolved
Viewing 10 reply threads
  • Author
    Posts
    • #115908
      Adis Durakovic
      Participant

      I’m about to update all plugins on a client website.
      As it turns out, Catalog Enquiry breaks the variation-switch functionality.

      How it’s supposed to work:

      WooCommerce 3.8.1
      WordPress 5.2.9
      Catalog Enquiry Pro 1.1.5

      https://ikivienna.at/deutschkurse/deutsch-intensivkurse/

      How it behaves now:
      WooCommerce 5.0 (or 4.x)
      WordPress 5.6.2
      Catalog Enquiry Pro 2.0.2

      https://client-ikivienna.dnmc.in/deutschkurse/deutsch-intensivkurse/

      Just try to toggle “Tageszeit” and “Zeitraum”, which should bring up the prices below.

    • #115939
      Adis Durakovic
      Participant

      The error lies within the file /plugins/woocommerce-catalog-enquiry/templates/woocommerce-catalog-enquiry-variable-product.php

      I swapped

      
      <div class="single_variation_wrap">
      			<?php
      			/**
      			 * woocommerce_before_single_variation Hook.
      			 */
      			do_action('woocommerce_catalog_enquiry_before_single_variation');
      
      			/**
      			 * woocommerce_single_variation hook. Used to output the cart button and placeholder for variation data.
      			 */
      			do_action('woocommerce_catalog_enquiry_single_variation');
      
      			/**
      			 * woocommerce_after_single_variation Hook.
      			 */
      			do_action('woocommerce_catalog_enquiry_after_single_variation');
      			?>
      		</div>
      
      Copy

      for

      
      	<div class="single_variation_wrap">
      			<?php
      			/**
      			 * Hook: woocommerce_before_single_variation.
      			 */
      			do_action('woocommerce_before_single_variation');
      
      			/**
      			 * Hook: woocommerce_single_variation. Used to output the cart button and placeholder for variation data.
      			 *
      			 * @since 2.4.0
      			 * @hooked woocommerce_single_variation - 10 Empty div for variation data.
      			 * @hooked woocommerce_single_variation_add_to_cart_button - 20 Qty and cart button.
      			 */
      			do_action('woocommerce_single_variation');
      
      			/**
      			 * Hook: woocommerce_after_single_variation.
      			 */
      			do_action('woocommerce_after_single_variation');
      			?>
      		</div>
      
      Copy
    • #115952

      Hello,

      can you please share a detailed video of the issue that you are facing so that we can understand the actual issue and guide you accordingly.

    • #115954
      Adis Durakovic
      Participant
    • #116019

      May I know if you have checked marketplace plugin with WooCommerce and standard theme (storefront/twenty). Please deactivate all your plugin, except WooCommerce and WCMp + addon. You can then check the flow. If everything is working fine, in order to detect which plugin is causing conflict- please activate each plugin consecutively and check the flow.
      Similarly, for theme conflict- please deactivate the current theme and check with standard WooCommerce theme (storefront/twenty) It is suggested to please perform these tests on your staging website and keep us posted with the outcome.

    • #116532
      Adis Durakovic
      Participant

      I have checked it with twenty-theme, same issue. But why would I bother testing by disabling other plugins, when I already provided you the working code. You just have to implement it.

    • #116594

      Hello,

      We have tested it at our end and its working fine as you can see here https://www.loom.com/share/144bfc5a0f574a05ab4f23e5de90bc34

      Kindly let us know if you need any further assistance.

    • #116914
      Adis Durakovic
      Participant

      Sorry, but are you kidding me?
      What exactly is your screen recording supposed to show me?

      Do you see how the price of the variable product changes, when selecting a variation like here? This is, how it’s supposed to work.
      https://i.imgur.com/uWV89Ai.gif

      However, if I enable your plugin, the price of the variation does not change, hence the variation is not selected correctly.
      https://i.imgur.com/k1Thpzc.gif

    • #116959

      Kindly check if you have enabled the add to cart settings from the backend as you can see here (https://prnt.sc/10cvzsn).
      We have tested it at our end and it is working fine as you can see here (https://www.loom.com/share/7e16d403bc80447993f55bda7a4cfb27)

    • #117238
      Adis Durakovic
      Participant

      Thank you! Now it’s working! But why did this setting got changed after an update?

    • #117244

      Thank you for the update. In our latest version we have introduced some new settings so that might caused the changes.

Viewing 10 reply threads

The topic ‘WCMp Catalog Enquiry breaks variations in WC 4.’ is closed to new replies.