Forums / All Other Contributions/Addons / Printable Price list :: support thread

Printable Price list :: support thread

Views: 232,326

Results 101 to 120 of 739
25 May 2007, 2:26 AM
#101
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Printable Price list :: support thread

paulm:

@supersnow: the pricelist only show inc. tax prices if the prices are shown inc tax in your shop. So I assume your shop is not setup to show inc tax prices.

Thanks that explains it.

Couple of other questions:

  1. I was also wondering how do I make the images larger on the price list? As I would like to show them a little larger to show more detail.

  2. I would like to show the available attribute choices available for each product?

Thanks
Supersnow

1 Jun 2007, 8:08 PM
#102
sal4888 avatar

sal4888

New Zenner

Join Date:
May 2007
Posts:
12
Plugin Contributions:
0

Re: Printable Price list :: support thread

[quote=paulm;379432]There are rumours (and it's very likely) that some people have done this, but as far as I know it's not publicly available. The mod does not include a stylesheet for 8.5" x 11"

Does anyone out there have the stylesheet for 8.5x11...please post.

4 Jun 2007, 6:59 PM
#103
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Re: Printable Price list :: support thread

supersnow:

Thanks that explains it.

Couple of other questions:

  1. I was also wondering how do I make the images larger on the price list? As I would like to show them a little larger to show more detail.

  2. I would like to show the available attribute choices available for each product?

Can anyone help! I really want to know how to show a larger image in the pricelist and also the available attributes. Anyone???? :frusty:

Thanks
Supersnow

4 Jun 2007, 8:16 PM
#104
paulm avatar

paulm

Totally Zenned

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

Re: Printable Price list :: support thread

Attributes are **not **supported.

And if you are using price-list_v1.3-pre5 the image width and height settings can be found in de admin. There is a bug in it though. I attached an update zip to this post which should fix the bug and improves the group functionality (I hope). This update is only to update price-list_v1.3-pre5, not any other version.

If your using an older pricelist version the image settings may be harcoded in one of the files. Probably best to upgrade then.

Please let me know if the image size settings work ok now, and if the group functionality still works.

5 Jun 2007, 12:33 AM
#105
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Re: Printable Price list :: support thread

paulm:

Attributes are **not **supported.

And if you are using price-list_v1.3-pre5 the image width and height settings can be found in de admin. There is a bug in it though. I attached an update zip to this post which should fix the bug and improves the group functionality (I hope). This update is only to update price-list_v1.3-pre5, not any other version.

If your using an older pricelist version the image settings may be harcoded in one of the files. Probably best to upgrade then.

Please let me know if the image size settings work ok now, and if the group functionality still works.

For the image settings do you mean in Configuration/images? If so which setting? There are a lot of setting in here and I can't find one that is called pricelist or seems to be associated with the price list. Which setting controls the price list image size.

Also just a wishlist item can it be possible in the future for additional images to be shown?

Thanks

Thanks
Supersnow

5 Jun 2007, 2:06 AM
#106
enderandrew avatar

enderandrew

New Zenner

Join Date:
Jun 2007
Posts:
46
Plugin Contributions:
0

Re: Printable Price list :: support thread

You should update the download link to the latest version. I do believe the download link had 1.3-pre2

5 Jun 2007, 10:04 AM
#107
paulm avatar

paulm

Totally Zenned

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

Re: Printable Price list :: support thread

enderandrew:

You should update the download link to the latest version. I do believe the download link had 1.3-pre2Thanks for reminding me :-)

The 1.3-pre5 file is attached to an earlier post in this thread. I usually wait until I get some positive feedback about the latest version I uploaded to the thread before I upload to the Zen downloads. This prevents that buggy versions are uploaded, and saves me and the Zen devs some time.

So if someone is willing to download 1.3-pre5 + the update to 1.3.6 and tell me if it works ok (especially the image size and group features), I will upload it to the zen downloads. And please always mention the version number!

For the image settings do you mean in Configuration/images? If so which setting?No, sorry for the confusion, it's in the pricelist settings under each profile (only in recent versions):

admin|Configuration|Price-list Profile-1 (and the other profiles of course)

Also just a wishlist item can it be possible in the future for additional images to be shown?Nice idea, but not a feature I will add myself probably. But of course anyone is free to add features themselves :-)

8 Jun 2007, 3:20 AM
#108
seth04 avatar

seth04

New Zenner

Join Date:
Jun 2007
Posts:
10
Plugin Contributions:
0

Re: Printable Price list :: support thread

This is a newbie question but, i have installed the 1.3.6 version and the images are not showing up. everything else works great. i tried other versions but the images have never shown up. Can someone help me and try to fix this. Im sure i am just doing something wrong.

8 Jun 2007, 9:32 PM
#109
andyroe208 avatar

andyroe208

New Zenner

Join Date:
Jun 2007
Posts:
5
Plugin Contributions:
0

Re: Printable Price list :: support thread

Hi

I'm new to zencart and am trying to install the printable pricelist verson 1.3pre2 but am having troubles, I have followed everything in the readme but when i click the link to the pricelist i get a 404 error. Can anyone help please?

14 Jun 2007, 12:41 PM
#110
rhys100 avatar

rhys100

New Zenner

Join Date:
Oct 2006
Posts:
48
Plugin Contributions:
0

Re: Printable Price list :: support thread

could you please make options to remove images/descriptions as my descritpions are huge and i dont need them. i just want to have name of product , image and price.

14 Jun 2007, 3:14 PM
#111
paulm avatar

paulm

Totally Zenned

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

Re: Printable Price list :: support thread

@ seth04 and andyroe208: difficult to say anything about it without actually seeing it happen...

@rhys100: it's in the pricelist configuration settings in your admin (but that might depend on the version...)

I attached pricelist version 1.3.6 to this post (temporary), previous attached files will be removed soon.

And I am taking a break form this thread. Maybe/probably I'll be back later again :-)

14 Jun 2007, 11:11 PM
#112
rhys100 avatar

rhys100

New Zenner

Join Date:
Oct 2006
Posts:
48
Plugin Contributions:
0

Re: Printable Price list :: support thread

i have the latest version 1.3.6 and theres still no options in admin-->config--> pricelist profile 1/2
am i missing something here?

26 Jun 2007, 1:32 AM
#113
webman avatar

webman

New Zenner

Join Date:
Sep 2005
Location:
Adelaide South Australia
Posts:
31
Plugin Contributions:
0

Re: Printable Price list :: support thread

Hi Guys,

Not sure if anyone has experienced this issue but after installing price list for printing on ZC V1.3.6 my EZ pages side box disappeared. I have checked the EZ admin area and the info is still all there and has the correct sort order but alas it just doesn't display. I have tried de-installing and re-installing a number of time but this makes no difference.

Could the PFP DB install of affected my EZ-Pages db configuration?
If so what do I need to restore the EZ Pages side box - getting down and dirty via PHPAdmin or some other magical method. :)

Oh! and to all those installing this and contrib any Zen contribution - read the first line of the install section of the read me file and do it! :(

BACKUPBACKUPBACKUPBACKUPBACKUPBACKUPBACKUPBACKUPBACKUPBACKUPBACKUP!

Many Thanks

Les :)

1 Jul 2007, 4:37 AM
#114
psr_racing avatar

psr_racing

New Zenner

Join Date:
Feb 2007
Posts:
90
Plugin Contributions:
0

Re: Printable Price list :: support thread

I also have to ask, how do you turn off pics and descriptions, cant see an option in the list of settings. I used the latest version from the downloads section.

2 Jul 2007, 10:23 AM
#115
paulm avatar

paulm

Totally Zenned

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

Re: Printable Price list :: support thread

@psr racing: could you install price-list_v1.3.6.zip (attached to my post a couple of posts up in this thread) and tell me if it solves your problem?

@webman: I am quite sure your EZ pages problem is not related to this contribution (Just to be sure I even checked it on a test Zen Cart 1.3.7 install + price-list_v1.3.6 and the EZ pages work just fine).

@rhys100: I just installed price-list_v1.3.6 and the image and description settings are there, so it indeed looks like you're mising something. I attached a screenshot of the settings, which should be visible right after installing the included pricelist-3.sql.

Older versions may not have this settings (or may have the settings in a configuration file).

3 Jul 2007, 10:50 PM
#116
hubert avatar

hubert

Zen Follower

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

Re: Printable Price list :: support thread

Hello everybody,

A few days ago I asked how to add the "Add to cart button" to the pricelist.
While waiting for an answer a friend of mine begun to try do it, as you'll see we are not a PHP specialists but he said this must be a copy/paste matter.

So he did :

in
/includes/languages/english/extra_definitions/pricelist.php
he added

define('TABLE_HEADING_ADDTOCART', 'Add to cart');

at the end just before the last ?>

in
/includes/modules/pages/pricelist/header_php.php
near line 119

after
define('TEXT_PL_HEADER_LOGO', $pl_profile);
he added
eval('$pl_profile = TABLE_HEADING_ADDTOCART_' . PL_PROFILE . ';');
define('TABLE_HEADING_ADDTOCART', $pl_profile);

near line 203

After
if (PL_SHOW_SOH == 'true') {
    $colspan++;

he added

$colspan++;

near line 523

after

    if (PL_SHOW_TAX_FREE == 'true') {
        $columnsHeader .= '<td class="prcPL">' . TABLE_HEADING_PRICE_EX . PL_CURR_SYMBOL . '</td>' . "\n";

he added

$columnsHeader .= '<td>'. TABLE_HEADING_ADDTOCART . '</td>' . "\n";

And finally near line 610

after

  if (PL_SHOW_TAX_FREE == 'true') {
        $prodRow .= '<td class="' . $price_class . '">' . $products_price_ex . '</td>' . "\n";
    }

he added

$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($products_id)) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($products_id) . '</p>' : '');
              // show the quantity box
              $prodRow .='<td>' . zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($products_id), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data" target="_Cartpage " class="AddButtonBox"') . "\n" . $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($products_id)) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$products_id) . '<br />' . zen_draw_hidden_field('products_id', (int)$products_id) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT). '</form></td>';

And all this works, you get an "Add to cart button" for every product. when you clic on it, the cart is built in a new window or new tab (depends on the browser).

BUT ! I tried to make it a bit cleaner and to go as far as I can to give the pricelist author clean files so that he can validate this modification. I tried to add a confirguration key in the database and to act regarding this key.

The key I added is PL_SHOW_ADDTOCART_BUTTON
Here is the SQL code

INSERT INTO `configuration` ( `configuration_title` , `configuration_key` , `configuration_value` , `configuration_description` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` )
VALUES (
'Show Add to cart button', 'PL_SHOW_ADDTOCART_BUTTON', 'true', 'Defines if the Add to cart button is visible or not.', '33', '210', NULL , '0001-01-01 00:00:00', NULL , 'zen_cfg_select_option(array(''true'', ''false''),'
), (
NULL , '', '', '', '', '0', NULL , NULL , '0001-01-01 00:00:00', NULL , '' 

I wrapped the above modifications around "if{}" but, I don't see the new key in admin, nor the mod works. I must have an eval problem on my config key but I don't see where.

Here are the final modifications in
/includes/modules/pages/pricelist/header_php.php
line 119

eval('$pl_profile = TABLE_HEADING_ADDTOCART_' . PL_PROFILE . ';');
define('TABLE_HEADING_ADDTOCART', $pl_profile);
eval('$pl_profile = PL_SHOW_ADDTOCART_BUTTON_' . PL_PROFILE . ';');
define('PL_SHOW_ADDTOCART_BUTTON', $pl_profile);

line 204

if (PL_SHOW_ADDTOCART_BUTTON == 'true') {
    $colspan++;
}

line 523

   if (PL_SHOW_ADDTOCART_BUTTON == 'true') {
$columnsHeader .= '<td>'. TABLE_HEADING_ADDTOCART . '</td>' . "\n";
    }

line 610

    if (PL_SHOW_ADDTOCART_BUTTON == 'true') {
    $display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($products_id)) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($products_id) . '</p>' : '');
              // show the quantity box
              $prodRow .='<td>' . zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($products_id), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data" target="_Cartpage " class="AddButtonBox"') . "\n" . $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($products_id)) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$products_id) . '<br />' . zen_draw_hidden_field('products_id', (int)$products_id) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT). '</form></td>';
}

If any PHP guru could take a look at this and find the bug it would be very cool.

Thanks for help

Regards

Hubert

Here are the modified files.

3 Jul 2007, 11:15 PM
#117
paulm avatar

paulm

Totally Zenned

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

Re: Printable Price list :: support thread

Hi Hubert,

very nice :thumbsup:

I also read your other post about it, but I didn't find to the time yet to answer it correctly.

It looks like you have an error in the sql. Are you trying to update the existing sql? Or trying to create an sql file which updates an existing installation?

If you would like to add it to the exsiting sql file you should add sometiming similar (just an example!) to this:

INSERT INTO configuration ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function )
VALUES ( 'Images', 'PL_SHOW_IMAGE_1', 'false', 'If true products images are shown', @pricelistid , 210, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );
```for each profile to the sql file.

PL_SHOW_ADDTOCART_BUTTON_1 for profile 1, PL_SHOW_ADDTOCART_BUTTON_2 for profile 2 and PL_SHOW_ADDTOCART_BUTTON_3 for profile 3

In the example "210" is the sort order (where the setting is displayed in the admin compared to the other pricelist settings).

hth, it's far too late here already...
4 Jul 2007, 1:00 AM
#118
hubert avatar

hubert

Zen Follower

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

Re: Printable Price list :: support thread

Hi Paulm,

i've just changed a bit the core so that the button is sometime "Add to cart" and sometime "more info"

if (PL_SHOW_ADDTOCART_BUTTON == 'true') {
            if (zen_has_product_attributes($products_id) ) {
          $prodRow .= '<td><a href="' . zen_href_link(zen_get_info_page($products_id), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $products_id) . '" target="_Cartpage " >' . MORE_INFO_TEXT . '</a></td>';
          }else{

          $display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($products_id)) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($products_id) . '</p>' : '');
              // show the quantity box
              $prodRow .='<td>' . zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($products_id), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data" target="_Cartpage " class="AddButtonBox"') . "\n" . $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($products_id)) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$products_id) . '<br />' . zen_draw_hidden_field('products_id', (int)$products_id) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT). '</form></td>';
}
}

but that's not the big problem for now,

I found that if I trick my system by

//define('PL_SHOW_ADDTOCART_BUTTON', $pl_profile);
define('PL_SHOW_ADDTOCART_BUTTON', 'true');

Everything is fine, so I really got an eval problem.

About the sql, I added (only for profile 1 for the moment),

VALUES ( 'Show Add to cart button', 'PL_SHOW_ADDTOCART_BUTTON°1', 'true', 'If true the an Add to cart button is shown for each product.', @pricelistid , 290, NULL , 'zen_cfg_select_option(array(\'true\', \'false\'),' );

This is ok for seeing the setting in the admin profile 1 but this doesn't solve the eval problem, my system still doesn't see the value of the database field....

Thanks for help

Hubert

4 Jul 2007, 8:18 AM
#119
hubert avatar

hubert

Zen Follower

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

Re: Printable Price list :: support thread

Oh ! I think I was messing up between my test config and my live config trying to see if it works on one while doing changes on the other one....

I'll continue later...

Can someone test that mod on a test site to see if it works ?

Thanks

4 Jul 2007, 9:22 AM
#120
paulm avatar

paulm

Totally Zenned

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

Re: Printable Price list :: support thread

I think I was messing up between my test config and my live config trying to see if it works on one while doing changes on the other one....That probably explains the issue :-) The eval looks fine to me.
(I only would not add a seaprate one for the table heading, but that's not really an issue just personal preference)

An idea could be to combine the "More Info" and "Add to Cart" and put both in the same table cell maybe? Nobody wants to print either of those anyway I suppose, so those two would only be enabled in a profile not meant for printing.

Some notes about the add to cart itself:

Here $display_qty contains info about the amount of the product in the cart, but it looks like it's never echoed:

    $display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($products_id)) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($products_id) . '</p>' : '');
```If you add $display_qty to the table cell (i.e.: $prodRow .='<td>' . $display_qty .  zen_draw_form..... etc etc) it may show. I am not sure if $flag_show_product_info_in_cart_qty is available, if not you can set it to 1 or remove it's check.

And another minor issue: ```
target="_Cartpage "
```looks like an invalid HTML parameter. It probably won't break anything as it is, but I would replace it with:  ```
target="_blank"

I think I should have unsubscribed form this thread earlier, after I unsubscribed finally there is some interesting feedback again... :smartalec: