Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • if(  !function_exists('wc_notice_count')  ){
      function wc_notice_count( $notice_type = '' ) {
    	if ( ! did_action( 'woocommerce_init' ) ) {
    		wc_doing_it_wrong( __FUNCTION__, __( 'This function should not be called before woocommerce_init.', 'woocommerce' ), '2.3' );
    		return;
    	}
    
    	$notice_count = 0;
    	$all_notices  = WC()->session->get( 'wc_notices', array() );
    
    	if ( isset( $all_notices[ $notice_type ] ) && is_array( $all_notices[ $notice_type ] ) ) {
    
    		$notice_count = count( $all_notices[ $notice_type ] );
    
    	} elseif ( empty( $notice_type ) ) {
    
    		foreach ( $all_notices as $notices ) {
    			if ( is_countable( $notices ) ) {
    				$notice_count += count( $notices );
    			}
    		}
    	}
    
    	return $notice_count;
      }
    }

    This is not ideal, so hopefully they will fix this soon. This is still happening for me. But if you paste this in your functions.php file, it should fix the error. This is just the missing function copied and pasted from Woocommerce Core. We first check if the function exists, and if not then woocommerce will use the version of the function contained in my code block. Once again this is not ideal but should fix the issue temporarily until a real fix is implemented.

    The original function can be found here;
    https://github.com/woocommerce/woocommerce/blob/2f6818772e9562df7b745cbb2f235a127329d19e/plugins/woocommerce/includes/wc-notice-functions.php#L23

    • This reply was modified 9 months, 1 week ago by Verb_Form04.
    Plugin Author Verb_Form04

    (@verb_form04)

    Sorry you were having issues, I added some steps to remedy that that in the latest iteration. Let me know if you still have any issues.

    Plugin Author Verb_Form04

    (@verb_form04)

    Fixed in IOS 8!

    Plugin Author Verb_Form04

    (@verb_form04)

    Really glad you found the plugin useful. Sorry you are having issues.
    I think that may be an issue with your site but I am not sure. When you click the button, the “quick view” content is loaded via Ajax. If your site has other functions that are being run along side this ajax request that could slow things down. It would be really hard for me to tell without taking a look at your install, would you mind sharing a link to your site?

    Plugin Author Verb_Form04

    (@verb_form04)

    One more thing, do you know what might be preventing the x when clicking on it from not closing the pop up?

    It would be hard for me to tell without actually seeing it setup on your site. If you run into this issue again please post the link. If it is a bug or something we can definitely open a new support topic

    Plugin Author Verb_Form04

    (@verb_form04)

    Greetings, thank-you for clarifying! Currently there is only one default location for the button. Maybe I will look at adding some more default locations in the future.

    Your Issue

    1. You want to change the appearance of the quick-view button and where the quick-view button shows up on the front-end.
    2. You do not want the quick-view button to show by default; instead you would like for the button to show when a product image is hovered over.

    Currently you would need to:

    1. Make sure to uncheck “Auto Display Quick View Button” in the Formula04 Quick Window Settings screen.

      This will prevent the button from showing up automatically in the front end you will need to add the code manually where you want it to appear.

    2. Insert shortcode into your template

      This can be done a bunch of different ways. One way would to be to find the template that is generating the html for the place you would like the button to appear. This will be different files for different people. In your case you need to find the file that is generating the HTML for for your product images.

    3. so if you found generic_template_file.php and it contained this code.

      <a href="yoursite.com/visit_detail_page">
      <img src="yoursite.com/link_to_product_image.jpg" />
      </a>

      You might try changing it to

      <a class="link_to_my_product" href="yoursite.com/visit_detail_page">
      
      <?php echo do_shortcode(  "[  form04wooquickwindow  product_id=”PRODUCT_ID_HERE″ button_text=”CLICK ME” class=”SomeCssClass”  ]"  ); ?>
      
      <img src="yoursite.com/link_to_product_image.jpg" />
      </a>

      You need to fill in the PRODUCT_ID_HERE dynamically depending on your template. in most cases get_the_ID() should work.

    4. Use Css and or JavaScript to determine the behavior of your button.

      Now that are button is showing up where we want it on the front end we would use the CSS to style it.

      <style type="text/css">
      
      .SomeCssClass{
      display:NONE;
      }
      
      .link_to_my_product:HOVER .SomeCssClass{
      display:BLOCK;
      }
      </style>

      This will only show the button the image is hovered over. Obviously you would want to further style it to match up with whatever the theme of your template is; this is just an overview of how to get it done.

    Plugin Author Verb_Form04

    (@verb_form04)

    Thank you for you feedback. I am glad you are finding it useful. Please describe to me exactly how you see this Hover Image working so I make sure I understand correctly.

    As of right meow, there is a link a.quick_button that when clicked on launches the quick view. You can style this by adding a background image, or other css to change the look.

    But you are saying that you want that
    <a class = "quick_button button"></a>
    to be
    <img class = "quick_button button" />
    instead?
    You also want the quick window to launch when the quick_button is hovered?

    Once again, I am not sure if I understand exactly what you are asking for. Please let me know and I will see what I can do!

    Plugin Author Verb_Form04

    (@verb_form04)

    Can you tell me what version of IOS you have installed on your iphone?

    I was able to reproduce the same error on IOS versions below IOS8. I think there is a bug that has since been fixed. I will be adding a js fix shortly; but definitely want to hear what ios version you are using. Thank-You!

    Plugin Author Verb_Form04

    (@verb_form04)

    closing

    Plugin Author Verb_Form04

    (@verb_form04)

    No problem, I think that it was a great addition to this little plug so thank you for the suggestion. Happy coding ??

    Plugin Author Verb_Form04

    (@verb_form04)

    You got it bud! Next time you update those features should be added in. Let me know if it is not working correctly for you.

    Plugin Author Verb_Form04

    (@verb_form04)

    Added it to Readme ??

    Plugin Author Verb_Form04

    (@verb_form04)

    I will be adding instructions to the documentation shortly.

    In the mean time.

    [form04wooquickwindow button_text="Quick View" product_id="99" id="Product ID HERE" class="someclass someotherclass" ]

    Shortcode is form04wooquickwindow

    Attributes are
    product_id – if none is specified then the script will look for a product using the current global ID
    id – CSS ID
    class CSS Classes
    button_text – Text that appears on the actual button.

    Hope this helps!
    Thanks for your patience.

    Plugin Author Verb_Form04

    (@verb_form04)

    You probably viewed the site, while I was working on it. So sorry about that. Try again when you get a chance and you should be able to see the button. The current button text is “Quick View”

    Plugin Author Verb_Form04

    (@verb_form04)

    Sorry about that. Yes there is a shortcode that you can use to put the password form where you want. I have not got a chance to update the readme file but will do so soon. In the mean time you can follow instructions Here:

    huge if we could actually specify the redirect in the same manner we can choose to whitelist.

    Not quite sure what you mean by this? Will you elaborate?

    Currently the redirection location is in a dropdown menu because there should only be one redirection location. The posts and pages selected using check boxes because I wanted the user to be able to white-list multiple pages.

Viewing 15 replies - 1 through 15 (of 18 total)