{"id":1755,"date":"2018-01-15T11:07:38","date_gmt":"2018-01-15T16:07:38","guid":{"rendered":"http:\/\/www.thatsoftwareguy.com\/blog\/?p=1755"},"modified":"2020-04-05T09:53:46","modified_gmt":"2020-04-05T13:53:46","slug":"css-button-fixes-for-zen-cart-buy-both-now-and-buy-the-set","status":"publish","type":"post","link":"https:\/\/www.thatsoftwareguy.com\/blog\/2018\/01\/15\/css-button-fixes-for-zen-cart-buy-both-now-and-buy-the-set\/","title":{"rendered":"CSS Button Fixes for Zen Cart Buy Both Now and Buy The Set"},"content":{"rendered":"<p>When I created <a href=\"https:\/\/www.thatsoftwareguy.com\/zencart_buybothnow.html\">Buy Both Now<\/a> and <a href=\"https:\/\/www.thatsoftwareguy.com\/zencart_buytheset.html\">Buy The Set<\/a> for Zen Cart, I never took account of the possibility that templates would use the CSS buttons feature, which is available in Admin-&gt;Configuration-&gt;Layout Settings.<\/p>\n<p>I have updated the help for these mods to show how they can be adopted to use CSS buttons too.&nbsp; It&#8217;s easy &#8211; for Buy Both Now, just modify<\/p>\n<pre>includes\/functions\/extra_functions\/checkbbn_pi.php<\/pre>\n<p>and change<\/p>\n<p><code>$bbn_string_end = '&lt;input type=\"image\" src=\"' . $button . '\" alt=\"Buy both now\" title=\"Buy both now\" \/&gt;&lt;\/form&gt;';&nbsp;<\/code><\/p>\n<p>to<\/p>\n<p><code>$bbn_string_end = \"&nbsp;&nbsp;\" . zen_image_submit($image, \"Buy Both Now\") . \"&lt;\/form&gt;\";&nbsp;<\/code><\/p>\n<p>and similarly, for Buy the Set, just modify<\/p>\n<pre>includes\/functions\/extra_functions\/checkbts_pi.php<\/pre>\n<p>and change<\/p>\n<p><code>$bts_string_end = '&lt;input type=\"image\" src=\"' . $button . '\" alt=\"Buy the set\" title=\"Buy the set\" \/&gt;&lt;\/form&gt;';&nbsp;<\/code><\/p>\n<p>to<\/p>\n<p><code>$bts_string_end = \"&nbsp;&nbsp;\" . zen_image_submit($image, \"Buy the set\") . \"&lt;\/form&gt;\";&nbsp;<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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-&gt;Configuration-&gt;Layout Settings. I have updated the help for these mods to show how they can be adopted to use CSS buttons too.&nbsp; It&#8217;s &hellip; <a href=\"https:\/\/www.thatsoftwareguy.com\/blog\/2018\/01\/15\/css-button-fixes-for-zen-cart-buy-both-now-and-buy-the-set\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">CSS Button Fixes for Zen Cart Buy Both Now and Buy The Set<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78],"tags":[],"class_list":["post-1755","post","type-post","status-publish","format-standard","hentry","category-zen-cart"],"_links":{"self":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/1755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/comments?post=1755"}],"version-history":[{"count":2,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/1755\/revisions"}],"predecessor-version":[{"id":2227,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/1755\/revisions\/2227"}],"wp:attachment":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/media?parent=1755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/categories?post=1755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/tags?post=1755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}