Post by globed » Sat Aug 17, 2013 2:22 am

Hello my name is cameron. I need a module or help with creating a message after you complete checkout that will show or give further shipping instructions! This is for a sell phone repair website and the idea is that they will be sending the phone in for repair and i wanted to have shipping instructions appear after checkout is complete. All Help is appreciated. Thanks in advance!

Newbie

Posts

Joined
Sat Aug 17, 2013 2:16 am

Post by pedro1993 » Sat Aug 17, 2013 8:39 am

Hi Cameron, welcome to the forums :)

This isn't too difficult.

1) Backup and open catalog/view/theme/YOUR_TEMPLATE/template/common/success.tpl (if the file isn't in your current theme, open the default template file)
2) Search for:

Code: Select all

<?php echo $text_message; ?>
3) Either above/below that code add:

Code: Select all

<?php if($this->request->get['route'] == 'checkout/success'){ ?>
// Your instructions here
<?php } ?>
That code is basically checking that we are on the checkout success page (because success.tpl is used for many pages in OpenCart). If it is the checkout success page it will add your code!

If that doesn't work or you need any more help just let me know :)

For professional OpenCart, HTML/CSS & PHP/MySQL support feel free to PM me :)
Click here for my extentions
Did I help you? Donate here to show support
Follow me on Twitter!
Catch me on Facebook!
Watch YouTube OpenCart Tutorials and Extension Demos

Image


User avatar
Active Member

Posts

Joined
Tue Oct 18, 2011 4:31 am
Location - Glasgow, Scotland

Post by butte » Sat Aug 17, 2013 10:42 am

On the other hand, if you put the instructions somewhere static, such as in the product description or in the footer where they can find it whenever they think about it BEFORE OR AFTER actually ordering, then they can see it when they need it. Many people will want to know about how to give up their toys BEFORE they pay to give them up, and will want to see that the instructions are fixed. There's already more than enough reason in customers' minds, on-line, for abundances of precaution.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by rwalker » Sat Apr 05, 2014 4:45 am

pedro1993 wrote:Hi Cameron, welcome to the forums :)

This isn't too difficult.

1) Backup and open catalog/view/theme/YOUR_TEMPLATE/template/common/success.tpl (if the file isn't in your current theme, open the default template file)
2) Search for:

Code: Select all

<?php echo $text_message; ?>
3) Either above/below that code add:

Code: Select all

<?php if($this->request->get['route'] == 'checkout/success'){ ?>
// Your instructions here
<?php } ?>
That code is basically checking that we are on the checkout success page (because success.tpl is used for many pages in OpenCart). If it is the checkout success page it will add your code!

If that doesn't work or you need any more help just let me know :)

Thank you very much for this!

New member

Posts

Joined
Fri Jul 01, 2011 8:14 am
Who is online

Users browsing this forum: No registered users and 4 guests