Zen Cart Logo
Forums / Addon Templates / Westminster New

Westminster New

Views: 494,173

Results 481 to 500 of 1,865
24 Jan 2015, 2:18 AM
#481
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Westminster New

14all41:

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.php?62999-Table-Rate-Best-Way&highlight=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

24 Jan 2015, 2:54 PM
#482
14all41 avatar

14all41

New Zenner

Join Date:
Aug 2011
Location:
Indiana
Posts:
66
Plugin Contributions:
0

Re: Westminster New

DivaVocals:

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.

24 Jan 2015, 3:00 PM
#483
14all41 avatar

14all41

New Zenner

Join Date:
Aug 2011
Location:
Indiana
Posts:
66
Plugin Contributions:
0

Re: Westminster New

rbarbour:

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']; ?> (<?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>
25 Jan 2015, 4:02 PM
#484
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

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?

25 Jan 2015, 8:26 PM
#485
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Westminster New

kalastaja:

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

26 Jan 2015, 7:37 AM
#486
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

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?

26 Jan 2015, 8:04 AM
#487
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

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 ?

26 Jan 2015, 8:13 AM
#488
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

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!

26 Jan 2015, 8:19 AM
#489
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Westminster New

14all41:

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.

26 Jan 2015, 8:33 AM
#490
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Re: Westminster New

Excuse me - what is the above mail about? Which file? What functionality?

26 Jan 2015, 8:42 AM
#491
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Re: Westminster New

Sorry for being stoopid - it's about shipping..... I was just perplexed about the size of the entry.... Would remove the entry if I could!

26 Jan 2015, 10:13 AM
#492
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Re: Westminster New

For some reason the "Contact Us" page (http://localhost/test/index.php?main_page=contact_us) times out. There is a entry in modules/pages/contact_us/header_php.php, with a javascript - shouldn't that be sufficient?.

26 Jan 2015, 10:23 AM
#493
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Re: Westminster New

kalastaja:

Sorry for being stoopid - it's about shipping..... I was just perplexed about the size of the entry.... Would remove the entry if I could!

Do you have a languages_header.php under the Tools->Layout Boxes Controller in your admin ?

26 Jan 2015, 10:35 AM
#494
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Re: Westminster New

Ok Thannaree - more of the same...... It was not the languages.php but the languages_header - now it's somehow self evident! ( I thought I had tried it out, but obviously I hadn't!)

And it reacts to change of language without moving to Home page - good - run into this problem on a Joomla-site.

26 Jan 2015, 10:59 AM
#495
dachilla avatar

dachilla

New Zenner

Join Date:
Feb 2006
Posts:
66
Plugin Contributions:
1

Re: Westminster New

Hi Anne,

i have a question. I have installed a few Zen Carts on my Webspace and all are loading fine except the three where I have the westminster_new template. The load dead slow. Is there a hidden version check or something I'm not arawe of?

Cheers

D.C.

26 Jan 2015, 2:27 PM
#496
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Westminster New

dachilla:

Hi Anne,

i have a question. I have installed a few Zen Carts on my Webspace and all are loading fine except the three where I have the westminster_new template. The load dead slow. Is there a hidden version check or something I'm not arawe of?

Cheers

D.C.

No, there are no hidden anythings. This is not an inherent problem with the template package. It may be related to some modification or plugin you have on the three sites.

Thanks,

Anne

26 Jan 2015, 3:46 PM
#497
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Re: Westminster New

How would one go about changing the black backgrounds (header, buttons, etc.) to roulette-green, or is there too much to alter or too many dependencies (foreground-background)?

26 Jan 2015, 5:44 PM
#498
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Westminster New

kalastaja:

How would one go about changing the black backgrounds (header, buttons, etc.) to roulette-green, or is there too much to alter or too many dependencies (foreground-background)?

If you want to make css changes to the template I would recommend using the firefox or chrome web developer tools. They will help you find the lines in the stylesheet that need to be changed.

Thanks,

Anne

26 Jan 2015, 8:30 PM
#499
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Re: Westminster New

Thank's for the advice.

I managed quite well (colors are ok etc.), until I "dropped/pushed" the triangle to the row below:

Attachment 14909

Personally I don't need the indicator at all, but I can't find where to remove it.

26 Jan 2015, 9:24 PM
#500
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Westminster New

kalastaja:

Thank's for the advice.

I managed quite well (colors are ok etc.), until I "dropped/pushed" the triangle to the row below:

Attachment 14909

Personally I don't need the indicator at all, but I can't find where to remove it.perhaps YOU don't, but it's a UI indicator for site visitors to KNOW when a menu item has sub-menu items.. or is your expectation that site visitors should have to select each menu item to figure that out??:smile: