AlecBarnes Posted March 3, 2020 Report Posted March 3, 2020 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? Quote
0 Jono Posted March 3, 2020 Report Posted March 3, 2020 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. Quote
0 AlecBarnes Posted March 3, 2020 Author Report Posted March 3, 2020 Haha actually the iframe removes all the 'stuff' not needed so it blends in nicely After making my edits above the button takes me back to https://www.topweb/wales/billing/https://www.topweb.wales/client-area/ Have a look at the above, how do I remove the billing part of the link? Thnx Quote
0 AlecBarnes Posted March 3, 2020 Author Report Posted March 3, 2020 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> Quote
Question
AlecBarnes
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:
i don't want to keep making test transactions but if I alter them to:
Then alter the 3 language files to say
Does this look ok?
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.