Forum Replies Created

Viewing 4 replies - 46 through 49 (of 49 total)
  • Thread Starter oldcode

    (@coconutcoder)

    I downloaded the latest iteration of the WP-CRM plugin and on line 886 of wp-crm/lib/class_contact_message.php, which is within the if( result.success == "true" ) { condition of the success: event of a very straightforward jQuery.ajax call, I added this setTimeout:

    setTimeout(function(){ window.location = "/support/"; },"3000");

    3 seconds is enough time to display the “Your message has been sent. Thank you.” response message, and then redirect the user back to the support page.

    Did you ever solve this?

    Thread Starter oldcode

    (@coconutcoder)

    It looks like this theme is using font-awesome fonts. The font-awesome.css @fonts class looks like this:

    @font-face {
    font-family: ‘FontAwesome’;
    src: url(‘../font/fontawesome-webfont.eot?v=4.3.0’);
    src: url(‘../font/fontawesome-webfont.eot?#iefix&v=4.3.0′) format(’embedded-opentype’), url(‘../font/fontawesome-webfont.woff2?v=4.3.0’) format(‘woff2’), url(‘../font/fontawesome-webfont.woff?v=4.3.0’) format(‘woff’), url(‘../font/fontawesome-webfont.ttf?v=4.3.0’) format(‘truetype’), url(‘../font/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular’) format(‘svg’);
    font-weight: normal;
    font-style: normal;
    }
    .fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate(0, 0);
    }

    Thread Starter oldcode

    (@coconutcoder)

    I hate the thought of hacking bto-item-options.php and add-to-cart-bto.js, but it’s looking like WooCommerce has tipped my hand. There is no native support for radio buttons, and this would explain why there are no maintained plugins that correct the WooCommerce deficiency.

    It’s not too bad; I have a working prototype that needs some style tweaks. The code changes are a little too lengthy to detail here, but basically, in the php file I replaced the select inputs with input radio. In the .js file, I replaced the listeners that refer to select with ones that refer to :radio, and the jQuery events seem to be working.

Viewing 4 replies - 46 through 49 (of 49 total)