Page 11 of 113 FirstFirst ... 9101112132161111 ... LastLast
Results 101 to 110 of 1125
  1. #101
    Join Date
    May 2006
    Posts
    310
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by buzzville
    Well, I've got the units set to .5 yards for all items sold that way, and it works fine for products without attributes. I've looked in the files for the stock by attributes mod for a decimal or unit designation, but I haven't found anything. But, I probably have no idea what I'm looking for! I'm sure there must be a way to adjust the unit for the attributes - I'm just not savvy enough to know where that is...
    Apologies if I'm stating the obvious :)
    But for products with atttributes and units of .5 yards...

    if you have 10 yards, then you need to state that you have 20 of the item...
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

  2. #102
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Stocks by attributes

    is the quantity field in the database set to int or float ? int requires whole numbers, whereas float allows decimals of varying precision
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #103
    Join Date
    May 2006
    Posts
    98
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by DrByte
    is the quantity field in the database set to int or float ? int requires whole numbers, whereas float allows decimals of varying precision
    *applause* Thank you DrByte! That seems to have done the trick! Thanks for helping those with zero skills to figure this stuff out!

  4. #104
    Join Date
    May 2005
    Posts
    535
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by MikeyG
    could some one please explain how the stock_attributes column in the table product_with_attribute_stock can be translated back to work out the name (value) of the attribute option.


    MG

    Sorry to bounce but would really like some one to explain how this works so I can use it in other ways to manage stock.



    Thanks

    MG

  5. #105
    Join Date
    May 2005
    Location
    Sweden
    Posts
    151
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Hey all!

    I'm just about to upgrade my ZC from 1.2.7 to 1.3.0.2.
    Everything has been running smoothly but now I've met some hard resistance.

    I've downloaded this contrib and installed it without any problems.
    But now it fetches ALL attributes on each product who has attributes.
    As far as I can see the package is missing attributes_controller.php

    Am I right? Anyone who could supply me with the file?

  6. #106
    Join Date
    May 2005
    Location
    Sweden
    Posts
    151
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by Svanis
    attributes_controller.php
    That should be "main_template_vars_attributes.php"

  7. #107
    Join Date
    May 2006
    Posts
    98
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by Bunster
    Just to follow up on my previous post.

    I have managed to convince my cart that it should display the stock level warning in red by editing the following piece of code in includes\functions\function_lookups.php

    // modified to include attributes
    function zen_check_stock($products_id, $products_quantity, $attributes = '') {

    $stock_left = zen_get_products_stock($products_id, $attributes) - $products_quantity;
    $out_of_stock = '';


    if ($stock_left < 0 && !is_array($attributes)) {
    $out_of_stock = '<br/><span class="alert bold"><span class="markProductOutOfStock">' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '</span>';
    }
    elseif ($stock_left < 0 && is_array($attributes)) {
    $out_of_stock = '<br/><span class="alert bold"><span class="markProductOutOfStock">' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '</span>';
    }

    return $out_of_stock;
    }
    Hi Bunster,

    I'm having the same problem and tried this fix, but it's still not working for me... I can either get the insufficient stock message for products with attributes or products without, but not both at the same time. Is this still working for you? I'm starting to think this mod is hurting me more than it's helping me...

  8. #108
    Join Date
    Apr 2006
    Location
    Labuan Island
    Posts
    361
    Plugin Contributions
    2

    Default Stocks by attributes

    Quote Originally Posted by buzzville
    Hi Bunster,

    I'm having the same problem and tried this fix, but it's still not working for me... I can either get the insufficient stock message for products with attributes or products without, but not both at the same time. Is this still working for you? I'm starting to think this mod is hurting me more than it's helping me...
    try my fix on previous post within the same thread; http://www.zen-cart.com/forum/showpo...7&postcount=39
    [FONT=Comic Sans MS]"Whether you think you can, or you think you can't... YOU ARE RIGHT."[/FONT]
    [FONT=Comic Sans MS]GOOD LUCK !!![/FONT]

  9. #109
    Join Date
    Jan 2006
    Posts
    40
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Hi Buzzvile,

    yes as tajul_ashyqin said you will need to add that piece of code as well.
    But it still will not display your available stock so your customers will have to guess the magic number for available stock.

    To be honest I have now given up trying to get this to function as I want it to and am now looking for alternatives.

    I believe this functionality will be in ZCv1.4 but it'll be a while before that see's the light of day, the dev team have more than enough on their plate to be getting on with so no point in pestering them.

    good luck

    Bunster

  10. #110
    Join Date
    May 2006
    Posts
    98
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Thanks Tajul_ashykin and Bunster. It was the functions_lookup.php file that was the trick. I kept changing one section of code, but missed a second section that did the trick. Now the low stock message is working for both types of stock... I just need to pay a little more attention! Now to see if I can figure out how to get the quantities to show...

 

 
Page 11 of 113 FirstFirst ... 9101112132161111 ... LastLast

Similar Threads

  1. v139h Stocks of certain products disappearing automatically
    By Lowwi in forum General Questions
    Replies: 4
    Last Post: 11 Aug 2015, 09:09 PM
  2. Installing Stocks by Attribute
    By dragon03kf in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 26 Oct 2008, 07:42 PM
  3. Stocks by attributes
    By hcd888 in forum General Questions
    Replies: 1
    Last Post: 12 May 2008, 08:52 AM
  4. Multiple stocks per product
    By jaycode in forum General Questions
    Replies: 4
    Last Post: 5 Aug 2007, 11:55 AM
  5. Products with attribute stocks
    By Svanis in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 5 Jul 2006, 03:19 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