Adding “Payment by BACS” payment option to Sellerdeck

Call 01323 872296


Adding “Payment by BACS” payment option to Sellerdeck

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 ‘Credit card details sent separately’.
Change ‘Web Site description’ to ‘Bank Transfer BACS’
Change ‘Desktop description’ to ‘Bank Transfer BACS’

Adding Payment by BACS payment option to Selledeck

Go to Design, Text, and bottom left ‘GoTo’ enter Phase -1 ID 80 and OK
In ‘Current Value’ change ‘Credit Card Details Sent Separately’ to ‘Bank Transfer (BACS)’

Adding Payment by BACS payment option to Selledeck

Click Design, Library, Layouts, Checkout Area find ‘Receipt Payment Sent Separately Fields’
Right click to copy and rename the copied layout to:
Receipt Payment Sent Separately Fields BACS.

Open the Receipt Payment Sent Separately Fields BACS layout, delete everything and replace with the following:

Code:

NETQUOTEDEL:PAYMENTSENTSEPARATE
<actinic:variable name="CheckoutPrompt" value="Receipt Enter Payment Method" />
<actinic:variable Name="PurchaseOrderNumber"/>
<div class="row">
<div class="cartheading col-12">
<b>Please pay now by Bank Transfer (BACS)</b>
</div>
</div>
<div class="row">
<div class="cart col-6">
<b>Pay NETQUOTEVAR:FORMATTEDORDERTOTALHTML into this bank account:</b>
</div>
<div class="cart col-6">
<actinic:variable name="CompanyName" /><br>
Amount: NETQUOTEVAR:FORMATTEDORDERTOTALHTML<br>
A/C 12345678<br>
Sort-Code 12-34-56<br>
Please use reference: NETQUOTEVAR:THEORDERNUMBER
</div>
</div>
NETQUOTEDEL:PAYMENTSENTSEPARATE

You would change
Code:

A/C 12345678<br>
Sort-Code 12-34-56<br>

to your own bank details

In Design Tab Select Page Type ‘Receipt’
Look for
Receipt Page Bulk RWD then
Receipt Order Information RWD then
Receipt Payment Detail Fields then

Replace
Code:

<actinic:variable name="CheckoutArea" value="Receipt Payment Sent Separately Fields" />

with
Code:

<actinic:variable name="CheckoutArea" value="Receipt Payment Sent Separately Fields BACS" />
Adding Payment by BACS payment option to Selledeck

The code you enetered above into the new layout will look like this:

Adding Payment by BACS payment option to Selledeck

Now close the software and open the database in Access, then go to the ‘Variable’ table and scroll down the ‘nID’ column until you reach number: 741 and then move along the record to ‘sDefault’ and change the entry there to

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. 

In Page type Receipt, Receipt Page Bulk RWD add ‘<br /><b></b>’ to ‘SendSeparately’ and add the following to the layout around line 29-30:
Code:

<button onclick="window.print()">Print this page</button>

so it looks like this:

Add print this page button

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.

Go to Design Text Phase -1 ID 73 and change the current value to

Your order has been recorded. Please pay now by bank transfer (BACS) using the details that appear below.


Save and close.

We now need to put the instruction to pay by BACS in the Customer email – the one they get when they place an order.

Open ‘OrderScript.pl’ and locate the code:
Code:

my $sPaymentDescription = $::g_pPaymentList->{$nPaymentMethod}-> {PROMPT};

Then add the block of code that follows, below the code above and before the line:
Code:

$ACTINIC::B2B->SetXML('PAYMENT_METHOD', $sPaymentDescription);

The code to be added is:
Code:

if ($nPaymentMethod == $::PAYMENT_CREDIT_CARD_SEPARATE) { $sPaymentDescription = $sPaymentDescription . " Please pay now by bank transfer (BACS) using the following details:</b><br>Sort-Code 12-34-56<br>A/C 12345678<br>Please use reference: " . $sOrderNumber; }
Edit order script pl

If you are a developer and wanted to create variables then you could do this (Thanks to Norman at Drillpine.biz):

if ($nPaymentMethod == $::PAYMENT_CREDIT_CARD_SEPARATE)
{
$sPaymentDescription = $sPaymentDescription . ' Please pay now by bank transfer (BACS) using the following details:</b><br>Sort-Code <actinic:variable name="BankSortCode" /><br>A/C <actinic:variable name="BankAccountNumber" /><br>Please use reference: ' . $sOrderNumber;
}

Then save, close the file and upload.

Remember you wll need to repatch this if you upgrade or purge and refresh the site.

Now open Design, Library, Email Inner Layout ‘Order received HTML Email Inner Layout’ (if using html email). This is the email you send from the desktop when you have downloaded the order and have started processing it.

Change the content so it looks like this:

Code:

<p>Dear <actinic:variable encoding="html" name="ContactInvoiceName"/>,
<p>
<actinic:block if="%3cactinic%3avariable%20name%3d%22ContactInvoiceCompany%22%2f%3e%20%21%3d%20%22%22"><p><actinic:variable encoding="html" name="ContactInvoiceCompany"/>
</actinic:block><p>We have received and are processing the following order:
<p>
<pre><actinic:variable encoding="htmlline" name="CustomerData"/></pre>
<font face="Courier New, Courier, sans-serif">
<pre><actinic:variable encoding="htmlline" name="OrderData"/></pre>
<pre><actinic:variable encoding="htmlline" name="OrderLines"/></pre>
<pre><actinic:variable encoding="htmlline" name="OrderTotals"/></pre>
<actinic:block PHP='true' SELECTABLE='false'>

$myString = '<actinic:variable encoding="htmlline" name="OrderData"/>';

if (strpos($myString, "Bank BACS") !== false) {
echo "<b>If not already done please pay now by bank transfer (BACS) using the following details:</b><br>
Sort-Code 12-34-56<br>
A/C 12345678<br>
Please use reference: <actinic:variable encoding="perl" name="OrderNumberOnlineXML" selectable="false" /> ";
}
</actinic:block>
</font>
<p><actinic:variable encoding="html" name="SSPRateMessage"/>
<p>
<p>Sincerely,
<p><actinic:variable encoding="html" name="CompanyName"/>
<p>
<p>
<p style="font-size: <actinic:variable name="SmallFontSize" />"><strong>Returns and Cancellations</strong><br><actinic:variable name="ReturnsPolicy" />
<p>
<p><actinic:variable encoding="html" name="SSPTrademarks"/>

Publish to web and test. Just use ‘Test’ for all the fields.

Keep in touch and share

Graphicz on Social Media



01323 872296. 07836 551000.
Email:

Website by Graphicz