ce7 Posted July 26, 2020 Share Posted July 26, 2020 hi, I am adding ask for quote for phoenix 1075 version, trying to add button Ask for Quote / Quote to product_info page, how can I unify the button size as Add To Cart? right now the quote button is small, how can i make it as Add To Cart to fill up the space? echo tep_draw_button(PI_BUY_BUTTON_TEXT, 'fas fa-shopping-cart', null, 'primary', array('params' => 'data-has-attributes="' . (($products_attributes['total'] > 0) ? '1' : '0') . '" data-in-stock="' . (int)$product_info['products_quantity'] . '" data-product-id="' . (int)$product_info['products_id'] . '"'), 'btn-success btn-block btn-lg btn-product-info btn-buy'); echo tep_draw_button(IS_PRODUCT_BUTTON_QUOTE, '', NULL, array('params' => 'data-has-attributes="' . ((tep_has_product_attributes((int)$product_info['products_id']) === true) ? '1' : '0') . '" data-in-stock="' . (int)$product_info['products_id'] . '" data-product-id="' . (int)$product_info['products_id'] . '"'), 'btn-success btn-product-info-product btn-quote') . PHP_EOL; any help or suggestion is appreciated, thanks! Link to comment Share on other sites More sharing options...
♥14steve14 Posted July 26, 2020 Share Posted July 26, 2020 In the code you posted above look for btn-block btn-lg the btn-large btn-block fills the entire width of the element it is in, and btn-large is the button size. Have a look here https://www.w3schools.com/bootstrap4/bootstrap_buttons.asp REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
ce7 Posted July 27, 2020 Author Share Posted July 27, 2020 @14steve14 hi Steve, yes, i changed the code and add btn-block, it fill up the width, and btn-large change the button size i will read through the link you suggested, thank you very much again. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.