Jump to content
  • 0

Need to change the link on the page after payment


Question

Posted

Hi all,

Does anyone know where I can change the link that shows in the bottom right 'Place another order'  on the page the client finishes at after payment.

currently the link takes them to /blesta-dir/order  

As I'm running Blesta in iframes I need the link to go back to my home not Blesta home

Ok I found what I think are the three instances of this in

plugins/order/views/templates/wizard/checkout_complete.pdt

plugins/order/views/templates/ajax/checkout_complete.pdt

plugins/order/views/templates/standard/checkout_complete.pdt

This line:

<div class="btn-group pull-right">
                    <a href="<?php echo $this->Html->safe($this->base_uri . 'order/main/index/' . $this->Html->ifSet($order_form->label));?>" class="btn btn-plain btn-sm"><i class="fa fa-arrow-left"></i> <?php $this->_('Checkout.complete.order_more_btn');?></a>
                </div>

i don't want to keep making test transactions but if I alter them to:

<div class="btn-group pull-right">
                    <a href="<?php echo $this->Html->safe($this->base_uri . 'https://www.topweb.wales/client-area/');?>" class="btn btn-plain btn-sm"><i class="fa fa-arrow-left"></i> <?php $this->_('Checkout.complete.order_more_btn');?></a>
                </div>

Then alter the 3 language files to say

 

$lang['Checkout.complete.order_more_btn'] = 'Return to Client area';

Does this look ok?

3 answers to this question

Recommended Posts

  • 0
Posted

An iframe huh?  That sounds gross X)  Anyhow, you can look at plugins/order/views/templates/wizard/checkout_complete.pdt, ../ajax/checkout_complete.pdt, ../standard/checkout_complete.pdt.  At the bottom of each you will see:


            <div class="col-md-12">
                <div class="btn-group pull-right">
                    <a href="<?php echo $this->Html->safe($this->base_uri . 'order/main/index/' . $this->Html->ifSet($order_form->label));?>" class="btn btn-plain btn-sm"><i class="fa fa-arrow-left"></i> <?php $this->_('Checkout.complete.order_more_btn');?></a>
                </div>
            </div>

So you'll want to update that.

  • 0
Posted

Sorted thanks Jono

<div class="btn-group pull-right">
                    <a href="<?php echo $this->Html->safe('https://www.topweb.wales/client-area/');?>" class="btn btn-plain btn-sm"><i class="fa fa-arrow-left"></i> <?php $this->_('Checkout.complete.order_more_btn');?></a>
                </div>

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...