Results 1 to 10 of 741

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Location
    Perth, Western Australia, Australia
    Posts
    781
    Plugin Contributions
    0

    red flag Re: Printable Price list :: support thread

    Quote Originally Posted by paulm View Post
    It does show on a default install, so I assume the logo file has been removed or something. I can not reproduce this issue. The file is called logo.gif and it normally can be found in one of the subdirectories of includes/templates/
    I managed to get logo.gif to appear. The problem was my logo name has been changed to a different one.

    Quote Originally Posted by paulm View Post
    About hiding the images within your descriptions: I took a quick look, but the pricelist images do not have a separate wrapper or class, so (indeed) css edits only won't work if your own images can't be identified either.
    If you change this (in modules/pricelist/header_php.php)

    The "pricelist images" will have their own class, and then you should be able to hide your own (and still display the pricelist images) using css.

    (Other changes to this same part of the code will probably be needed to change the layout to your needs.)
    I upgraded to the latest version. The header_php.php code has already been changed to what you asked me to change. So then I repeated putting img {display: none;} code at the aforementioned places. The same problem occurred. I can't get hide the images within the description and still display the pricelist images.

    Also, how do I show partial description only as some of them are rather long? Is it possible to truncate them after certain length?

    Thank you for your help :)
    The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan


  2. #2
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Printable Price list :: support thread

    Yeah, I imagined some of the changes would be probably be usefull for me too some day, and then I got carried away and I decided to update after all

    Quote Originally Posted by dealbyethan.com View Post
    I upgraded to the latest version. The header_php.php code has already been changed to what you asked me to change. So then I repeated putting img {display: none;} code at the aforementioned places. The same problem occurred. I can't get hide the images within the description and still display the pricelist images.
    I do not see the new .imgPL class when I look at your site (so I assume the latest is installed elsewhere) but it should work like this:
    Code:
    /* hide all images in .imgDescrPL */
    .imgDescrPL img {
    display: none;
    }
    /* make .imgPL images visible again */
    .imgDescrPL img.imgPL {
    display: inline;
    }

    Quote Originally Posted by dealbyethan.com View Post
    Also, how do I show partial description only as some of them are rather long? Is it possible to truncate them after certain length?
    By default the descriptions are truncated @media print only. Or actually the descriptions are not really truncated, but partially hidden (using css). The advantage is that the HTML (and thus the basic layout) of the descriptions is preserved this way. A disadvantage is that the descriptions are cut off without a "more info available" text (or somehing like that) that indicates they are cut off.

    A problem with real truncating (which is not supported by the pricelist) is that you need to strip most HTML to keep the code valid, and to make sure it's really truncated to the required size you even need to strip all HTML and change the font to non proportional. And then the descriptions will become one long, usually almost unreadable, line.

    Anyway I am note sure what you want and if I can help, but hopefully the above clarifies how it currently works and why.

  3. #3
    Join Date
    Dec 2005
    Location
    Perth, Western Australia, Australia
    Posts
    781
    Plugin Contributions
    0

    Default Re: Printable Price list :: support thread

    /* hide all images in .imgDescrPL */
    .imgDescrPL img {
    display: none;
    }
    /* make .imgPL images visible again */
    .imgDescrPL img.imgPL {
    display: inline;
    }
    I still still trying to figure out where to put this code because it doesn't achieve what I want. If this can be done, I will then want to truncate description. I believe this can be done. Standard zencart can show list all products this way, i.e. no images in description and truncated description.
    The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan


  4. #4
    Join Date
    Dec 2005
    Location
    Perth, Western Australia, Australia
    Posts
    781
    Plugin Contributions
    0

    Default Re: Printable Price list :: support thread

    The following code might be useful to help us figure out how to make description truncated. It's taken from tpl_modules_products_all_listing.php. What do you think?

    Code:
    if (PRODUCT_ALL_LIST_DESCRIPTION != '0') {
            $disp_text = zen_get_products_description($products_all->fields['products_id']);
            $disp_text = zen_clean_html($disp_text);
    
            $display_products_description = stripslashes(zen_trunc_string($disp_text, 150, '<a href="' . zen_href_link(zen_get_info_page($products_all->fields['products_id']), 'products_id=' . $products_all->fields['products_id']) . '"> ' . MORE_INFO_TEXT . '</a>'));
          } else {
            $display_products_description = '';
          }
    The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan


  5. #5
    Join Date
    Dec 2005
    Location
    Perth, Western Australia, Australia
    Posts
    781
    Plugin Contributions
    0

    red flag Re: Printable Price list :: support thread

    Success! :) :) :)

    Managed to achieve what I want.
    - Display description without within images.
    - Display truncated description with more info link at the end.
    - Hyperlink thumbnail product image.

    There is one more thing I would like to do...
    Is it possible to show subcategories in the dropdown menu?
    The Team Behind DealByEthan.com | Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. Connect with us: https://linktr.ee/dealbyethan


  6. #6
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Printable Price list :: support thread

    Quote Originally Posted by dealbyethan.com View Post
    There is one more thing I would like to do...
    Is it possible to show subcategories in the dropdown menu?
    That is possible (by changing some lines of code). The only thing is that the categories that have subcats won't show products anymore then (the pricelist will just show the "no products found" message). So if you show the list to your customers that might confuse them.


    @highlander2:
    Every second page printed is blank. The list continues uninterupted on the page after that. Why?
    That happens when your available papersize height (height minus margins etc) is less than the height set in the stylesheet.


    Maybe I will release another update soon which will add an admin configuration for the subcategories dropdown and ad admin configuration for the paper height setting.

    The only real solution to the memory problems is to get a limited number of products of course. But I am am not sure if/when I will get to that (a total rewrite would probably the best solution, the way this currently works is a mess...).

  7. #7
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Printable Price list :: support thread

    In my case we don't want to show the pricelist to customers. We want to use it to generate a hard copy catalog to take to shows. My sub-cats should be small enough to avoid the memory problem.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 

Similar Threads

  1. Printable Price List by Paulm
    By helshop in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 25 Jan 2007, 12:27 PM
  2. printable price list
    By sparxs in forum All Other Contributions/Addons
    Replies: 26
    Last Post: 1 Nov 2006, 03:18 PM
  3. printable price list
    By Alik in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Sep 2006, 03:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg