I need Quick Order button at product page like this website Example Website I have created button at my website using attribute and the following code


but button not open popup modal window like above example mention website

        <?php if($_product->getCustom_button()){ //yes or no button?>
    <button type="button"
                        title="<?php echo $_product->getCustom_button_name() ;?>"
                        class="action primary"
                        onclick="window.onload('<?php echo $_product->getCustom_button_url() ;?>')"><span><span><i class="icon-desktop"></i><?php echo $_product->getCustom_button_name() ;?></span></span></button>
    <?php } ?>

my product page test url is URL Here and image enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.