Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 52
  1. #41
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    Without a numeric value to the decimal places the currency breaks ... putting the 0 there fixes this ...

    On adding more master_categories_id you could use:
    Code:
    if (zen_get_products_category_id($product_id) == 58 || zen_get_products_category_id($product_id) == 32 || zen_get_products_category_id($product_id) == 49) {
    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!

  2. #42
    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
    Without a numeric value to the decimal places the currency breaks ... putting the 0 there fixes this ...

    On adding more master_categories_id you could use:
    Code:
    if (zen_get_products_category_id($product_id) == 58 || zen_get_products_category_id($product_id) == 32 || zen_get_products_category_id($product_id) == 49) {

    i added one more mastercategory , is this good this way?

    // 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 || zen_get_products_category_id($product_id) == 4) {
    return '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . TEXT_CALL_FOR_PRICE . '</a>';
    }
    // eof: show room only for master_categories_id 58
    // eof: show room only for master_categories_id 4


    No syntax error was displayed, but didnt know whether to add : // eof: show room only for master_categories_id 4
    as above

    Thanks

    Nandor

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

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

    That is fine ...

    The line:
    Code:
    // eof: show room only for master_categories_id 4
    is just a comment in the code, lines that start with //, are just to remind you what you have changed in the code ...
    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. #44
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    NOTE: That master_categories_id of 4 is not ... or should not ... be a Product's master_categories_id ... 4 is a Top Level Category you might want to check that you are using the right categories_id for the master_categories_id ...
    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!

  5. #45
    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
    NOTE: That master_categories_id of 4 is not ... or should not ... be a Product's master_categories_id ... 4 is a Top Level Category you might want to check that you are using the right categories_id for the master_categories_id ...

    And how can i change/check these ids?

    thanks

    Nandor

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

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

    Go to your Zen Cart Admin and edit the Product ...

    What do you see for:
    Product Master Category:
    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!

  7. #47
    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
    Go to your Zen Cart Admin and edit the Product ...

    What do you see for:
    Product Master Category:

    At ID 4 (category ID ) at product i see : Product Master Category: ID# 59 Mugs
    I suppose its not good. Now i have to check all of the products/cat. and rewrite the master category?

    thanks

    Nandor

  8. #48
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    ID 4 cannot be a master_categories_id ...

    On your site, I see that:
    /index.php?main_page=index&cPath=4

    holds a Category ...

    Categories hold Categories or Products but not both ...

    If I go down further, I see:
    /index.php?main_page=product_info&cPath=4_59&products_id=134

    which tells me there is 1 Product in categories_id 4 which is products_id 134 ... so Product Porcelain Cup with plate is the only Product right now in categories_id 59 and that should have a master_categories_id 59, not 4 ...
    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!

  9. #49
    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
    ID 4 cannot be a master_categories_id ...

    On your site, I see that:
    /index.php?main_page=index&cPath=4

    holds a Category ...

    Categories hold Categories or Products but not both ...

    If I go down further, I see:
    /index.php?main_page=product_info&cPath=4_59&products_id=134

    which tells me there is 1 Product in categories_id 4 which is products_id 134 ... so Product Porcelain Cup with plate is the only Product right now in categories_id 59 and that should have a master_categories_id 59, not 4 ...

    How/Where can i change master categories?

  10. #50
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    At ID 4 (category ID ) at product i see : Product Master Category: ID# 59 Mugs
    I suppose its not good. Now i have to check all of the products/cat. and rewrite the master category?
    If you already see that its master_categories_id is 59, you do not need to change anything but the code:
    Code:
    if (zen_get_products_category_id($product_id) == 58 || zen_get_products_category_id($product_id) == 59) {
    as 59 is the master_categories_id for the Product, not 4 ...
    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!

 

 
Page 5 of 6 FirstFirst ... 3456 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