OpenCart Better Together and Better Together Admin for Opencart have just been released for OpenCart 3.0.
Month: January 2018
CSS Button Fixes for Zen Cart Buy Both Now and Buy The Set
When I created Buy Both Now and Buy The Set for Zen Cart, I never took account of the possibility that templates would use the CSS buttons feature, which is available in Admin->Configuration->Layout Settings.
I have updated the help for these mods to show how they can be adopted to use CSS buttons too. It’s easy – for Buy Both Now, just modify
includes/functions/extra_functions/checkbbn_pi.php
and change
$bbn_string_end = '<input type="image" src="' . $button . '" alt="Buy both now" title="Buy both now" /></form>';
to
$bbn_string_end = " " . zen_image_submit($image, "Buy Both Now") . "</form>";
and similarly, for Buy the Set, just modify
includes/functions/extra_functions/checkbts_pi.php
and change
$bts_string_end = '<input type="image" src="' . $button . '" alt="Buy the set" title="Buy the set" /></form>';
to
$bts_string_end = " " . zen_image_submit($image, "Buy the set") . "</form>";
Zen Cart Buy Both Now fixes
A customer reported that the Zen Cart Buy Both Now demo wasn’t working. Upon investigation, I discovered that although my local tests were working, the installed product wasn’t working on the test site because the test site was using SSL. This issue has been fixed in Buy Both Now version 2.4a.