Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1089431
    Rue Nel
    Moderator

    Hello Again,

    Thanks for the updates! Do you have any custom woocommerce templates? Or any other template customization? Would you mind providing us the url of your site with login credentials so we can take a closer look and fix the issue? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – Link to your site

    – WordPress Admin username / password
    – FTP Hostname
    – FTP Username
    – FTP Password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #1089847
    pdopchev
    Participant
    This reply has been marked as private.
    #1090024
    pdopchev
    Participant

    A quick update: just added an additional line of code so the “Skier Form” button only shows on certain products. The issues still persists, but it is there only on specific products.

    Example:
    no issue (no button): http://www.dopchevproductions.com/test/product/the-80/
    layout distortion: http://www.dopchevproductions.com/test/product/the-80-custom/

    current code for the button:

    
    // =============================================================================
    // Additional Button On Product Page with a Form Pop Up in a Lightbox
    // =============================================================================
    
    add_action('woocommerce_single_product_summary','cmk_additional_button', 40);
    function cmk_additional_button() {
    
    $product_ids = array(645,988,1207,1214,1226,1242,1254,1261,1271);
    if(in_array(get_the_ID(),$product_ids))
    
    {
    	echo '<div class="mtm mbm">';
    	echo '<a href="#my-content" class="product_lightbox x-btn" data-content="Launch form!" data-type="inline">Skier Form</a>';
    	echo '</div>';
    	
    	echo '<div id="my-content" style="display: none; width: 1200px; ">';
    	echo do_shortcode( '[contact-form-7 id="1024" title="Skier Form"]');
    	echo '</div>';
    
    	echo do_shortcode( '[lightbox selector=".product_lightbox"]' );
    
    }
    }
    
    #1090127
    Rad
    Moderator

    Hi there,

    Your form content has no proper closing.

    <div class="x-column x-1-1 x-sm">[checkbox* your-shape-interest "The 80"  "94"  "100"  "106"]
    <div class="x-column x-1-1 x-sm">[checkbox* your-shape-interest "120"  "115 Twin"  "Pin Tail"  "FH" ] </div>

    Missing one </div>, I went ahead and fixed it. Cheers!

    #1093849
    pdopchev
    Participant

    @Rad, thanks a lot of the help! I was banging my head to figure out what the reason was…

    Highly appreciate it!

    #1093866
    Joao
    Moderator

    Glad to hear we managed to help.

    Let us know if you have any questions.

    Joao

  • <script> jQuery(function($){ $("#no-reply-1080880 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>