I have just installed version 1.0 of this addon on to my 1.7.11 store and no matter what the width setting is changed to, the button width always stays the same. The width setting in the image is set to 12. When I alter it to 6 and change the checkout button width to 6 there is a huge gap between the two buttons and the continue shopping button is still the narrow width.
I can change the position of the button and the colour of the button, I just cannot change the width of the button.
I have tried removing other modules from the shopping cart page and nothing seems to work.
Any ideas.
Continue Shopping Button
Button width incorrect - Continue Shopping Button
-
- VIP Member
- Posts: 578
- Joined: Fri Oct 25, 2019 7:01 pm
- Contact:
Re: Button width incorrect
I believe you need to add “btn-block” for a full col width button.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
- PhoenixCart Developer
- Posts: 1212
- Joined: Sat Dec 21, 2019 8:08 am
- : Buy Me A Beverage
- Contact:
Re: Button width incorrect
With a bit of copying from other buttons I finally managed to get the continue shopping button on the same line as the checkout button and both at 6 wide. The button does now change width depending on the settings unlike before.
Hopefully that is right as it all seems to be working as it should. Thanks for pointing me in the right direction.
Code: Select all
<div class="col-sm-<?= $content_width ?> cm-sc-continue-shopping my-2">
<div class="buttonSet">
<?= tep_draw_button(MODULE_CONTENT_SC_CONTINUE_SHOPPING_BUTTON, 'fas fa-angle-left', $backlink , null, null, 'btn-primary btn-lg btn-block'); ?>
</div>
</div>
-
- VIP Member
- Posts: 578
- Joined: Fri Oct 25, 2019 7:01 pm
- Contact: