Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 52
  1. #21
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: Is it possible to disable buying only in one category?

    Quote Originally Posted by Ajeh View Post
    You have the code in the wrong place ...

    Remove the new code that I gave you:
    Code:
    // bof: show room only for master_categories_id 58
    echo 'Products ID: ' . $product_id . ' Master Cat: ' . zen_get_products_category_id($product_id) . '<br>';
      if (zen_get_products_category_id($product_id) == 58) {
        return '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . TEXT_CALL_FOR_PRICE . '</a>';
      }
    // eof: show room only for master_categories_id 58
    and go lower in the code and find the code that starts with:
    Code:
        }
    
        $button_check = $db->Execute("select product_is_call, products_quantity from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");
        switch (true) {
    // cannot be added to the cart
    Put it just below the } and above the line starting with $button_check so it reads:
    Code:
        }
    
    // bof: show room only for master_categories_id 58
    echo 'Products ID: ' . $product_id . ' Master Cat: ' . zen_get_products_category_id($product_id) . '<br>';
      if (zen_get_products_category_id($product_id) == 58) {
        return '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . TEXT_CALL_FOR_PRICE . '</a>';
      }
    // eof: show room only for master_categories_id 58
    
    
        $button_check = $db->Execute("select product_is_call, products_quantity from " . TABLE_PRODUCTS . " where products_id = '" . (int)$product_id . "'");
        switch (true) {
    // cannot be added to the cart

    It works!!!!
    Thanks!!!

    I'd have two more questions regarding this issue :

    Click image for larger version. 

Name:	screen showroom.jpg 
Views:	47 
Size:	51.9 KB 
ID:	12315

    Why does it show this :Products ID: 133 Master Cat: 58 - How can i make this dissapear or prevent showing this info. in cas of other items later?

    In case i'd like to have two or three other categories like this, for showroom only, do i only have to write the other category id's next to this one? Or doe it work differently?

    Thanks in advance

    Nandor

  2. #22
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: Is it possible to disable buying only in one category?

    Quote Originally Posted by Nandor View Post
    It works!!!!
    Thanks!!!

    I'd have two more questions regarding this issue :

    Click image for larger version. 

Name:	screen showroom.jpg 
Views:	47 
Size:	51.9 KB 
ID:	12315

    Why does it show this :Products ID: 133 Master Cat: 58 - How can i make this dissapear or prevent showing this info. in cas of other items later?

    In case i'd like to have two or three other categories like this, for showroom only, do i only have to write the other category id's next to this one? Or doe it work differently?

    Thanks in advance

    Nandor


    I realized in the meantime that after this modification at all products the Products ID...Master Cat:... are shown,
    no prices can be seen at the other products (the ones that should be add this to my cart) and under add to cart the word : details isnt translated when switching to german or hungarian. Unless i am mistaken the "detail" word wasnt even there before.
    I dont know what all these three things have to do with this one modification....

    thanks

    Nandor

  3. #23
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Is it possible to disable buying only in one category?

    Did you try going back and comment out the test for the echo to show the products_id and master cat that was just there for testing?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #24
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: Is it possible to disable buying only in one category?

    Quote Originally Posted by Ajeh View Post
    Did you try going back and comment out the test for the echo to show the products_id and master cat that was just there for testing?
    you mean this line (new coding that i pasted):

    echo 'Products ID: ' . $product_id . ' Master Cat: ' . zen_get_products_category_id($product_id) . '<br>';

    without : // or with?

    thanks

    Nandor

  5. #25
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: Is it possible to disable buying only in one category?

    Quote Originally Posted by Nandor View Post
    you mean this line (new coding that i pasted):

    echo 'Products ID: ' . $product_id . ' Master Cat: ' . zen_get_products_category_id($product_id) . '<br>';

    without : // or with?

    thanks

    Nandor


    I did it with //echo...

    Products ID...Master Cat:... - dissapeared

    Details word still shown in english, in case of all three languages

    And the biggest problem is that the prices cant be seen in HUf. Its ok in Euro.

    thanks

    Nandor

  6. #26
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: Is it possible to disable buying only in one category?

    Quote Originally Posted by Nandor View Post
    I did it with //echo...

    Products ID...Master Cat:... - dissapeared

    Details word still shown in english, in case of all three languages

    And the biggest problem is that the prices cant be seen in HUf. Its ok in Euro.

    thanks

    Nandor

    Hello Ajeh!

    Me again. I put back the original functions_general.php and the HUF prices still dont show.
    Then i put back the modified functions_general.php again and of course the HUF prices still cant be seen. (or prices in Hungarian language)
    HAve no idea what could have happened.

    thanks

    Nandor

  7. #27
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Is it possible to disable buying only in one category?

    You should just need to comment out:
    Code:
    // echo 'Products ID: ' . $product_id . ' Master Cat: ' . zen_get_products_category_id($product_id) . '<br>';
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #28
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: Is it possible to disable buying only in one category?

    Quote Originally Posted by Ajeh View Post
    You should just need to comment out:
    Code:
    // echo 'Products ID: ' . $product_id . ' Master Cat: ' . zen_get_products_category_id($product_id) . '<br>';


    If it looks like this :

    }

    // bof: show room only for master_categories_id 58
    echo 'Products ID: ' . $product_id . ' Master Cat: ' . zen_get_products_category_id($product_id) . '<br>';
    if (zen_get_products_category_id($product_id) == 58) {
    return '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . TEXT_CALL_FOR_PRICE . '</a>';
    }

    no prices in HUF and this is displayed at categories and products roducts ID: 127 Master Cat: 53
    Products ID: 128 Master Cat: 53 Products ID: 133 Master Cat: 58...etc


    if it looks like this :

    }

    // bof: show room only for master_categories_id 58
    //echo 'Products ID: ' . $product_id . ' Master Cat: ' . zen_get_products_category_id($product_id) . '<br>';
    if (zen_get_products_category_id($product_id) == 58) {
    return '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . TEXT_CALL_FOR_PRICE . '</a>';
    }

    no prices displayed in HUF either, these dissapear : roducts ID: 127 Master Cat: 53
    Products ID: 128 Master Cat: 53 Products ID: 133 Master Cat: 58...etc


    I suppose the HUF prices problem occured at the same time when i did the functions_general.php rewrite, because didnt do anything else at that time.
    Dou you have any suggestion what this could be?

    thanks

    Nandor

  9. #29
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Is it possible to disable buying only in one category?

    What are your currency settings for it?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #30
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: Is it possible to disable buying only in one category?

    Quote Originally Posted by Ajeh View Post
    What are your currency settings for it?

    Did you mean this? :

    Click image for larger version. 

Name:	currencysett..jpg 
Views:	33 
Size:	53.1 KB 
ID:	12327

    thanks

    Nandor

 

 
Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. v150 Buying using both Discount Coupon and Gift Voucher - Disable One?
    By PetleyJ in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 5 May 2012, 02:48 PM
  2. Replies: 1
    Last Post: 19 Aug 2008, 05:15 AM
  3. Inventory only in one Category is it possible
    By Dashizna in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 19 Mar 2007, 01:47 AM
  4. Only one product type in list; only in one category. Why?
    By whitefael in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 7 Jan 2007, 06:13 PM

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