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 161 to 180 of 326
This thread is locked. New replies are disabled.
16 Jun 2005, 4:03 PM
#161
jacque427 avatar

jacque427

Zen Follower

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

Pricelist For Printing

Beautiful, I'm about ready to give this a shot.

I'll get phpmyadmin and see what I can learn.

Where I seem to be stuck is how to load the sql files.

If I can't figure it out via my myadmin I'll ask here.

I'm certainly not shy.

Jacque

Just knowledgeable enough to be dangerous.

16 Jun 2005, 5:23 PM
#162
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Pricelist For Printing

jacque427:

Where I seem to be stuck is how to load the sql files.
In Admin->Tools->Install SQLPatch

You can either copy-and-paste the contents of the SQL file,
OR
you can click on the Browse button, and find the SQL file for it to load and process.

You can do same with phpMyAdmin, by clicking on the "SQL" tab once you've logged in to it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Jun 2005, 6:39 PM
#163
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

kelvyn:

You can use the tools section of admin to add mysql files to the databaseWait a minute, that is not possible in this case! (unless an update of this zen sql tool has changed this?)

It has been discussed before, and it is a pitty that it doesn't work, but loading the pricelist sql file via the zen admin results in an error message (don't remember what it was exactly).

I do not know enough about sql to do anything about it, but I suppose it would be a piece of cake for a mysql expert to rewrite the sql and make it work with the zen admin sql tool. ;)

16 Jun 2005, 7:10 PM
#164
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Pricelist For Printing

Paul, the key to it is:

a. use only the no-prefix scripts
and
b. slightly-modify the scripts to use a modified layout.
(Modifications are documented on the Help button in the SQLpatch tool)

The main thing you need to know is this:

Any SELECT @.... statements need to be prefixed by a comment like this:

#NEXT_X_ROWS_AS_ONE_COMMAND:4
SET @t1=5;
SELECT (@t1:=configuration_value) as t1 
FROM configuration 
WHERE configuration_key = 'PRODUCTS_IMAGES_ATTRIBUTES_PER_ROW' limit 1;
UPDATE products_options SET products_options_images_per_row = @t1;
DELETE FROM configuration WHERE configuration_key = 'PRODUCTS_IMAGES_ATTRIBUTES_PER_ROW';
```Note the NEXT_X.....:4 .... the 4 refers to the number of statements to be kept and processed "together" (denoted by ; )

To find out the right number to use, you need to count the relevant SQL statements that get executed using the @ variable you just declared/defined, and "before" the "next" one defined.

Several #NEXT_X..... comments will need to be used in a couple of your SQL scripts since there are "sections" to it... esp for each separate "profile" that you create.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Jun 2005, 8:36 PM
#165
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi DrByte,

thanks a lot for the explanation ::tup
I might give it another try after all.

DrByte:

Modifications are documented on the Help button in the SQLpatch toolI decided to look at that again, and it appears to be updated. The info you just gave was not included in the sql patch tool help when I encountered the error the first time. Even SELECT was missing in the list of allowed commands, and that made me give up on it at the time (I remember again now).

Paul

16 Jun 2005, 8:40 PM
#166
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Pricelist For Printing

No problem ;) ... I tried to get that updated and documented as well as possible for v1.2.5 release.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Jun 2005, 2:21 AM
#167
jacque427 avatar

jacque427

Zen Follower

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

Re: Pricelist For Printing

Phew! Sounds scary to me! But then again, if I make sure my parachute (full backup) is packed correctly I guess I can jump out of this airplane safely.

The way that I seem to understand it is that I can use the install sql patches from my admin to execute the appropriate files.

But first of all I'm going to ensure that I have a really good working knowlege of how the database backup tool works. I may be just a two-bit html weenie, but have learned my lesson about keeping good backups.

Just knowledgeable enough to be dangerous.

17 Jun 2005, 8:45 AM
#168
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

jacque427:

The way that I seem to understand it is that I can use the install sql patches from my admin to execute the appropriate files.
Currently it is NOT possible to use the zen admin sql patch tool for this contrib. It might be in the (near?) future though. So if you manage to find phpMyAdmin (which really would be wise anyway I think) you can install it right away, and else you could wait until the pricelist sql is updated.

17 Jun 2005, 4:40 PM
#169
spinning_plate avatar

spinning_plate

Zen Follower

Join Date:
Dec 2004
Posts:
132
Plugin Contributions:
0

Re: Pricelist For Printing

Hi there,

what do i need to edit to change the product links?

At the mo, my itms are linked to:

http://www.oxide-tones.com/index.php?main_...roducts_id=1234

Id löike to link them to:

http://www.oxide-tones.com/index.php?main_page=product_music_info&products_id=1234

I searched the files, couldnt find the relevant info though.

Thanks in advance

18 Jun 2005, 11:47 AM
#170
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi kelvyn,

Originally posted by kelvyn@Jun 17 2005, 08:54 AM
**> **Currently it is NOT possible to use the zen admin sql patch tool for this contrib. It might be in the (near?) future though. So if you manage to find phpMyAdmin (which really would be wise anyway I think) you can install it right away, and else you could wait until the pricelist sql is updated.**Huh?!? But I used it just fine!**Interesting to hear that! It didn't work some zen versions ago, but probably it does work on newer versions then? You remember on which zen version you have used it succesfully on?

@spinning-plate:
in includes/modules/pages/pricelist/header_php.php at approx line 559 you can find:

$prodRow .= '<td class="prdPL"><div><a href="' . zen_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_id) . '">' . $cats[$cat_index][$prod_index]['products_name'] . '</a></div></td>' . "\n";
```You can replace "FILENAME_PRODUCT_INFO" by the page you want it to link to.
18 Jun 2005, 12:26 PM
#171
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hmmm.... confusing, I just tried adding the price-list sql (the one w.o. prefixes, both the install and remove sql file) and it seems to work just fine, w.o. any modifications!

It appears that the "To run some blocks of code together so that they are treated as one command by MySQL" part is not needed for the price-list sql, only "simple selects" are being executed.

So the price-list sql files (the ones without prefix) can be added to the database using the zen admin sql patch tool on zen-cart v1.2.5. But not on some (or most? or all?) older versions.

1 Jul 2005, 11:03 PM
#173
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

Where can I find the latest version of this? And do I understand correctly that it works on 1.2.5??

Thanks,
Kelly

Kelly Ann
Raven Media, LLC

2 Jul 2005, 8:33 AM
#174
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Hi Kelly,

sleepless:

Where can I find the latest version of this? And do I understand correctly that it works on 1.2.5??
Yep, it's tested on, and works fine with v1.2.5 (for normal prices and the so called special price, but no features to print discounts etc included).

For the latest version follow the download link in my sig below.

hth

15 Jul 2005, 1:55 AM
#175
jacque427 avatar

jacque427

Zen Follower

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

Re: Pricelist For Printing

Where would one find a website that has this active so we can see what it looks/works like?

Just knowledgeable enough to be dangerous.

15 Jul 2005, 6:59 AM
#176
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

I've got one online at my my zen test/demo shop.

The only problem is that the demo only has a couple of products per cat max, and that makes it look a bit different than it would look for most shops. Especially the empty cats are unusual of course.

17 Jul 2005, 8:07 PM
#177
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

Hi,

I just installed mine here: Printable Pricelist It has 770 products. Please note, I have an Adult Site, if the content offends you, please don't click on the link.

I would like to know if it's possible to remove top portion and just have the tables show. I really don't need the grey box on the top of the page. And I would also like the category names smaller. I know it's in the css file somewhere, but I couldn''t find it.

Thanks for a great mod! :)
Kelly

Kelly Ann
Raven Media, LLC

17 Jul 2005, 8:29 PM
#178
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

sleepless:

I would like to know if it's possible to remove top portion and just have the tables show. I really don't need the grey box on the top of the page. And I would also like the category names smaller.
Hi sleepless,

easyest answer (for me) is that you may add:

#screenIntroPL {display: none;} 
h1 {font-size: 1em;} 
```to the end of the pricelist stylesheet.css file (adjust 1em to the font-size you want).

The original idea was to replace the (ugly) grey header by something better looking, but i never got to that part ;)

On the other hand, the list is made for printing (on paper), and this header is not printed anyway so...
17 Jul 2005, 8:55 PM
#179
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

Thank you! That worked great! :)

Kelly Ann
Raven Media, LLC

19 Jul 2005, 1:33 PM
#180
jroussel avatar

jroussel

New Zenner

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

Re: Pricelist For Printing

Just installed includes files and am trying the load the sql file directly into the zencart sql tool. I'm getting this error

1146 Table 'billetgr_zc1.configuration_group' doesn't exist

What did i forget to do.