{"id":565,"date":"2020-07-01T10:42:30","date_gmt":"2020-07-01T09:42:30","guid":{"rendered":"https:\/\/www.graphicz.co.uk\/blog\/?p=565"},"modified":"2020-07-13T09:30:01","modified_gmt":"2020-07-13T08:30:01","slug":"adding-payment-by-bacs-payment-option-to-sellerdeck","status":"publish","type":"post","link":"https:\/\/www.graphicz.co.uk\/blog\/adding-payment-by-bacs-payment-option-to-sellerdeck\/","title":{"rendered":"Adding &#8220;Payment by BACS&#8221; payment option to Sellerdeck"},"content":{"rendered":"\n<p>Make a new payment option (Settings, Business Settings, Payment and Security).<br>Click the + to make a new row and use the drop down to select &#8216;Credit card details sent separately&#8217;.<br>Change &#8216;Web Site description&#8217; to &#8216;Bank Transfer BACS&#8217;<br>Change &#8216;Desktop description&#8217; to &#8216;Bank Transfer BACS&#8217;<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a title=\"Adding Payment by BACS payment option to Selledeck\" class=\"fancybox\" href=\"https:\/\/www.graphicz.co.uk\/blog\/wp-content\/uploads\/2020\/07\/bacs-option-1.jpg\" rel='magnific'><img decoding=\"async\" src=\"https:\/\/www.graphicz.co.uk\/blog\/wp-content\/uploads\/2020\/07\/bacs-option-1.jpg\" alt=\"Adding Payment by BACS payment option to Selledeck\" title=\"Adding Payment by BACS payment option to Selledeck\"><\/a><\/figure>\n\n\n\n<p>Go to Design, Text, and bottom left &#8216;GoTo&#8217; enter Phase -1 ID 80 and OK<br>In &#8216;Current Value&#8217; change &#8216;Credit Card Details Sent Separately&#8217; to &#8216;Bank Transfer (BACS)&#8217;<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a class=\"fancybox\" href=\"https:\/\/www.graphicz.co.uk\/blog\/wp-content\/uploads\/2020\/07\/bacs-option-1a.jpg\" rel='magnific' title=\"Adding Payment by BACS payment option to Selledeck\"><img decoding=\"async\" src=\"https:\/\/www.graphicz.co.uk\/blog\/wp-content\/uploads\/2020\/07\/bacs-option-1a.jpg\" alt=\"Adding Payment by BACS payment option to Selledeck\" title=\"Adding Payment by BACS payment option to Selledeck\"><\/a><\/figure>\n\n\n\n<p>Click Design, Library, Layouts, Checkout Area find &#8216;Receipt Payment Sent Separately Fields&#8217;<br>Right click to copy and rename the copied layout to:<br>Receipt Payment Sent Separately Fields BACS.<br><br>Open the Receipt Payment Sent Separately Fields BACS layout, delete everything and replace with the following:<br><br>Code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">NETQUOTEDEL:PAYMENTSENTSEPARATE\n&lt;actinic:variable name=\"CheckoutPrompt\" value=\"Receipt Enter Payment Method\" \/&gt;\n&lt;actinic:variable Name=\"PurchaseOrderNumber\"\/&gt;\n&lt;div class=\"row\"&gt;\n&lt;div class=\"cartheading col-12\"&gt;\n&lt;b&gt;Please pay now by Bank Transfer (BACS)&lt;\/b&gt;\n&lt;\/div&gt;\n&lt;\/div&gt;\n&lt;div class=\"row\"&gt;\n&lt;div class=\"cart col-6\"&gt;\n&lt;b&gt;Pay NETQUOTEVAR:FORMATTEDORDERTOTALHTML into this bank account:&lt;\/b&gt;\n&lt;\/div&gt;\n&lt;div class=\"cart col-6\"&gt;\n&lt;actinic:variable name=\"CompanyName\" \/&gt;&lt;br&gt;\nAmount: NETQUOTEVAR:FORMATTEDORDERTOTALHTML&lt;br&gt;\nA\/C 12345678&lt;br&gt;\nSort-Code 12-34-56&lt;br&gt;\nPlease use reference: NETQUOTEVAR:THEORDERNUMBER\n&lt;\/div&gt;\n&lt;\/div&gt;\nNETQUOTEDEL:PAYMENTSENTSEPARATE<\/pre>\n\n\n\n<p>You would change<br>Code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">A\/C 12345678&lt;br&gt;\nSort-Code 12-34-56&lt;br&gt;<\/pre>\n\n\n\n<p>to your own bank details<br><br>In Design Tab Select Page Type &#8216;Receipt&#8217;<br>Look for<br>Receipt Page Bulk RWD then<br>Receipt Order Information RWD then<br>Receipt Payment Detail Fields then<br><br>Replace<br>Code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;actinic:variable name=\"CheckoutArea\" value=\"Receipt Payment Sent Separately Fields\" \/&gt;<\/pre>\n\n\n\n<p>with<br>Code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;actinic:variable name=\"CheckoutArea\" value=\"Receipt Payment Sent Separately Fields BACS\" \/&gt;<\/pre>\n\n\n\n<a title=\"Adding Payment by BACS payment option to Selledeck\" class=\"fancybox\" href=\"https:\/\/www.graphicz.co.uk\/blog\/wp-content\/uploads\/2020\/07\/bacs-option-2.jpg\" rel='magnific'><img decoding=\"async\" src=\"https:\/\/www.graphicz.co.uk\/blog\/wp-content\/uploads\/2020\/07\/bacs-option-2.jpg\" alt=\"Adding Payment by BACS payment option to Selledeck\" title=\"Adding Payment by BACS payment option to Selledeck\"><\/a>\n\n\n\n<p>The code you enetered above into the new layout will look like this:<br><\/p>\n\n\n\n<a title=\"Adding Payment by BACS payment option to Selledeck\" href=\"https:\/\/www.graphicz.co.uk\/blog\/wp-content\/uploads\/2020\/07\/bacs-option-3.jpg\" rel='magnific' class=\"fancybox\"><img decoding=\"async\" src=\"https:\/\/www.graphicz.co.uk\/blog\/wp-content\/uploads\/2020\/07\/bacs-option-3.jpg\" alt=\"Adding Payment by BACS payment option to Selledeck\" title=\"Adding Payment by BACS payment option to Selledeck\"><\/a>\n\n\n\n<p>Now close the software and open the database in Access, then go to the &#8216;Variable&#8217; table and scroll down the &#8216;nID&#8217; column until you reach number: 741 and then move along the record to &#8216;sDefault&#8217; and change the entry there to<br><br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Print this page and keep it for your records. If you need to contact us, refer to the \"Order Number\" below. Your order has been recorded. Please pay now by bank transfer (BACS) using the details that appear below. <\/pre>\n\n\n\n<p>In Page type Receipt, Receipt Page Bulk RWD add &#8216;&lt;br \/&gt;&lt;b&gt;&lt;\/b&gt;&#8217; to &#8216;SendSeparately&#8217; and add the following to the layout around line 29-30:<br>Code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;button onclick=\"window.print()\"&gt;Print this page&lt;\/button&gt;<\/pre>\n\n\n\n<p>so it looks like this:<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a class=\"fancybox\" href=\"https:\/\/www.graphicz.co.uk\/blog\/wp-content\/uploads\/2020\/07\/printpage.jpg\" rel='magnific'><img decoding=\"async\" src=\"https:\/\/www.graphicz.co.uk\/blog\/wp-content\/uploads\/2020\/07\/printpage.jpg\" alt=\"Add print this page button\" title=\"printpage.jpg\"><\/a><\/figure>\n\n\n\n<p>Save and close and open the software. Please note that what you see in preview may not be the same as in the live site.<br><br>Go to Design Text Phase -1 ID 73 and change the current value to<br><br><pre>Your order has been recorded. Please pay now by bank transfer (BACS) using the details that appear below.<\/pre><br><br>Save and close.<\/p>\n\n\n\n<p>We now need to put the instruction to pay by BACS in the Customer email &#8211; the one they get when they place an order.<br><br>Open &#8216;OrderScript.pl&#8217; and locate the code:<br>Code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">my $sPaymentDescription = $::g_pPaymentList-&gt;{$nPaymentMethod}-&gt; {PROMPT};<\/pre>\n\n\n\n<p>Then add the block of code that follows, below the code above and before the line:<br>Code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ACTINIC::B2B-&gt;SetXML('PAYMENT_METHOD', $sPaymentDescription);<\/pre>\n\n\n\n<p>The code to be added is:<br>Code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">if ($nPaymentMethod == $::PAYMENT_CREDIT_CARD_SEPARATE) { $sPaymentDescription = $sPaymentDescription . \" Please pay now by bank transfer (BACS) using the following details:&lt;\/b&gt;&lt;br&gt;Sort-Code 12-34-56&lt;br&gt;A\/C 12345678&lt;br&gt;Please use reference: \" . $sOrderNumber; }<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><a title=\"Edit order script pl\" class=\"fancybox\" href=\"https:\/\/www.graphicz.co.uk\/blog\/wp-content\/uploads\/2020\/07\/orderscriptedit.jpg\" rel='magnific'><img decoding=\"async\" src=\"https:\/\/www.graphicz.co.uk\/blog\/wp-content\/uploads\/2020\/07\/orderscriptedit.jpg\" alt=\"Edit order script pl\" title=\"Edit order script pl\"><\/a><\/figure>\n\n\n\n<p>If you are a developer and wanted to create variables then you could do this (Thanks to Norman at <a href=\"http:\/\/drillpine.biz\/\" target=\"_blank\" rel=\"noreferrer noopener\">Drillpine.biz<\/a>):<br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">if ($nPaymentMethod == $::PAYMENT_CREDIT_CARD_SEPARATE)\n{\n$sPaymentDescription = $sPaymentDescription . ' Please pay now by bank transfer (BACS) using the following details:&lt;\/b>&lt;br>Sort-Code &lt;actinic:variable name=\"BankSortCode\" \/>&lt;br>A\/C &lt;actinic:variable name=\"BankAccountNumber\" \/>&lt;br>Please use reference: ' . $sOrderNumber;\n}<\/pre>\n\n\n\n<p>Then save, close the file and upload.<br><br>Remember you wll need to repatch this if you upgrade or purge and refresh the site.<br><br>Now open Design, Library, Email Inner Layout &#8216;Order received HTML Email Inner Layout&#8217; (if using html email). This is the email you send from the desktop when you have downloaded the order and have started processing it.<br><br>Change the content so it looks like this:<br><br>Code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;p&gt;Dear &lt;actinic:variable encoding=\"html\" name=\"ContactInvoiceName\"\/&gt;,\n&lt;p&gt;\n&lt;actinic:block if=\"%3cactinic%3avariable%20name%3d%22ContactInvoiceCompany%22%2f%3e%20%21%3d%20%22%22\"&gt;&lt;p&gt;&lt;actinic:variable encoding=\"html\" name=\"ContactInvoiceCompany\"\/&gt;\n&lt;\/actinic:block&gt;&lt;p&gt;We have received and are processing the following order:\n&lt;p&gt;\n&lt;pre&gt;&lt;actinic:variable encoding=\"htmlline\" name=\"CustomerData\"\/&gt;&lt;\/pre&gt;\n&lt;font face=\"Courier New, Courier, sans-serif\"&gt;\n&lt;pre&gt;&lt;actinic:variable encoding=\"htmlline\" name=\"OrderData\"\/&gt;&lt;\/pre&gt;\n&lt;pre&gt;&lt;actinic:variable encoding=\"htmlline\" name=\"OrderLines\"\/&gt;&lt;\/pre&gt;\n&lt;pre&gt;&lt;actinic:variable encoding=\"htmlline\" name=\"OrderTotals\"\/&gt;&lt;\/pre&gt;\n&lt;actinic:block PHP='true' SELECTABLE='false'&gt;\n\n$myString = '&lt;actinic:variable encoding=\"htmlline\" name=\"OrderData\"\/&gt;';\n\nif (strpos($myString, \"Bank BACS\") !== false) {\necho \"&lt;b&gt;If not already done please pay now by bank transfer (BACS) using the following details:&lt;\/b&gt;&lt;br&gt;\nSort-Code 12-34-56&lt;br&gt;\nA\/C 12345678&lt;br&gt;\nPlease use reference: &lt;actinic:variable encoding=\"perl\" name=\"OrderNumberOnlineXML\" selectable=\"false\" \/&gt; \";\n}\n&lt;\/actinic:block&gt;\n&lt;\/font&gt;\n&lt;p&gt;&lt;actinic:variable encoding=\"html\" name=\"SSPRateMessage\"\/&gt;\n&lt;p&gt;\n&lt;p&gt;Sincerely,\n&lt;p&gt;&lt;actinic:variable encoding=\"html\" name=\"CompanyName\"\/&gt;\n&lt;p&gt;\n&lt;p&gt;\n&lt;p style=\"font-size: &lt;actinic:variable name=\"SmallFontSize\" \/&gt;\"&gt;&lt;strong&gt;Returns and Cancellations&lt;\/strong&gt;&lt;br&gt;&lt;actinic:variable name=\"ReturnsPolicy\" \/&gt;\n&lt;p&gt;\n&lt;p&gt;&lt;actinic:variable encoding=\"html\" name=\"SSPTrademarks\"\/&gt;<\/pre>\n\n\n\n<p>Publish to web and test. Just use &#8216;Test&#8217; for all the fields.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Make a new payment option (Settings, Business Settings, Payment and Security).Click the + to make a new row and use the drop down to select &#8216;Credit card details sent separately&#8217;.Change &#8216;Web Site description&#8217; to &#8216;Bank Transfer BACS&#8217;Change &#8216;Desktop description&#8217; to<span class=\"ellipsis\">&hellip;<\/span> <a href=\"https:\/\/www.graphicz.co.uk\/blog\/adding-payment-by-bacs-payment-option-to-sellerdeck\/\"><\/p>\n<div class=\"read-more\"><b>Read more &#8250;<\/b><\/div>\n<p><!-- end of .read-more --><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-565","post","type-post","status-publish","format-standard","hentry","category-graphicz-articles"],"_links":{"self":[{"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/posts\/565"}],"collection":[{"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=565"}],"version-history":[{"count":21,"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/posts\/565\/revisions"}],"predecessor-version":[{"id":624,"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/posts\/565\/revisions\/624"}],"wp:attachment":[{"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graphicz.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}