Page 2 of 38 FirstFirst 123412 ... LastLast
Results 11 to 20 of 377
  1. #11
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Product Extra Fields for text, pdfs and flash

    Quote Originally Posted by delia View Post
    fast - but not totally accurate, huh?

    now it works:
    - -
    Yes, well, we will forgive you that. ;) After all this is open-source and by co-operating we all will benefit.

    By the way, would you have any knowledge how to hide a part of description or totally if you are not logged in?
    I have been asking it elsewhere here but didn't get an answer from anybody. I think it is technically somehow related to this kind of extra descriptions.
    The idea is that the prices are hidden (like standard ZC lets you to set up) but in this case part of the "tailored" price info would be also in description, so that should be hidden too if customer is not authorised to see that part of the description.

    I think it needs only to know which file is controlling this hiding for the prices and then implement the same conditions for the description or part of it.

    Elli
    I may be blond but at least I found Zen.

  2. #12
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,297
    Plugin Contributions
    22

    Default Re: Product Extra Fields for text, pdfs and flash

    The following code controls the showroom - no prices, I think. Just use that with the part of the extra fields you want hidden. You can't use it with part of the regular description.

    I found another error in the template file by the way. If your file is working I wouldn't worry about it but I have updated the zip zile on my server.

    Full example using the extra_field:
    PHP Code:
    if (CUSTOMERS_APPROVAL == and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      
    // do nothing
    }
    else {
    if(isset(
    $extra_field)) { 
        echo 
    '<li>'.$extra_field '</li>';
    }

    The full-time Zen Cart Guru. WizTech4ZC.com

  3. #13
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Product Extra Fields for text, pdfs and flash

    Aren't those just admin settings or values? You would still need to check if the particular customer was logged in with
    PHP Code:
    if ($_SESSION['customer_id']) {//logged in
      //do something


  4. #14
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,297
    Plugin Contributions
    22

    Default Re: Product Extra Fields for text, pdfs and flash

    I'm assuming that's already happening since that is already in the file. Of course, I haven't tested this.
    The full-time Zen Cart Guru. WizTech4ZC.com

  5. #15
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Product Extra Fields for text, pdfs and flash

    OK, if that test is already done earlier in the file section, it's probably good to go.

  6. #16
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Product Extra Fields for text, pdfs and flash

    Quote Originally Posted by delia View Post
    The following code controls the showroom - no prices, I think. Just use that with the part of the extra fields you want hidden. You can't use it with part of the regular description.

    I found another error in the template file by the way. If your file is working I wouldn't worry about it but I have updated the zip zile on my server.
    Thanks for the tips. I will look on that.
    I tried the previous zip and when pushing the category link in the sidebox the whole page went blank.
    I'm gonna test now if your fix helps on that or it can be also issued by the earlier installation of the "Extra description files". There may be some files left from that installation that hasn't been overwritten or removed and are causing the conflict.
    I may be blond but at least I found Zen.

  7. #17
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,297
    Plugin Contributions
    22

    Default Re: Product Extra Fields for text, pdfs and flash

    The full-time Zen Cart Guru. WizTech4ZC.com

  8. #18
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Product Extra Fields for text, pdfs and flash

    ThanksDelia,

    Look froward to installing it.

  9. #19
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Product Extra Fields for text, pdfs and flash

    I have build a test webshop just to try this Delia's extra fields there first before installing it to the real shop.
    I ran to a lots of problems and thus I had to take a pause and make other productive things for a while.

    The sql in the pack has been installed both with and without prefix to the database, just to try if any of them should work but it didn't. The new database table remains empty.

    The error that comes when I open the admin product info form:
    Warning: reset() [function.reset]: Passed variable is not an array or object in /home/myserver/public_html/webshop/admin/includes/classes/object_info.php on line 29

    Warning: Variable passed to each() is not an array or object in /home/myserver/public_html/webshop/admin/includes/classes/object_info.php on line 30
    Product in Category: "Prefix category"

    I created new category called "Prefix category" after installing the database table with the prefix (first was without) and then I made new products there but just doesn't save those product ids either. So I can't get an example either how I should fix the previous test product ids.

    The files should all be in the server in their right place and I checked that many times.
    In the product form the master category doesn't exist at all, so not even zero, just nothing like this "Product Master Category: ID# "
    Is that making any difference here?

    It would be just nice to find a solution for this.

    Elli
    Last edited by ellivir; 7 Jul 2009 at 09:19 AM.
    I may be blond but at least I found Zen.

  10. #20
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Product Extra Fields for text, pdfs and flash

    Now I got the extra fields installed. If it helps anybody, the problem was that there was still traces of the module "PRODUCT_EXTRA_DESCRIPTION_EXTRA" (original extra field module by "aetas") in my test webshop. I went thoroughly through all the files that I should removed or replace from the standard Zencart files and then I put again the ones made by Delia and I started to get it working.

    Now I will test how to get one of these extra fields hidden when the price is hidden as well.
    I may be blond but at least I found Zen.

 

 
Page 2 of 38 FirstFirst 123412 ... LastLast

Similar Threads

  1. Replies: 1
    Last Post: 10 Sep 2013, 10:09 PM
  2. Can I add two extra fields for inputting time and date delivery wanted?
    By Desjames in forum Managing Customers and Orders
    Replies: 2
    Last Post: 20 Jun 2010, 08:56 PM
  3. Extra pages and flash movie
    By g.nencini in forum General Questions
    Replies: 1
    Last Post: 11 Oct 2009, 11:51 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR