Thread: Westminster New

Page 49 of 187 FirstFirst ... 3947484950515999149 ... LastLast
Results 481 to 490 of 1865
  1. #481
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Westminster New

    Quote Originally Posted by 14all41 View Post
    I have working on removing the (Best Way) text for the shipping estimate. It is set up for per weight unit shipping.
    I was able to remove the text here in this file: /store/includes/languages/*your language"/modules/shipping edit the table.php
    ,however the () remains. So I followed the instructions on this thread, but with no success. http://www.zen-cart.com/showthread.p...t=best*%20way*

    Here are my edits in that file.
    Original:
    'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . '( ' . $quote[0]['methods'][0]['title'] . ')'),

    Edited:
    'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' ' . $quote[0]['methods'][0]['title'] . ''),

    Am I in the right file?
    No,

    /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_shipping_estimator.php

    Those parentheses () are hard coded in the above file in more than 1 place and start around line 109

  2. #482
    Join Date
    Aug 2011
    Location
    Indiana
    Posts
    66
    Plugin Contributions
    0

    Default Re: Westminster New

    Quote Originally Posted by DivaVocals View Post
    See my post JUST above yours..
    I edited this file (includes/languages/english/modules/shipping/table.php) by removing the text "best Way"
    define('MODULE_SHIPPING_TABLE_TEXT_WAY',' here' );

    The problem is the parentheses () are still showing.

  3. #483
    Join Date
    Aug 2011
    Location
    Indiana
    Posts
    66
    Plugin Contributions
    0

    Default Re: Westminster New

    Quote Originally Posted by rbarbour View Post
    No,

    /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_shipping_estimator.php

    Those parentheses () are hard coded in the above file in more than 1 place and start around line 109
    Here is the code from that file from line 97 on. I am not skilled enough to recognize the coding for the parentheses ().

    <th scope="col" id="seProductsHeading"><?php echo CART_SHIPPING_METHOD_TEXT; ?></th>
    <th scope="col" id="seTotalHeading"><?php echo CART_SHIPPING_METHOD_RATES; ?></th>
    </tr>
    <?php
    for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
    if(sizeof($quotes[$i]['methods'])==1){
    // simple shipping method
    $thisquoteid = $quotes[$i]['id'].'_'.$quotes[$i]['methods'][0]['id'];
    ?>
    <tr class="<?php echo $extra; ?>">
    <?php
    if($quotes[$i]['error']){
    ?>
    <td colspan="2"><?php echo $quotes[$i]['module']; ?>&nbsp;(<?php echo $quotes[$i]['error']; ?>)</td>
    </tr>
    <?php
    }else{
    if($selected_shipping['id'] == $thisquoteid){
    ?>
    <td class="bold"><?php echo $quotes[$i]['module']; ?>&nbsp;(<?php echo $quotes[$i]['methods'][0]['title']; ?>)</td>
    <td class="cartTotalDisplay bold"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][0]['cost'], $quotes[$i]['tax'])); ?></td>
    </tr>
    <?php
    }else{
    ?>
    <td><?php echo $quotes[$i]['module']; ?>&nbsp;(<?php echo $quotes[$i]['methods'][0]['title']; ?>)</td>
    <td class="cartTotalDisplay"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][0]['cost'], $quotes[$i]['tax'])); ?></td>
    </tr>
    <?php
    }
    }
    } else {
    // shipping method with sub methods (multipickup)
    for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
    $thisquoteid = $quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id'];
    ?>
    <tr class="<?php echo $extra; ?>">
    <?php
    if($quotes[$i]['error']){
    ?>
    <td colspan="2"><?php echo $quotes[$i]['module']; ?>&nbsp;(<?php echo $quotes[$i]['error']; ?>)</td>
    </tr>
    <?php
    }else{
    if($selected_shipping['id'] == $thisquoteid){
    ?>
    <td class="bold"><?php echo $quotes[$i]['module']; ?>&nbsp;(<?php echo $quotes[$i]['methods'][$j]['title']; ?>)</td>
    <td class="cartTotalDisplay bold"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])); ?></td>
    </tr>
    <?php
    }else{
    ?>
    <td><?php echo $quotes[$i]['module']; ?>&nbsp;(<?php echo $quotes[$i]['methods'][$j]['title']; ?>)</td>
    <td class="cartTotalDisplay"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])); ?></td>
    </tr>
    <?php
    }
    }
    }
    }
    }
    ?>
    </table>
    <?php
    }
    }
    ?>
    </form>
    </div>

  4. #484
    Join Date
    Mar 2010
    Location
    Finland
    Posts
    463
    Plugin Contributions
    0

    Default Re: Westminster New

    1.5.4 I would need the language selection to be on the upper section - with login, shopping cart etc. Is that possible?

  5. #485
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Westminster New

    Quote Originally Posted by kalastaja View Post
    1.5.4 I would need the language selection to be on the upper section - with login, shopping cart etc. Is that possible?
    This is native template functionality. See the readme.html file for how to turn on the languages in the header.

    Thanks,

    Anne

  6. #486
    Join Date
    Mar 2010
    Location
    Finland
    Posts
    463
    Plugin Contributions
    0

    Default Re: Westminster New

    I do have the "westminster_new_readme.html", but I can't find anything about the languages/top bar, other than in the "Installation" drop down a "Top Specials bar" and that is about "Home Page Banners". Do I have the wrong readme?

  7. #487
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    300
    Plugin Contributions
    2

    Default Re: Westminster New

    I do have the "westminster_new_readme.html", but I can't find anything about the languages/top bar, other than in the "Installation" drop down a "Top Specials bar" and that is about "Home Page Banners". Do I have the wrong readme?
    It seems the language selection is already in right hand side of the header, no ?
    Last edited by Thannaree; 26 Jan 2015 at 09:08 AM.

  8. #488
    Join Date
    Mar 2010
    Location
    Finland
    Posts
    463
    Plugin Contributions
    0

    Default Re: Westminster New

    So it would seem, but not on my version! What am I missing, because I haven't changed a thing after uploading the template!

  9. #489
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Westminster New

    Quote Originally Posted by 14all41 View Post
    Here is the code from that file from line 97 on. I am not skilled enough to recognize the coding for the parentheses ().

    <th scope="col" id="seProductsHeading"><?php echo CART_SHIPPING_METHOD_TEXT; ?></th>
    <th scope="col" id="seTotalHeading"><?php echo CART_SHIPPING_METHOD_RATES; ?></th>
    </tr>
    <?php
    for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
    if(sizeof($quotes[$i]['methods'])==1){
    // simple shipping method
    $thisquoteid = $quotes[$i]['id'].'_'.$quotes[$i]['methods'][0]['id'];
    ?>
    <tr class="<?php echo $extra; ?>">
    <?php
    if($quotes[$i]['error']){
    ?>
    <td colspan="2"><?php echo $quotes[$i]['module']; ?>##(<?php echo $quotes[$i]['error']; ?>)</td>
    </tr>
    <?php
    }else{
    if($selected_shipping['id'] == $thisquoteid){
    ?>
    <td class="bold"><?php echo $quotes[$i]['module']; ?>##(<?php echo $quotes[$i]['methods'][0]['title']; ?>)</td>
    <td class="cartTotalDisplay bold"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][0]['cost'], $quotes[$i]['tax'])); ?></td>
    </tr>
    <?php
    }else{
    ?>
    <td><?php echo $quotes[$i]['module']; ?>##(<?php echo $quotes[$i]['methods'][0]['title']; ?>)</td>
    <td class="cartTotalDisplay"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][0]['cost'], $quotes[$i]['tax'])); ?></td>
    </tr>
    <?php
    }
    }
    } else {
    // shipping method with sub methods (multipickup)
    for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
    $thisquoteid = $quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id'];
    ?>
    <tr class="<?php echo $extra; ?>">
    <?php
    if($quotes[$i]['error']){
    ?>
    <td colspan="2"><?php echo $quotes[$i]['module']; ?>##(<?php echo $quotes[$i]['error']; ?>)</td>
    </tr>
    <?php
    }else{
    if($selected_shipping['id'] == $thisquoteid){
    ?>
    <td class="bold"><?php echo $quotes[$i]['module']; ?>##(<?php echo $quotes[$i]['methods'][$j]['title']; ?>)</td>
    <td class="cartTotalDisplay bold"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])); ?></td>
    </tr>
    <?php
    }else{
    ?>
    <td><?php echo $quotes[$i]['module']; ?>##(<?php echo $quotes[$i]['methods'][$j]['title']; ?>)</td>
    <td class="cartTotalDisplay"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])); ?></td>
    </tr>
    <?php
    }
    }
    }
    }
    }
    ?>
    </table>
    <?php
    }
    }
    ?>
    </form>
    </div>
    The above hard coded parentheses () are bold in red font, not sure which ones cause I haven't played with this in some time.

  10. #490
    Join Date
    Mar 2010
    Location
    Finland
    Posts
    463
    Plugin Contributions
    0

    Default Re: Westminster New

    Excuse me - what is the above mail about? Which file? What functionality?
    Last edited by kalastaja; 26 Jan 2015 at 09:39 AM.

 

 

Similar Threads

  1. v155 Getting ajax error in v155 with v154 Westminster template
    By godt in forum General Questions
    Replies: 3
    Last Post: 11 Jul 2016, 12:41 AM
  2. v155 Getting ajax error in v155 with v154 Westminster template
    By MCS_Computers in forum General Questions
    Replies: 10
    Last Post: 21 Mar 2016, 03:58 PM
  3. v154 Modifying Top Menu - Westminster New
    By chelseaneedshelp in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Mar 2015, 04:28 PM
  4. Westminster New doesn't work on mobile phone
    By Pompidompie in forum Addon Templates
    Replies: 3
    Last Post: 26 Mar 2015, 10:34 PM
  5. v151 westminster new Share and Connect
    By Larry0652 in forum Addon Templates
    Replies: 8
    Last Post: 24 Oct 2014, 03:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR