Jump to content
supercheaphobb

limiting shipping details that are writting to orders_total

Recommended Posts

Hi all,
So at the moment is appears that FLAT_TEXT_TITLE and FLAT_TEXT_WAY from public_html/includes/languages/english/modules/shipping/flat.php are written to order_total

  1. Is it an easy change to only write the shipping modules TEXT_TITLE to order_total and how
  2. will doing this break anything else

The issue is I have a fairly long TEXT_WAY and this is then appearing in customers order and invoice making a mess of things

Many thanks

Share this post


Link to post
Share on other sites

Would be better to fix the invoice than messing with the code. Better still just shorten your text?

if you using frozen then look in

includes/modules/shipping/flat.php

 class methods
    function quote($method = '') {
      global $order;

      $this->quotes = array('id' => $this->code,
                            'module' => MODULE_SHIPPING_FLAT_TEXT_TITLE,
                            'methods' => array(array('id' => $this->code,
                                                     'title' => MODULE_SHIPPING_FLAT_TEXT_WAY,
                                                     'cost' => MODULE_SHIPPING_FLAT_COST)));

 


 

Share this post


Link to post
Share on other sites

Many thanks @Moxamint  I am running frozen BS and will try this tomorrow evening as it coming on midnight now

But this is exactly what I was after - hopefully it will work

Share this post


Link to post
Share on other sites
2 minutes ago, supercheaphobb said:

But this is exactly what I was after - hopefully it will work

100% sure it will work :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×