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 281 to 300 of 326
This thread is locked. New replies are disabled.
22 Mar 2006, 10:05 PM
#281
monkeymadness avatar

monkeymadness

Zen Follower

Join Date:
Feb 2006
Posts:
270
Plugin Contributions:
0

Pricelist For Printing

In addition to what quentinjs said, this information is printed by default at the bottom of each page.

so what could i be missing then as it doesnt show up when i print it or on the site...

using v1.2.7 and thats the only thing missing and its obviously quite important

heres the url if its of any use

http://www.photogiftideas.co.uk/pricelist.html

thanks

23 Mar 2006, 8:23 AM
#282
monkeymadness avatar

monkeymadness

Zen Follower

Join Date:
Feb 2006
Posts:
270
Plugin Contributions:
0

Re: Pricelist For Printing

its cool...i was missing includes/modules/tpl_header + footer

:rolleyes:

thanks again for contributing..hopefully thats my pricelist sorted ::tup

23 Mar 2006, 10:47 AM
#283
titangen avatar

titangen

Zen Follower

Join Date:
May 2005
Location:
Brussels belgium
Posts:
177
Plugin Contributions:
0

Re: Pricelist For Printing

Hi Paul,

Thanks for your reply. I have a other request is it possible to link the price list to the rules of the shop ... I mean for me for example the customers can only see the prices if there create a account Is it possible to do this with the price list ?

best ragards

chris

::tup

Zen cart or nothing !!

25 Mar 2006, 5:35 AM
#284
quentinjs avatar

quentinjs

Zen Follower

Join Date:
Mar 2004
Location:
Calgary, Alberta
Posts:
289
Plugin Contributions:
0

Re: Pricelist For Printing

Oh, thats a little daring for me :-) considering my work day is already 16 hours.... did find this though that you might be interested in... it is a php class to create pdf reports. http://sourceforge.net/projects/repgen/ a bit old, but might have merit :-)

okay back to my quest for php reporting engines....

1 Apr 2006, 3:27 PM
#285
ginar avatar

ginar

New Zenner

Join Date:
Feb 2006
Posts:
83
Plugin Contributions:
0

Re: Pricelist For Printing

I think this is a wonderful addition. I have installed it, but seem to be having a couple of minor problems and am hoping someone can point me in the right direction to fix them.

How do you edit the margins between the logo and the start of the template?

I can't seem to get the link onto the categories page under All products.

Here is a link to my Pricelist:
The pricelist
and you can see what I mean about the space between the logo, the category name and the wording Price-List:

Here is a copy of
sen/includes/templates/template_default/sideboxes/
tpl_categories.php

$content = "";
for ($i=0;$i<sizeof($box_categories_array);$i++) {
switch(true) {
// to make a specific category stand out define a new class in the stylesheet example: A.category-holiday
// uncomment the select below and set the cPath=3 to the cPath= your_categories_id
// many variations of this can be done
// case ($box_categories_array[$i]['path'] == 'cPath=3'):
// $new_style = 'category-holiday';
// break;
case ($box_categories_array[$i]['top'] == 'true'):
$new_style = 'category-top';
break;
case ($box_categories_array[$i]['has_sub_cat']):
$new_style = 'category-subs';
break;
default:
$new_style = 'category-products';
}
if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == '3' or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
// skip it this is for the document box
} else {
$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';

  if ($box_categories_array[$i]['current']) {
    if ($box_categories_array[$i]['has_sub_cat']) {
      $content .= '<span class="category-subs-parent">' . $box_categories_array[$i]['name'] . '</span>';
    } else {
      $content .= '<span class="category-subs-selected">' . $box_categories_array[$i]['name'] . '</span>';
    }
  } else {
    $content .= $box_categories_array[$i]['name'];
  }

  if ($box_categories_array[$i]['has_sub_cat']) {
    $content .= CATEGORIES_SEPARATOR;
  }
  $content .= '</a>';

  if (SHOW_COUNTS == 'true') {
    if ((CATEGORIES_COUNT_ZERO == '1' and $box_categories_array[$i]['count'] == 0) or $box_categories_array[$i]['count'] >= 1) {
      $content .= CATEGORIES_COUNT_PREFIX . $box_categories_array[$i]['count'] . CATEGORIES_COUNT_SUFFIX;
    }
  }

  $content .= '

';
}
}

if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
// display a separator between categories and links
if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
$content .= '
' . zen_draw_separator('pixel_silver.gif') . '
';
}
if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
$show_this = $db->Execute("select s.products_id from " . TABLE_SPECIALS . " s where s.status= '1' limit 1");
if ($show_this->RecordCount() > 0) {
$content .= '' . CATEGORIES_BOX_HEADING_SPECIALS . '' . '
';
}
}
if (SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
switch (true) {
case (SHOW_NEW_PRODUCTS_LIMIT == '0'):
$display_limit = '';
break;
case (SHOW_NEW_PRODUCTS_LIMIT == '1'):
$display_limit = " and date_format(p.products_date_added, '%Y%m') >= date_format(now(), '%Y%m')";
break;
case (SHOW_NEW_PRODUCTS_LIMIT == '30'):
$display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 30';
break;
case (SHOW_NEW_PRODUCTS_LIMIT == '60'):
$display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 60';
break;
case (SHOW_NEW_PRODUCTS_LIMIT == '90'):
$display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 90';
break;
case (SHOW_NEW_PRODUCTS_LIMIT == '120'):
$display_limit = ' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) <= 120';
break;
}

  $show_this = $db->Execute("select p.products_id
                             from " . TABLE_PRODUCTS . " p
                             where p.products_status = '1' " . $display_limit . " limit 1");
  if ($show_this->RecordCount() > 0) {
    $content .= '' . CATEGORIES_BOX_HEADING_WHATS_NEW . '' . '

';
}
}
if (SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
$show_this = $db->Execute("select products_id from " . TABLE_FEATURED . " where status= '1' limit 1");
if ($show_this->RecordCount() > 0) {
$content .= '' . CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS . '' . '
';
}
}
if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
$content .= '' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '';
}
}
//define('SHOW_CATEGORIES_BOX_PRICELIST','true');
if (SHOW_CATEGORIES_BOX_PRICELIST == 'true') {
$content .= '
' . CATEGORIES_BOX_HEADING_PRICELIST . '';
}

?>

1 Apr 2006, 6:19 PM
#286
boyemillar avatar

boyemillar

Zen Follower

Join Date:
Jun 2004
Location:
Irvine, Scotland
Posts:
89
Plugin Contributions:
0

Re: Pricelist For Printing

Just installed this under v1.3 and its working fine

Thought id let people know...

:) ::tup :)

2 Apr 2006, 1:57 AM
#287
ginar avatar

ginar

New Zenner

Join Date:
Feb 2006
Posts:
83
Plugin Contributions:
0

Re: Pricelist For Printing

I woke up this morning with a clearer head and worked out the problems. Everything is working great...thanks.

3 Apr 2006, 3:47 AM
#288
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

I tried to install this with 1.3 and it won't work. I did and upgrade on the db with fresh 1.3 files. Could that be the problem?

Thanks,
Kelly

Kelly Ann
Raven Media, LLC

3 Apr 2006, 7:04 AM
#289
quentinjs avatar

quentinjs

Zen Follower

Join Date:
Mar 2004
Location:
Calgary, Alberta
Posts:
289
Plugin Contributions:
0

Re: Pricelist For Printing

It does work with 1.3. I updated the php tonight and its working.

One suggestion. The sections should sort as its done in the catalog, so if I have product with order no assigned, it should be using this as well, else the product list can get a little confusing and messy.... :-(

6 Apr 2006, 2:56 AM
#290
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

I keep trying to install this on 1.3 but I can't get it to work. When I go where my pricelist should be, I get this and nothing else. I have uninstalled and reinstalled this about five times. ::frust

Table 'kellysco_forums.categories' doesn't exist
Does anyone have any idea what could be happening? I have no idea why it's looking for this table.

Thanks,
Kelly

Kelly Ann
Raven Media, LLC

6 Apr 2006, 3:22 AM
#291
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Pricelist For Printing

Kelly-

Did you install your database with a prefix on it? i.e. zen_

If so, try changing the original sql statement that inserts that table to "zen_kellysco_forums.categories" or whatever prefix you may have used.

betty

6 Apr 2006, 3:28 AM
#292
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

Hi Betty,

The thing is, that isn't even the right table. My cart is in, with no prefix, kellysco_v13catalog. So I have no idea why it's trying to go to a forum table, that doesn't even exist. ::frust

I am about to go back to the old cart! I really like this new cart, but I can't seem to get it right. At least none of the contributions.

Thanks,
Kelly

Kelly Ann
Raven Media, LLC

6 Apr 2006, 9:10 AM
#293
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

@chris:

**is it possible to link the price list to the rules of the shop ... I mean for me for example the customers can only see the prices if there create a account Is it possible to do this with the price list ?**Not with the current version. I guess it's not difficult to implement, but I don't have the time for it at the moment (if someone else has a fix for this please post or PM, I will include it in the next version then).

@quentin:

**The sections should sort as its done in the catalog, so if I have product with order no assigned, it should be using this as well,**I think I know what you mean (although I suppose "order no" is not what you meant to say here?). I will try to change this in the next version (unless I forget ;-) ).

@kelly:

Table 'kellysco_forums.categories' doesn't exist :blink: That's a weird error. It seems like it tries to use your phpBB database i.s.o. the shop's database. It might be a price list bug, since I never got to upgrading the db functions to the zen standards. I would like to look into it, but I am afraid it will take some time, since I am quite busy at the moment.

7 Apr 2006, 8:22 PM
#294
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

No problem. Thanks for the reply. It may just be my database. Obviously there are other people that are using it with 1.3 and aren't having any problems.

Thanks,
Kelly

Kelly Ann
Raven Media, LLC

7 Apr 2006, 11:06 PM
#295
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

Well...after doing a fresh install with only demo products, I was still unable to get this to work. I did however discover what will make it work. You cannot have the phbb linkage set to yes or it goes a little loopy and won't work. It took four installs for me to realize that. ::frust
I myself would prefer to live without the phbb linkage as opposed to not using this contribution. I just thought I would post that in the event that anyone else is having the same problem.

Thanks,
Kelly :D

Kelly Ann
Raven Media, LLC

10 Apr 2006, 12:47 AM
#296
rnet avatar

rnet

Zen Follower

Join Date:
Jun 2005
Location:
Pittsburgh
Posts:
99
Plugin Contributions:
0

Re: Pricelist For Printing

Can a small photo be added to this price list print out? This would be helpful to use where similar items are sold.

Thanks,
Ken

21 Apr 2006, 10:05 AM
#297
sparxs avatar

sparxs

New Zenner

Join Date:
Jan 2006
Posts:
37
Plugin Contributions:
0

Re: Pricelist For Printing

Hi

This is or would be a great mod if only it would work...it is just what I need to add a finishing touch to our site.

I have uploaded all of the files etc but alas nothing in the admin:
config list.

The only clue that I have is that when uploading the sql fiile (as per instructions) I got this message "1048 Column 'configuration_group_id' cannot be null'

:huh:

this was only from the no_prefix_add-link-switch sql...

Hoping someone can help.

It will be very handy if it works :)

Graeme

21 Apr 2006, 11:56 AM
#298
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Re: Pricelist For Printing

I have been following this thread, and I don't quite understand what this mod might be used for. Can someone enlighten me? It sounds useful, but I just can't quite wrap my brain around it :)

Audra

21 Apr 2006, 1:28 PM
#299
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

@Greame: I think the sql is not added to your database somehow. I suggest you try to load it once more (using phpMyAdmin if you like it better, but think about table prefixes then).

@Audra: The original goal was to make a printable pricelist, fitting paper size, and products sorted by category. For the shop owner and or customers. But lots of options have been added since, and now it's also a handy stock list, since it's possible to print the stock and weight etc. etc. too. And some use it as an all products listing.

23 Apr 2006, 10:58 PM
#300
sparxs avatar

sparxs

New Zenner

Join Date:
Jan 2006
Posts:
37
Plugin Contributions:
0

Re: Pricelist For Printing

ok firstly thanks for the quick reply ...much appreciated

I have tried uploading the sql files (with the zen) prefix) both through admin and also throught my phpadmin and I get error messages - INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function )
VALUES (
'', 'Default Profile', 'PL_DEFAULT_PROFILE', '1', 'Choose the default profile to use.', @pricelistid , 10, NULL , 'zen_cfg_select_option(array('1', '2', '3' ),'

and - #1062 - Duplicate entry 'PL_DEFAULT_PROFILE' for key 2

I really hope that you can help because the procelist contrib is exaclty what I need

:(
Graeme