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 21 to 40 of 326
This thread is locked. New replies are disabled.
6 Oct 2004, 6:56 AM
#21
paulm avatar

paulm

Totally Zenned

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

Pricelist For Printing

soapin_mama:

Somehow I ended up with the menu listing in ADMIN twice. Any way to safely remove it?
It's depends a little on what you call "safely". In any case backup your database first! (using the zen backup and/or phpMyAdmin)

*) If you want to keep the settings you already made to the pricelist, I think it's best to use phpMyAdmin, and carefully remove the extra tables one by one.

or:

*) If you just want to get rid of the tables (and don't mind loosing all pricelist settings you made). Then I would run the included remove sql file (a couple of times) until all pricelist tables are gone. And then run the installation sql file, only once, to recreate the tables again.


@ghostcorps: it looks like you already found out what to do. I just would like to add: that the included "tpl_categories.php" is only a simple example, of the many possibillities, on how to include a link to the pricelist into your shop. If you use winmerge to compare, it's best to compare the included "tpl_categories.php" to the default the "tpl_categories.php" file (i.s.o. to your own editted file). Then it should be very easy to see how the link is added i hope.

6 Oct 2004, 10:36 AM
#22
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

does a little dance

thanks guys. you all rock

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

6 Oct 2004, 11:03 AM
#23
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

ghostcorps:

does a little dance
:lol:

7 Oct 2004, 8:39 PM
#24
pixxi avatar

pixxi

Totally Zenned

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

Re: Pricelist For Printing

Just spotted a define that seems to be missing ...

in /includes/languages/english/custom/pricelist.php, add:

define('NAVBAR_TITLE', 'Pricelist for Printing');
11 Oct 2004, 10:30 PM
#25
andy avatar

andy

Zen Follower

Join Date:
Feb 2004
Posts:
162
Plugin Contributions:
0

Re: Pricelist For Printing

Hi paul
do you have any idea when pricing attributes will be included, ive been using your pricelist, but have had to use attributes and so pricelist cant be used for all products

thanks

andy ;)

12 Oct 2004, 12:10 AM
#26
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

Pixxi:

Just spotted a define that seems to be missing ...

in /includes/languages/english/custom/pricelist.php, add:

define('NAVBAR_TITLE', 'Pricelist for Printing');

Being the obvious novice that I am I have to ask if anyone cna confirm whether matters or not where this define is pasted, within html_output

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

12 Oct 2004, 12:19 AM
#27
jeff_fwd avatar

jeff_fwd

Totally Zenned

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

Re: Pricelist For Printing

the most logical place to put defines for a mod is in the language file for that mod

so, if you are not using a custom template, it should go in langauges/english/pricelist.php

if you are using a custom template, it would go in languages/english/YOURTEMPLATENAME/pricelist.php

12 Oct 2004, 12:55 AM
#28
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

haa haa yeh... thanks.. i know that much. sorry i was thinking of somthgin else when i wopte html_output.. LOL :( ::tup

I'm more wondering if there is a certain order or structure that the defines need to follow in the pricelist.php or if i can just drop it in under the others.

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

12 Oct 2004, 1:05 AM
#29
jeff_fwd avatar

jeff_fwd

Totally Zenned

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

Re: Pricelist For Printing

it happens...

as far as where in the file.....

anywhere..

there is no 'order' rule

the 'felix unger' types would say to put defines in alphabetical order, which, in a very large define file would make it easier to find things, but in a file with a dozen or so defines... just paste it in..... :lol:

12 Oct 2004, 2:15 AM
#30
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

thanks :)

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

12 Oct 2004, 7:19 AM
#31
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi Andy,

andy:

do you have any idea when pricing attributes will be includesorry but I have no idea at all. I don't know how these attributes work and I don't have time to find out at the moment. (I even have no clue if it would be easy or difficult to do)

Actually I was hoping someone else would figure it out some day and update the price-list :)
(to be honest I am very happy that I got it working as it is, and I don't have enough knowledge/time yet to safely include more features/functions)

14 Oct 2004, 1:13 AM
#32
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

Hi Paul

a quick question. How do i remove "inc. $" & "ex. $" And replace it with one "Price. $" column?

Thanks

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

14 Oct 2004, 4:19 PM
#33
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi ghostcorps,

I thought that the default setting was only on price column. But if you have both now, and only want one, you can switch the "Tax Free" column to false in admin (i.e.: configuration::Price-List Profile-x::Tax Free). The "inc." text you can change in the included language file (i.e. in: includes/languages/english/pricelist.php)

15 Oct 2004, 1:13 AM
#34
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

thanks paul

I dont knwo if you have it too.. but the list of profiles in my configuration list has two prifile 1's... i was changeing the wrong one. :)

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

15 Oct 2004, 7:34 AM
#35
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

ghostcorps:

the list of profiles in my configuration list has two prifile 1's... i was changeing the wrong one. :)
Aha, that explains :D

I don't have two, maybe you have run the sql twice? In that case I would expect all profiles two have to entries. To prevent future confusion it might be wise to remove the obsolete ones.

19 Oct 2004, 2:01 AM
#36
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

umm.. not sure why i have them.. i removed it and reapplied they still appear. Its no biggie.. i just have to be careful.

New question though. I am playing with the CSS and have managed to cusomise alot exactly how I want it. But I cannot for the life of me figure the easy bits.

  1. How do i remove the big-ass header.
  2. How do change the colour of the links.
  3. How do i set the background with an image/change the background colour.

As I said.. the easy bits.. but i just cannot find the right commands.

Thanks again.

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

19 Oct 2004, 9:34 AM
#37
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi ghostcorps,

for example add

h1 {
 display: none;
}
a {
 color: red;
}
div.pagePL, div.pageOnePL {
 background: silver;
}
td {
 background: white;
}
``` to the stylesheet

for background image add an url to the background property, example code at [http://www.w3schools.com/css/pr\_background-image.asp](http://www.w3schools.com/css/pr_background-image.asp)
19 Oct 2004, 10:38 PM
#38
ianetche avatar

ianetche

Zen Follower

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

Re: Pricelist For Printing

Hi Paul

Having installed the mod a while ago, we are still really happy with it. Somewhere along the way, I have lost my All Products link from categories. It is one of those things that wasn't immediately noticeable when it disappeared - I haven't checked around in the code yet, but I wondered if you thought the price list mod might be connected in any way. I'd be really grateful for any thoughts you might have that don't involve you in too much effort.

Thanks again for the mod it is really good.
Ian

19 Oct 2004, 11:29 PM
#39
ianetche avatar

ianetche

Zen Follower

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

Re: Pricelist For Printing

Hi again Paul

Sorry to post twice in succession. I got to thinking about my all products problem and checked out the file includes/templates/custom/sideboxes/tpl_categories.php - and compared it with the 1.2.1 release.

I think that some of the upgrades in 1.2.1 can feed through - I cut the lines:

define('SHOW_CATEGORIES_BOX_PRICELIST', 'true');
 	if (SHOW_CATEGORIES_BOX_PRICELIST == 'true') {
   $content .= '<br /><a href="' . zen_href_link(FILENAME_PRICELIST) . '">' . CATEGORIES_BOX_HEADING_PRICELIST . '</a>';
  } 

from your file and pasted them after the all products test in the 1.2.1 tpl_categories file as below.

if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
   $content .= '<a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a>';
  }

define('SHOW_CATEGORIES_BOX_PRICELIST', 'true');
 	if (SHOW_CATEGORIES_BOX_PRICELIST == 'true') {
   $content .= '<br /><a href="' . zen_href_link(FILENAME_PRICELIST) . '">' . CATEGORIES_BOX_HEADING_PRICELIST . '</a>';
  } 

I think that has fixed my problem - I might put the config in the database if that would be of any help.

Best regards, Ian

20 Oct 2004, 1:38 AM
#40
ghostcorps avatar

ghostcorps

Zen Follower

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

Re: Pricelist For Printing

hmmm... thats not working.. is there anywhere in particular to put it?
Ive even used a css editor.. but alas.. nadda :(...

Oh and the removing the header? Which set of instructions defins that?... sorry im a bit useless this week...

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