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 241 to 260 of 326
This thread is locked. New replies are disabled.
26 Jan 2006, 12:44 PM
#241
pjcvdpol avatar

pjcvdpol

New Zenner

Join Date:
Nov 2005
Posts:
30
Plugin Contributions:
0

Pricelist For Printing

Fantastic! I love it, just what I was looking for, and it works like a charm. Good work. I have one small question: out prices are only shown to logged-in and authorised customers sonce we are a wholesaler. PfP seems to ignore this and produces perfect pricelists even when I am NOT logged in.... How do I solve this issue? (forgive me if this was asked before, just couldn'd find the answer....)

Peter / http://catalogue.ronlepoole.nl

27 Jan 2006, 3:29 PM
#242
lorhan avatar

lorhan

New Zenner

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

Re: Pricelist For Printing

Hi,

I\m trying to install this module but I'm getting this error when running the SQL file zen_prefix_add-link-switch:

SQL query:

INSERT INTO zen_configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function )
VALUES (

'', 'Show Price List', 'SHOW_CATEGORIES_BOX_PRICELIST', 'true', 'If true Price-List link will show in Categories box', @pricelistid , 20, NULL , 'zen_cfg_select_option(array('true', 'false'),'
)
MySQL said:

#1048 - Column 'configuration_group_id' cannot be null

Anyone that can help me solve this problem?
The other two SQL files are OK ::frust

27 Jan 2006, 3:46 PM
#243
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

@lorhan

@pricelistid
```I think this is the problem. "pricelistid" is probably not set. Maybe you can figure out what the value should be (so what the actual configuration_group_id for the pricelist setttings is in the database) and hardcode that value into the query.

@pjcvdpol: that is a know issue (and I have no plans to do anything about it, sorry, maybe someone else has solved it and can post the solution here) I do have an admin version, but that is still alfa, you can have it if you like (but no support whatsoever will be given for it)

@jacque427: actually I am not sure about the version numbers (can not rember). But the original installation file does have the version number for sure in it's filename. If you did not keep that you might try searching the pricelist files for "version" or something. (and I hove no idea about you layout problem)
28 Jan 2006, 7:10 AM
#244
pjcvdpol avatar

pjcvdpol

New Zenner

Join Date:
Nov 2005
Posts:
30
Plugin Contributions:
0

Re: Pricelist For Printing

@Paulm,

That would be great! How do I get it? I am off for a week now and can test after that!

28 Jan 2006, 10:24 AM
#245
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

I will PM you a link (later, remember me if I have not mailed it within a couple of days).

Are you Dutch by the way? You seem to have a Dutch name.

9 Feb 2006, 3:32 PM
#246
jacque427 avatar

jacque427

Zen Follower

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

Re: Pricelist For Printing

Is there a way for a user to directly add an item to their cart by clicking on the link in the Price List without going to the descripton first?

Jacque
http://www.freshabundance.com

Just knowledgeable enough to be dangerous.

9 Feb 2006, 3:41 PM
#247
pjcvdpol avatar

pjcvdpol

New Zenner

Join Date:
Nov 2005
Posts:
30
Plugin Contributions:
0

Re: Pricelist For Printing

paulm:

I will PM you a link (later, remember me if I have not mailed it within a couple of days).

Are you Dutch by the way? You seem to have a Dutch name.
Yes, I am very much Dutch :-)

Here's the PM....

9 Feb 2006, 4:29 PM
#248
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

jacque427:

Is there a way for a user to directly add an item to their cart by clicking on the link in the Price List without going to the descripton first?
that is not a standard feature, and so it would need to be coded

9 Feb 2006, 4:31 PM
#249
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

pjcvdpol:

Yes, I am very much Dutch :-)

Here's the PM....
:-D I just sent you the link, and remeber to vist https://www.zen-cart.nl too some time.

15 Feb 2006, 4:47 PM
#250
designer avatar

designer

New Zenner

Join Date:
Feb 2005
Posts:
6
Plugin Contributions:
0

Re: Pricelist For Printing

Is it possible to have the pictures of the products in the pricelist ?

Thanks ;)

23 Feb 2006, 11:45 AM
#251
bryony avatar

bryony

Zen Follower

Join Date:
Dec 2005
Posts:
137
Plugin Contributions:
0

Re: Pricelist For Printing

Hi Paulm,

I've read every post in this topic but cannot find my answer. I'd like to add a link to my price list the same way as at this site:

http://www.freshabundance.com/

In the top menu bar. Can you tell me on which page and exactly where to paste your code?

I can follow basic instructions but as soon as programming experience is required I'm screwed! (I've installed lots of modifications and haven't messed it up permanently yet!) :D

Incidentally the configuration/printable price-list page (the first one) has no entries - this seems wrong - have I messed up? The second has a full set of entries and all the profiles are populated.

Getting this installed will make my life so much easier: I exhibit my stock and so it would help hugely to be able to print my stock list before my exhibition - then after selling for three days I can stocktake on the printed list and update the website when I return. (That way I don't have to keep two sets of stock or struggle with my records!) Brill!

I think Zen is amazing (I've told all my friends) and am so impressed with people who add such great mods! (do compliments help get things done? ;) )

shaggydogcrafts.com
Craft Materials and Crafty Ideas

harrisonwalton.info
Colourful, contemporary tiaras & crowns

fancyface.co.uk
Face Painting in Thanet, Kent

23 Feb 2006, 3:49 PM
#252
jacque427 avatar

jacque427

Zen Follower

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

Re: Pricelist For Printing

Ok, here's what I think I did.

It would be a really good idea to back up the pertinant files first.

Lord know's that's saved my butt a few times.

In your language file, open header.php and add the following just under; define('HEADER_TITLE_LOGIN', 'Log In');
(Should be around line 32)

define('HEADER_TITLE_PRICELIST', 'Price List');

Then in includes/templates/common/tpl_header.php
add the following just under; HEADER_TITLE_MY_ACCOUNT; ?></a>|

(right around line 55)

<a href="<?php echo zen_href_link(FILENAME_PRICELIST, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_PRICELIST; ?></a>|

Also add the code above just under; HEADER_TITLE_LOGIN; ?></a>|&nbsp
(around line 61)

So, inserting 3 lines of code into 2 files should do the trick.

Don't forget, if your using a custom directory that is where you will find the files.

Sure hope this helps.

Jacque

Just knowledgeable enough to be dangerous.

23 Feb 2006, 3:54 PM
#253
bryony avatar

bryony

Zen Follower

Join Date:
Dec 2005
Posts:
137
Plugin Contributions:
0

Re: Pricelist For Printing

:D Thanks Jacque, I shall try it later when my baby goes to bed!

The price list looks best where you have it - I don't think people will find it under categories.

PS - I like your site - easy to understand - would order but don't think you do Kent!

shaggydogcrafts.com
Craft Materials and Crafty Ideas

harrisonwalton.info
Colourful, contemporary tiaras & crowns

fancyface.co.uk
Face Painting in Thanet, Kent

23 Feb 2006, 4:11 PM
#254
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hmmm... I rarely get any email notifications that should be sent by this board :(

Wel it already seems to be solved, and that's nice :-)

23 Feb 2006, 4:15 PM
#255
jacque427 avatar

jacque427

Zen Follower

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

Re: Pricelist For Printing

Well, even Kent Washington, US is 280 miles away. I guessing that Kent, UK is around 4000 miles or so. A bit far for our delivery driver.

jacque

Just knowledgeable enough to be dangerous.

23 Feb 2006, 8:44 PM
#256
bryony avatar

bryony

Zen Follower

Join Date:
Dec 2005
Posts:
137
Plugin Contributions:
0

Re: Pricelist For Printing

:D Jacques, Thank you very much for spending the time to remember how you put the link in!

B) It has worked and I have a link that opens my fantastic price list which I am very pleased with but I do have a further question...

The divider that seperates home / login / pricelist is missing between login and pricelist - how do I put it in?

:huh:

Paulm - don't feel bad - I pm'd Jacques because it was his site I found the link on - my price list is fab and will save me many hours of misery trawling my stock levels! Thank you so much!

shaggydogcrafts.com
Craft Materials and Crafty Ideas

harrisonwalton.info
Colourful, contemporary tiaras & crowns

fancyface.co.uk
Face Painting in Thanet, Kent

23 Feb 2006, 8:59 PM
#257
jacque427 avatar

jacque427

Zen Follower

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

Re: Pricelist For Printing

I'm away from my main computer right now so really can't recall exactly where it goes.

But you need to put a "|" (minus the quotes) in tpl_header.php

Take a peek at my post that mentioned how to do it.

See the ```
|&nbsp


That | is the separator.  

If you can't get it, let me know and I'll get back to you tomorrow.  (morning for me, evening for you)


Jacque

Just knowledgeable enough to be dangerous.

23 Feb 2006, 9:10 PM
#258
bryony avatar

bryony

Zen Follower

Join Date:
Dec 2005
Posts:
137
Plugin Contributions:
0

Re: Pricelist For Printing

Hi,
I've put that code in at the end of the middle line (where it was missing) to match the others but strangely nothing changed!

** <?php echo HEADER_TITLE_CATALOG; ?>|

<?php if ($_SESSION['customer_id']) { ?>
   <?php echo HEADER_TITLE_LOGOFF; ?>|
   <?php echo HEADER_TITLE_MY_ACCOUNT; ?>|
<?php echo HEADER_TITLE_PRICELIST; ?>| <?php**

Bit odd huh?

shaggydogcrafts.com
Craft Materials and Crafty Ideas

harrisonwalton.info
Colourful, contemporary tiaras & crowns

fancyface.co.uk
Face Painting in Thanet, Kent

23 Feb 2006, 9:16 PM
#259
jacque427 avatar

jacque427

Zen Follower

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

Re: Pricelist For Printing

Hmm, I'm stumped.

Maybe a "real" php programmer can help. It sure looks right to me.

Just knowledgeable enough to be dangerous.

25 Feb 2006, 6:27 PM
#260
pixxi avatar

pixxi

Totally Zenned

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

Re: Pricelist For Printing

Just noticed a small change that's needed - if you have some categories disabled in admin the price list drop-down menu will still show them.

The fix is to add:

and c.categories_status= '1'

to the pl_zen_get_category_tree function in includes/modules/pages/pricelist/header_php.php so it looks like this:

function pl_zen_get_category_tree($parent_id = '0', $spacing = '', $exclude = '', $category_tree_array = '', $include_itself = false, $main_cats_only = false)
{
  global $db;

  if (!is_array($category_tree_array)) $category_tree_array = array();
  if ((sizeof($category_tree_array) < 1) && ($exclude != '0')) $category_tree_array[] = array('id' => '0', 'text' => TEXT_PL_CATEGORIES);

  if ($include_itself) {
    $category = $db->Execute("select cd.categories_name
                from " . TABLE_CATEGORIES_DESCRIPTION . " cd
                where cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                and c.categories_status= '1'
                and cd.categories_id = '" . (int)$parent_id . "'");

    $category_tree_array[] = array('id' => $parent_id, 'text' => $category->fields['categories_name']);
  } 

  $categories = $db->Execute("select c.categories_id, cd.categories_name, c.parent_id
                from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
                where c.categories_id = cd.categories_id
                and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
                and c.parent_id = '" . (int)$parent_id . "'
                and c.categories_status= '1'
                order by c.sort_order, cd.categories_name");

@Bryony: You haven't been caught out by the override folder gotcha have you? - the one where you have two copies of a file (one the standard zen file, and the second your modified copy in an override folder) and you've edited the standard zen one by mistake?