If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Pricelist For Printing

Pricelist For Printing

Locked

Started by paulm on 8 Jun 2004, 10:44 PM · Views: 48,373

Results 201 to 220 of 326
This thread is locked. New replies are disabled.
26 Jul 2005, 9:21 PM
#201
baelzebub avatar

baelzebub

Zen Follower

Join Date:
Mar 2005
Posts:
104
Plugin Contributions:
0

Pricelist For Printing

Nm, found it :)
includes/languages/english/pricelist.php incase anyoe else interested
Need to find where it inputs the date now.
On a side note, i put that hp file in over-ride folder and it worked fine...bizzare :D

26 Jul 2005, 9:30 PM
#202
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Pricelist For Printing

I'm not sure what the hp file is. As long as you have a copy in the template default file it will work. Is has to first exist before you can over ride it. I'm not sure but I would assume any changes you make now should be put in an over ride folder.
:)

Kelly Ann
Raven Media, LLC

26 Jul 2005, 9:42 PM
#203
baelzebub avatar

baelzebub

Zen Follower

Join Date:
Mar 2005
Posts:
104
Plugin Contributions:
0

Re: Pricelist For Printing

I commented out the function at Line 330 in includes/modules/pages/pricelist/header.php for specials and commented out the line at 548 that calls it.
And deleted the ?? at line 602
So now it shows :
Special Price: <the special price>
Without the special expiration date.
just incase anyone else wanted that for whatever reason :)

1 Aug 2005, 11:24 AM
#204
esooy avatar

esooy

Zen Follower

Join Date:
Apr 2005
Posts:
100
Plugin Contributions:
0

Re: Pricelist For Printing

Great mod. One note: the pages print better in IE than in firefox. My firefox wants to print a blank page between each regular page.

Eric S.

1 Aug 2005, 11:48 AM
#205
pixxi avatar

pixxi

Totally Zenned

Join Date:
Jan 2004
Location:
UK
Posts:
1,065
Plugin Contributions:
1

Re: Pricelist For Printing

My firefox wants to print a blank page between each regular page.

Yes, if I remember right it did that in FireFox when we installed it - I think, we solved it by tweaking the settings in the mod to make the page length a little longer.

1 Aug 2005, 1:03 PM
#206
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Pricelist For Printing

esooy:

Great mod. One note: the pages print better in IE than in firefox. My firefox wants to print a blank page between each regular page.
As Pixxi says, this has to do with the settings. It has to do with the different total printing "font height" (including the margins/spacing etc) in IE vs Firefox. A 7pt IE font for example is not exactly the same total height as a 7pt font in Firefox for printing (even if the line-height and margins etc are set).

So the best way to set it, is that the height just fits on a "Firefox page" (by decreasing the max lines, or increasing the page height a bit (if possible)), then there will be a bit of unused space left in IE (not much, just a little bit).

I am a fanatic Firefox user myself (rarely use IE, only for testing now and then), so this tool certainly isn't designed to work better in IE than FF! ;)

Another thing to note is that the european standard page for printing (called "A4"), does not have exactly the same height as the American standard printing paper height (I think it's called letter format?).

2 Aug 2005, 9:39 PM
#207
hareslade avatar

hareslade

Totally Zenned

Join Date:
Nov 2004
Location:
U.K. South Wales
Posts:
442
Plugin Contributions:
0

Re: Pricelist For Printing

Hi sleepless
sorry didn't get notified of the posts

regarding the mod I put up two pages or so back...

When I ran the pricelist I noticed that the hyperlinks to products (on the ''html'' pricelist pages, not when printing) went to the
products in the cart ok, but always used the same default
'product information template'

With the code mod I suggested, the link contains the
correct 'handler' string which then selects the correct
template layout page for that product type.

As is, for instance, when I clicked on my book products links,
I got the incorrect 'default' cart product type layout template.

With the code fix, it calls the correct template matching the product type..

3 Aug 2005, 8:53 AM
#208
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Pricelist For Printing

hareslade:

With the code fix, it calls the correct template matching the product type..
thanks hareslade! (i did not understand it at first either)

Sounds like something to remember to include in the next version (not saying that there will be a next version btw).

26 Aug 2005, 2:35 AM
#209
ghostcorps avatar

ghostcorps

Zen Follower

Join Date:
Aug 2004
Posts:
398
Plugin Contributions:
0

Re: Pricelist For Printing

Hi Kelvyn

I havnt been keeping upto date with much for a while now, but the build I settled on works the priclist with SEFU's

http://www.fleshmetal.com.au/pricelist.html

Unfortunatly I lost all my mod bakups when the administrator at work cleaned out my network drive DOH!! so I dont know exactly which builds I used.., but if you have any questions just ask & Ill see if i can dig it out for you :)

=^_^=

Sometimes the best advice is to tell me I'm not thinking about the problem enough.
FleshMetal.com.au

26 Aug 2005, 3:55 AM
#210
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Pricelist For Printing

I had pricelist and SEFU successfully working with 1.2.5 but I installed pricelist today for two reasons:

  1. the code use in currency.php for pricelist was causing problem with my upgrade to 1.2.6.

  2. I really do not see any use for this mod anymore since customers can search by price and plus there is a mod for pdf catalog. Also, I don't want to make it that easy for my competitor to just click and puff all my pricing information is at their disposal.

29 Aug 2005, 8:57 PM
#211
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Pricelist For Printing

Are there any plans in the near future for an upgrade to this for 1.2.6? I really like it and would love to be able to use it after upgrading.

Thanks,
Kelly

Kelly Ann
Raven Media, LLC

29 Aug 2005, 9:07 PM
#212
jacque427 avatar

jacque427

Zen Follower

Join Date:
Apr 2005
Location:
Spokane, Washington
Posts:
324
Plugin Contributions:
0

Re: Pricelist For Printing

I use 1.2.6 and it works great.

Just knowledgeable enough to be dangerous.

29 Aug 2005, 9:15 PM
#213
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Pricelist For Printing

This isn't my live site, I have this just for the upgrade. When I click on the link for the pricelist I get this:

Fatal error: Call to undefined function: display_price_nosymbol() in /home/sleeples/public_html/catalog6/includes/modules/pages/pricelist/header_php.php on line 541

Any ideas??
I really like this mod and don't want to lose it. I do in home parties and it's great to have a pricelist for every item on the site.

Thanks,
Kelly

Kelly Ann
Raven Media, LLC

29 Aug 2005, 9:26 PM
#214
jacque427 avatar

jacque427

Zen Follower

Join Date:
Apr 2005
Location:
Spokane, Washington
Posts:
324
Plugin Contributions:
0

Re: Pricelist For Printing

I used small on-line company called edited to install mine and they were wonderful to work with.

Good support and for those of us that are rather clueless it was nice not having to deal with it.

Please do not advertise outside consultants.

Just knowledgeable enough to be dangerous.

29 Aug 2005, 10:30 PM
#215
jeff_fwd avatar

jeff_fwd

Totally Zenned

Join Date:
Jun 2003
Location:
CA
Posts:
212
Plugin Contributions:
0

Re: Pricelist For Printing

sleepless:

This isn't my live site, I have this just for the upgrade. When I click on the link for the pricelist I get this:

Any ideas??
I really like this mod and don't want to lose it. I do in home parties and it's great to have a pricelist for every item on the site.

Thanks,
Kelly
did you replace the includes/classes/currencies.php file?

that includes the definition for the function that is causing the error you are having

29 Aug 2005, 10:49 PM
#216
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Pricelist For Printing

I used Winmerge and changed the file. I thought I tried to replace it and it didn't work. :rolleyes: I just tried it again and it worked, so I guess I didn't.
Feelin' like a real airhead :blink:

Thanks,
Kelly

Kelly Ann
Raven Media, LLC

6 Sep 2005, 12:12 AM
#217
jacque427 avatar

jacque427

Zen Follower

Join Date:
Apr 2005
Location:
Spokane, Washington
Posts:
324
Plugin Contributions:
0

Re: Pricelist For Printing

Is anyone using this with Image Handler?

And if so, how's it working. I may be having bit of a confilict. (as reported to me by another person that has been working on my site)

Just knowledgeable enough to be dangerous.

6 Sep 2005, 2:13 PM
#218
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Pricelist For Printing

For the ones that want to upgrade from 1.2.5 to 1.2.6, one easy change is needed in "includes/classes/currencies.php" (talking about the currencies file included in the price-list)
find:

   if (DOWN_FOR_MAINTENANCE=='true' and DOWN_FOR_MAINTENANCE_PRICES_OFF=='true') {

and replace by:

   if ((DOWN_FOR_MAINTENANCE=='true' and DOWN_FOR_MAINTENANCE_PRICES_OFF=='true') and (!strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR']))) {

So the total pricelist version of the includes/classes/currencies.php file for 1.2.6 becomes:

<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                    |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers              |
// |                                   |  
// | http://www.zen-cart.com/index.php                  |  
// |                                   |  
// | Portions Copyright (c) 2003 osCommerce                |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,    |
// | that is bundled with this package in the file LICENSE, and is    |
// | available through the world-wide-web at the following url:      |
// | http://www.zen-cart.com/license/2_0.txt.               |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to    |
// | [email][email protected][/email] so we can mail you a copy immediately.     |
// +----------------------------------------------------------------------+
// $Id: currencies.php 1619 2005-07-24 03:07:28Z ajeh $
// adapted for price-list, v1.0 2004/06/14 paulm

////
// Class to handle currencies
// TABLES: currencies
 class currencies {
  var $currencies;

// class constructor
  function currencies() {
   global $db;
   $this->currencies = array();
   $currencies_query = "select code, title, symbol_left, symbol_right, decimal_point, 
                 thousands_point, decimal_places, value 
             from " . TABLE_CURRENCIES;

   $currencies = $db->Execute($currencies_query);

   while (!$currencies->EOF) {
    $this->currencies[$currencies->fields['code']] = array('title' => $currencies->fields['title'],
                            'symbol_left' => $currencies->fields['symbol_left'],
                            'symbol_right' => $currencies->fields['symbol_right'],
                            'decimal_point' => $currencies->fields['decimal_point'],
                            'thousands_point' => $currencies->fields['thousands_point'],
                            'decimal_places' => $currencies->fields['decimal_places'],
                            'value' => $currencies->fields['value']);
 
   $currencies->MoveNext();
   }
  }

// class methods
// begin price-list 1/3
//  function format($number, $calculate_currency_value = true, $currency_type = '', $currency_value = '') {
// above line replaced by: 
  function format($number, $calculate_currency_value = true, $currency_type = '', $currency_value = '', $show_symbol = true) {
// end price-list 1/3

   if (empty($currency_type)) $currency_type = $_SESSION['currency'];

// begin price-list 2/3
/*
   if ($calculate_currency_value == true) {
    $rate = (zen_not_null($currency_value)) ? $currency_value : $this->currencies[$currency_type]['value'];
    $format_string = $this->currencies[$currency_type]['symbol_left'] . number_format(zen_round($number * $rate, $this->currencies[$currency_type]['decimal_places']), $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']) . $this->currencies[$currency_type]['symbol_right'];
   } else {
    $format_string = $this->currencies[$currency_type]['symbol_left'] . number_format(zen_round($number, $this->currencies[$currency_type]['decimal_places']), $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']) . $this->currencies[$currency_type]['symbol_right'];
   }
*/
// above lines replaced by:
   if ($calculate_currency_value == true) {
    $rate = (zen_not_null($currency_value)) ? $currency_value : $this->currencies[$currency_type]['value'];
    $format_string = number_format(zen_round($number * $rate, $this->currencies[$currency_type]['decimal_places']), $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']);
   } else {
    $format_string = number_format(zen_round($number, $this->currencies[$currency_type]['decimal_places']), $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']);
   }
   if ($show_symbol) $format_string = $this->currencies[$currency_type]['symbol_left'] . $format_string . $this->currencies[$currency_type]['symbol_right'];  
// end price-list 2/3

   if ((DOWN_FOR_MAINTENANCE=='true' and DOWN_FOR_MAINTENANCE_PRICES_OFF=='true') and (!strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR']))) {
    $format_string= '';
   }

   return $format_string;
  }

  function value($number, $calculate_currency_value = true, $currency_type = '', $currency_value = '') {

   if (empty($currency_type)) $currency_type = $_SESSION['currency'];

   if ($calculate_currency_value == true) {
    if ($currency_type == DEFAULT_CURRENCY) {
     $rate = (zen_not_null($currency_value)) ? $currency_value : 1/$this->currencies[$_SESSION['currency']]['value'];
    } else {
     $rate = (zen_not_null($currency_value)) ? $currency_value : $this->currencies[$currency_type]['value'];
    }
    $currency_value = zen_round($number * $rate, $this->currencies[$currency_type]['decimal_places']);
   } else {
    $currency_value = zen_round($number, $this->currencies[$currency_type]['decimal_places']);
   }

   return $currency_value;
  }

  function is_set($code) {
   if (isset($this->currencies[$code]) && zen_not_null($this->currencies[$code])) {
    return true;
   } else {
    return false;
   }
  }

  function get_value($code) {
   return $this->currencies[$code]['value'];
  }

  function get_decimal_places($code) {
   return $this->currencies[$code]['decimal_places'];
  }

  function display_price($products_price, $products_tax, $quantity = 1) {
   return $this->format(zen_add_tax($products_price, $products_tax) * $quantity);
  }
// begin price-list 3/3
// added function  
  function display_price_nosymbol($products_price, $products_tax, $quantity = 1) {
    if ($products_price == 0) return TEXT_PL_PRODUCT_HAS_NO_PRICE; // to not show 0, but replacement text (can still put 0.00 in defined text for backwards compatibility)
   return $this->format((zen_add_tax($products_price, $products_tax) * $quantity), true, '','',false);
  }
// end price-list 3/3  
 }
?>
6 Sep 2005, 4:45 PM
#219
jacque427 avatar

jacque427

Zen Follower

Join Date:
Apr 2005
Location:
Spokane, Washington
Posts:
324
Plugin Contributions:
0

Re: Pricelist For Printing

Hey Kelvyn, what is "SEFU"?

And Paul, is that mod you just mentioned only for the "down for maintenance" use? Or does it effect the overall performance?

Just knowledgeable enough to be dangerous.

6 Sep 2005, 5:26 PM
#220
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Pricelist For Printing

jacque427:

Paul, is that mod you just mentioned only for the "down for maintenance" use?
Certainly looks like it, but I haven't tried it. It's just the difference between the 1.2.5 and 1.2.6 currencies file (and that same file is altered by the price-list too).

Today I've updated the price-list to 1.04 btw. I hope Kim will upload the new version soon (nothing fancy, just some small fixes and updated to 1.2.6).

edit: SEFU = Search Engine Friendly URL's btw (did you try to search the zen site for "SEFU"?)