Jump to content



Member Since 15 Oct 2012
Offline Last Active Nov 22 2018 02:41 PM

Topics I've Started

Adding Json To Order Notification Emails

26 September 2018 - 12:22 PM

We're trying to add the trust pilot rich snippets to our order notifications. 


in the email template editor I've entered the code:
<script type="application/json+trustpilot">
"recipientEmail": "{{ order_info.email}}",
"recipientName": "{{ order_info.firstname }} {{ order_info.lastname}}",
"referenceId": "{{ order_info.order_id }}"

This almost works. But when I send a test notification and look at the source code of the email I see the following: 

<script type="application/json&#43;trustpilot">
"recipientEmail": "example@example.com",
"recipientName": "Jamie Moffat",
"referenceId": "3961"

Notice that it replaces the plus sign in the script type with an html special character. I believe this is causing it not to work properly. 


Does anyone know any way I can prevent this from happening? 

Change Price Order On Product Details Pages

02 July 2018 - 11:36 AM

How can I change the order that the prices appear on the product details page? 


I'd like the price with tax to appear first and the price without tax to appear underneath. 


here is the default layout.



Could someone please advise where I would need to make the change?



Tax Value Smarty Code

22 June 2018 - 07:48 AM



Could someone please advise what smarty code I can use to display the price including tax? I don't want to include the "inc tax" text just the value itself. 




Could someone please advise?

Product List Grid Layout - 2 Product Columns

26 April 2018 - 01:01 PM



does anyone know how I can set the minimum number of columns on the product list to 2 for mobile devices? 


At the moment it automatically goes to one product column but I'd like two side by side. 


Here's how it looks currently:


Attached File  Screenshot_20180426-135845.jpg   63.16KB   0 downloads

How To Add Custom Order Fields To Orders Table In Database.

20 March 2018 - 10:24 AM

I'm new to addon development and am trying to add a new field to the notes section of the checkout like so: 


in notes.pre.tpl: 

<!-- Select Delivery Date -->
    <input type="date" name="delivery_date">

In my func.php file I have:

function fn_delivery_date_place_order($order_id, $action, $order_status, $cart, $auth)
        db_query('UPDATE ?:orders SET ?u WHERE order_id = ?i', array(
            'delivery_date' =>$cart['delivery_date']
        ), $order_id);

the function runs but $cart['delivery_date']; is empty when i submit the order, I'm clearly missing a step. 


I have a new column "delivery_date" int the orders table in the database. Could someone please suggest what additional steps I'd need to take to add my custom field into this column in the orders table?