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 101 to 120 of 326
This thread is locked. New replies are disabled.
4 Feb 2005, 12:12 AM
#101
ghostcorps avatar

ghostcorps

Zen Follower

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

Pricelist For Printing

Ok thank.s ill keep an eye out for it.

Could you maybe look at the lik i posted and let me know if you saw anythgin similar to the issue there?

:)

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

5 Feb 2005, 4:17 PM
#102
ianetche avatar

ianetche

Zen Follower

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

Re: Pricelist For Printing

Hi Ghostcorps

I took a look at the link and I don't recall seeing anything quite like this - at a guess, I would say that it is probably looking for a database field somewhere that doesn't exist - however, I should take more informed advice than mine before spending a lot of time searching the code for that. It may really need tracing through the code to discover the probs unless it triggers a thought with someone more familiar with the code and DB upgrades than me.

Best of luck with it - I will post here when I manage to get to doing something on the pricelist stuff.

Regards, Ian

7 Feb 2005, 1:58 AM
#103
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

Thanks Ian

No one seems to reciognise this issue, and i have com pleted a complete reinstall of this module only to get the same problem, I guess it must be a conflict with some other seemingly unrelated part of my db.. but your guess is as good (actually better) than mine. I'll just have to get boring and trace the code, see if anythgin sticks out...

if anyone can offer a hand it ould be greatly appreciated.. (if you need any body jewellery i promise a very good discount ::tup

=^_^=

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

7 Feb 2005, 2:31 AM
#104
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

I did a google and found this:

http://forums.oscommerce.com/lofiversion/i...hp/t113334.html

**
** techmed**

Sep 25 2004, 02:27 AM

I started entering my categories and subcategories yesterday, and now when I click on any of the category links with subcategories in them, I get the following error:

1109 - Unknown table 'p' in field list

select count(p.products_id) as total

[TEP STOP]

I tried downloading and installing the original index.php, and I get the same error. I did not edit anything recently, so I do not know where this error is coming from. Any help is greatly appreciated.

stevel

Sep 25 2004, 12:42 PM

I can't figure out which statement in index.php is the culprit here, as all of the queries I can see that use "as total" have a field list of (*).

The syntax of a query that would use the p. form would look something like this:

"select (p.products_id) from " . TABLE_PRODUCTS . " p ..."

where the "p" that follows the table name is the way to associate that abbreviation with the table.

It would seem that for the query in question, there is no table associated with "p". Can you find the offending line? It may be in some contribution you added. **

I am trying to make sence of it, and will show it to my housemate (my live-in IT geek) and see if he can make sence of it./... but any clarification would be great :)

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

7 Feb 2005, 7:29 AM
#105
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

... further....

we have isolated the problem to:

\includes\modules\pages\pricelist\header_php.php

line: 245

$sql = "SELECT m.manufacturers_id, m.manufacturers_name FROM " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS . " p WHERE m.manufacturers_id = p.manufacturers_id";

Or

Line: 335

    $query .= ' FROM ' . TABLE_PRODUCTS . ' p LEFT JOIN ' . TABLE_PRODUCTS_DESCRIPTION . ' pd USING(products_id) LEFT JOIN ' . TABLE_PRODUCTS_TO_CATEGORIES . ' pc USING(products_id) LEFT JOIN ' . TABLE_CATEGORIES . ' c USING(categories_id) WHERE pd.language_id="' . PL_LANG_ID . '" AND c.categories_id="' . $id . '"' . PL_SHOW_PROD_INACTIVE . PL_SHOW_CAT_INACTIVE;

nt: the solitary p's is these lines are the only occurences of such in the entire code SQL or PHP

I dont have anything in manufacturers_id at all and never have.. so i suspect it is line 335... how would I start to rectify this error?

::frust

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

7 Feb 2005, 9:30 AM
#106
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

HI ghostcorps,

just to try to get things clear, I'm posting your current price-list output here:

**Price-list for printing.

Displaying 355 products, click on the links for extensive product information.
English

Home
Home
1109 Unknown table 'p' in field list**
I will ask Carine if she will take a look (my MySQL skills are still at the "copy and paste" level I'm afraid).

7 Feb 2005, 10:32 AM
#107
calimeross avatar

calimeross

New Zenner

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

Re: Pricelist For Printing

hello,

As this issue seems to only occur with the latest zencart version, is there some code when you run the query that takes the query and massages it in order to get a total count ?
Could it be that that code has problems working with table aliasses ?
I'll need to install these same (zen) versions in order to really troubleshoot this further. Give me some time to do so ...

Carine

8 Feb 2005, 5:47 AM
#108
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

paulm: Thanks, i think we may have found a likley reson.. see below

kelvyn: I was sure I had the latest source...

// $Id: header_php.php, v1.0 2004/06/14 paulm

But i guess not.. will look through the downloads again... and let you know what happens when i drop in the new one.

=^_^=

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

8 Feb 2005, 6:22 AM
#109
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

::cens

it didnt work... but not only didnt it work... I killed my categories sidebox!!!!

::frust ::frust ::frust ::frust

ok... im going to try to roll back what i just did.... but I dont like my chances.... having completly disregarded my backup protocols... i think i just shotmyself in the foot.

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

8 Feb 2005, 6:46 AM
#110
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

phew.. well that was thankfully easy...

It was simply that i forgot the customisations I had in:

`/custom/sideboxes/tpl_categories.php

alas... the same issue persists.

Carine: Thanks, if you need anythgin from me.. just ask.. can shoot you a copy of the db if it will help

=^_^=

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

8 Feb 2005, 6:55 AM
#111
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

Paulm: Were any table names or structures changed between 1.01 & 1.03?

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

9 Feb 2005, 4:01 AM
#112
sanji avatar

sanji

Zen Follower

Join Date:
Jan 2005
Posts:
138
Plugin Contributions:
0

Re: Pricelist For Printing

I installed and use pricelist, but have two small issues with it. I hope people here have any idea how to solve those problems...

1/ When I print the list, the size of the table is sometimes larger than the printable area, and therefore part of the tables are not printed. I tried to change some values in the css, but couldn't find which value corresponds to the length of the table... I have the same problem for 1 and 2-columns documents.

2/ I added a link to the print lists directly in the "home" page of the admin... But in order to open them, the admin has first to register as a normal user, and then only he can access to the lists! Is there any way to allow direct access of the admin user to any page of the front shop?

Thanks,

sanji

20 Feb 2005, 12:17 AM
#113
ianetche avatar

ianetche

Zen Follower

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

Re: Pricelist For Printing

Just to advise - I integrated a load of stuff to 1.2.4 over the last couple of days and pricelist seems to be working fine.

1.2.4 rocks ::tup

Regards, Ian

20 Feb 2005, 2:36 PM
#114
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

sanji:

1/ When I print the list, the size of the table is sometimes larger than the printable area, and therefore part of the tables are not printed. I tried to change some values in the css, but couldn't find which value corresponds to the length of the table...
It's not possible to make a table smaller by setting the height using CSS/HTML. I think the best solution is to decrease the number of lines printed on a page in the admin. (also decreasing the font-size could help for example, then you do have to make sure it stays readable of course)

Also make sure every product only uses one line! If some products use two or more lines the line count will go wrong and the output will become unpredictabe.

@IanEtche: thanks for the info, allways nice to hear that it still works with newer versions :)

3 Mar 2005, 7:22 AM
#115
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

Hi Guys

I'm back again. It seemed time to upgrade.. so I did. I was very excited that I could come back and report all systems go.

But... this is not to be.

Fair enough my last build was so heavily customised it fell apart like a leper in the end.. but.. This is a brand spanking clean build.. not an upgrade but a complete reinstall.

and I still get the same error!!

which suggested to me that it was in the custom template (which I did carry accross) and sure enough when i apply blue_strip everythign is roses.

Now that I have narrowed it down somewhat... can anyone make suggestions where to start looking?

Thanks for your patience :P

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

3 Mar 2005, 8:08 AM
#116
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

After alot of trial and error I found that somehow.. I dont know.. and I will not hurt myself trying to figure it out.. but... somehow.. your not going to belive this.. but anyway.. somehow.. tpl_currencies.php in my custome template/sideboxfolder became tpl_index_product_list.php.. it was named tpl_currencies.. but it contained tpl_index_product_list.php's scripot...

shruggs

anywhooo.. thanks again

=^_^=

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

3 Mar 2005, 8:29 AM
#117
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

ghostcorps:

somehow.. your not going to belive this.. but anyway.. somehow.. tpl_currencies.php in my custome template/sideboxfolder became tpl_index_product_list.php
I do believe you, it's caused by something called ghostscripts :D

I think we all have have this now and then, you think: "Hey what's that? Did I do that? That's really weird" :blink:
:lol:

3 Mar 2005, 8:30 AM
#118
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

:oops: ignore this one :lol:

3 Mar 2005, 8:42 AM
#119
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

hehehehe.. hmmm ghostscripts huh? you have no idea how many issues this file has caused me.... im willing to bet about 200 of my 225 posts are because of this!!!

it would have mutated sometime during my SEFU experiments... a looong time ago... and because i simply copied my tamplate from one build to another.. i never noticed.. but.. thats all in the past....

lays back... ahhhhhh BLISS of course I still need to figure out how to move the stuff at the top into the main table... but thats for another day...

=^_^=

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

16 Mar 2005, 12:30 PM
#120
danny avatar

danny

New Zenner

Join Date:
Nov 2010
Posts:
3
Plugin Contributions:
0

Re: Pricelist For Printing

Hi,

I am setting up Zen-cart for my company and so far it works great.
I have it setup with the prices "hidden" (login for prices).
I have installed your pricelist (great contrib BTW)
but now everyone can access the prices without logging in.
Is there a way to prohibit access to the pricelist for not-logged in users?
Or not show the link to not-logged in users?

I realize my question has actually nothing to do with this contrib, but it came up here so that's why I'm posting in this thread.