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 181 to 200 of 326
This thread is locked. New replies are disabled.
19 Jul 2005, 2:18 PM
#181
jroussel avatar

jroussel

New Zenner

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

Pricelist For Printing

#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';

I tried to use this code on the latest version of no_prefix_add-link-switch.sql included in the download

this is how i understood it should look:

#NEXT_X_ROWS_AS_ONE_COMMAND:4
SET @t1=5;
SELECT @pricelistid:=configuration_group_id from configuration_group WHERE configuration_group_title='Printable Price-list';
select @pricelistid;
INSERT INTO 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\'),' );

and i still got the same error

19 Jul 2005, 2:47 PM
#182
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

Did you try using PHPMyAdmin? A few posts back there were others who were unable to get it to work using the zencart sql tool. The author even states that it will not work using that method.

Kelly :)

Kelly Ann
Raven Media, LLC

19 Jul 2005, 2:57 PM
#183
jroussel avatar

jroussel

New Zenner

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

Re: Pricelist For Printing

I did but I've never used it before. I entered all of my products through Zen cart without setting up a database. And the phpmyadmin link from my cpanel looks strange to me. It seems like i need a mySQL database to work with it is this not true. Otherwise can i just upload the .sql files to my file manager.

19 Jul 2005, 3:13 PM
#184
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

Your hosting provider must have set it up for you. If you go into cpanel, click on the link for MySql databases. Now look for the link to phpMyAdmin. Once you are in phpMyAdmin, click on databases. This will show you all the databases you currently have installed. Click on the databse you need to add the files to. Up at the top click on SQL. In "Run SQL query/queries on database" box, paste your table info and click go.
Make sure before you do anything that you back up your database.
This should do it.

Good luck,
Kelly

Kelly Ann
Raven Media, LLC

19 Jul 2005, 7:39 PM
#185
jroussel avatar

jroussel

New Zenner

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

Re: Pricelist For Printing

I found it. I have a database that contains all of my files. it contains tables like categories or product types, etc... Should I chose a particular table to run the sql files on or to the main database. When I try to run it on the main database it gives me this error:

Error
SQL-query:

Printable Price-list database settings

2004/11/19

SELECT @sortorder := max( sort_order )
FROM configuration_group
MySQL said:

#1146 - Table 'billetgr_zc1.configuration_group' doesn't exist

[ Back ]

Any suggestions?
Thanks.

19 Jul 2005, 7:43 PM
#186
jroussel avatar

jroussel

New Zenner

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

Re: Pricelist For Printing

I just tried to run it directly on the products table and i get a different error:

MySQL said:

#1062 - Duplicate entry 'PL_DEFAULT_PROFILE' for key 2

19 Jul 2005, 9:05 PM
#187
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Oops this is becoming very confusing :(

Hopefully this will prevent even more confusion:

It IS possible to add the pricelist SQL (s) using the zen SQL patch tool, if you are using the current zen-cart version!
(= version 1.2.5d, for older versions you may try using phpMyAdmin instead)
So please ignore any posts (from others and me) that it would not work, it's fully tested and it work just fine.

@jroussel: not sure what you are trying to do, but I think your best option is to load a backup of your database from before you tried to install the SQLl files. And then just load the original (so please do not edit the SQL, unless you know exactly what you are doing) price-list SQL files using the zen-cart tool. Also make sure you are using zen-cart v1.2.5d, else it might not work as expected.

20 Jul 2005, 3:04 AM
#188
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

Sorry. I was under the impression it didn't work. I did see a post stating they had no problem.
I used PhpMyadmin to set up the tables to be on the safe side.

Sorry,
Kelly

Kelly Ann
Raven Media, LLC

20 Jul 2005, 10:08 AM
#189
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

sleepless:

Sorry.
No problem at all.
:)

I did use a large font-size, but not because I was annoyed or something, it only became too confusing, because there were many posts about that it would not work (including some of mine).

20 Jul 2005, 1:38 PM
#190
baelzebub avatar

baelzebub

Zen Follower

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

Re: Pricelist For Printing

Hey all.
Tried to install v1.03 (latest version i think) and when i try to install the no_prefix_pricelist-3.sql i get "1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '1', '2', '3' ),' )' at line 1"
Any ideas?
Zen 1.2.5d
PHP Version: 4.3.10
Database: MySQL 4.0.23-standard

21 Jul 2005, 6:54 AM
#191
paulm avatar

paulm

Totally Zenned

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

Re: Pricelist For Printing

Baelzebub:

Tried to install v1.03 (latest version i think) and when i try to install the no_prefix_pricelist-3.sql i get "1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '1', '2', '3' ),' )' at line 1"
Any ideas?
Zen 1.2.5d
PHP Version: 4.3.10
Database: MySQL 4.0.23-standard
Ouch, this hurts ;)

Seems that this SQL problem is a never ending story :(

I have tested the price-list SQL's (price-list v1.03) on:

Zen 1.2.5d
PHP Version: 4.3.10
Database: MySQL 4.1.7-log

Tested on both phpMyAdmin and the zen SQL tool, and both work just fine here.

I think you have tried it with phpMyAdmin, could yould give it a shot using the zen SQL tool too?

24 Jul 2005, 6:07 PM
#192
hareslade avatar

hareslade

Totally Zenned

Join Date:
Nov 2004
Location:
U.K. South Wales
Posts:
442
Plugin Contributions:
0

Re: Pricelist For Printing

Hi paulm and all
Nice thing the pricelist.
Someone might already have done this, but I modded the
code experimentally in function show_products to go get the correct type
handler so the price list product links show the correct
style/ layout for the product in the cart when the link is used
(e.g document...)

Its really simple there is an existing function to get type handler given the product id

Also if you don't want to open a new browser page clicking on
a price list link, remove the target = part

//added mod to get correct handler jph
  $handler_page = zen_get_info_page($products_id);
        $prodRow = '<tr>' . "\n";
  //added handler and target jph
  $prodRow .= '<td class="prdPL"><div><a href="' . 
  	zen_href_link($handler_page, 'products_id=' . $products_id) . '" target="_blank">' . 
        	$cats[$cat_index][$prod_index]['products_name'] . '</a></div></td>' . "\n";

Hope this makes sense
Check that I didn't change the css side in the code above, I messed around so long I firget whats original

26 Jul 2005, 3:42 PM
#193
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

hareslade, what does this do? Im lost. How will it change the list.
Does it change the look of the list?
Here is My Pricelist. the earlier url is no longer any good now.

Thanks,
Kelly

Kelly Ann
Raven Media, LLC

26 Jul 2005, 6:50 PM
#194
baelzebub avatar

baelzebub

Zen Follower

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

Re: Pricelist For Printing

paulm:

Baelzebub:

Tried to install v1.03 (latest version i think) and when i try to install the no_prefix_pricelist-3.sql i get "1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '1', '2', '3' ),' )' at line 1"
Any ideas?
Zen 1.2.5d
PHP Version: 4.3.10
Database: MySQL 4.0.23-standard
Ouch, this hurts ;)

Seems that this SQL problem is a never ending story :(

I have tested the price-list SQL's (price-list v1.03) on:

Zen 1.2.5d
PHP Version: 4.3.10
Database: MySQL 4.1.7-log

Tested on both phpMyAdmin and the zen SQL tool, and both work just fine here.

I think you have tried it with phpMyAdmin, could yould give it a shot using the zen SQL tool too?
Now heres a wierd thing, i got the error using Zen sql tool. Afer your post i tried it with phpmyadmin and it worked... :) ::tup

26 Jul 2005, 7:32 PM
#195
baelzebub avatar

baelzebub

Zen Follower

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

Re: Pricelist For Printing

Hmmm, for some reason when i click on the pricelist link the main page refreshes itself. I am sure i have the correct files in the correct places.
Any ideas what i need to triple check?

https://www.dodgetopia.com incase anyone wants to check
Here is the pricelist link.

26 Jul 2005, 8:14 PM
#196
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

Your site isn't coming up. You have a double http:// in the url.

Kelly

Kelly Ann
Raven Media, LLC

26 Jul 2005, 8:22 PM
#197
baelzebub avatar

baelzebub

Zen Follower

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

Re: Pricelist For Printing

::bng
Sorry bout that.
Try Here instead.

26 Jul 2005, 8:45 PM
#198
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

That's okay. I figured it out and went to the correct url.
I had the same problem. I didn't put the templates in the default folder. I was thinking I had to have them in my override folder.
Double check where you have everything. Just a thought.

Good Luck! :)

Kelly Ann
Raven Media, LLC

26 Jul 2005, 9:07 PM
#199
baelzebub avatar

baelzebub

Zen Follower

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

Re: Pricelist For Printing

gives himself a nice hard slap with a sledgehammer
That's exactly what i done, put them in over-ride folders.
Being overly cautious now i guess :D
Thank ya kindly.
One more question.
How do i get rid of the:
Special offer valid till: 01/01/0001
Line as the specials are always on offer.
Nicey-nice addon :D

26 Jul 2005, 9:14 PM
#200
kadesign avatar

kadesign

Totally Zenned

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

Re: Pricelist For Printing

Trust me, I know just what you mean. Obviously considering I did the same thing!! :rolleyes:

Not sure about the special part. I haven't played with that!

Kelly Ann
Raven Media, LLC