Results 1 to 10 of 1125

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by colinr View Post
    Could this module be modified to provide individual product codes as well as stock levels?

    I have tried using the Attributes Modelnumbers contrib by helix, but is (still) in beta and seems very flakey.

    ColinR
    I added an additional column in the database for product attribute product codes. I called it attribute_skus. I have not yet figured out how to make this editable in admin, but it is pretty easy to add the model #'s in PHPmyAdmin. I was able to get the model #'s to display in the same table in admin though so that I am able to verify I added them to the correct variant. If you would like this code I can provide it.

    I have not decided if I will go any further with this as my need has already been fulfilled. I just need to be able to import and export inventory using my company's inventory program. I would imagine one could put this info on invoices and shopping cart pages as well pretty easily.

  2. #2
    Join Date
    Jun 2005
    Posts
    65
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    I installed the stock_by_attributes_4-7MULTIADD (zc 1.38).
    But as soon as I edit a product, the product description gets deleted
    Anyone know how this is possible?

  3. #3

    Default Re: Stocks by attributes

    Quote Originally Posted by flowerchild5 View Post
    I added an additional column in the database for product attribute product codes. I called it attribute_skus. I have not yet figured out how to make this editable in admin, but it is pretty easy to add the model #'s in PHPmyAdmin. I was able to get the model #'s to display in the same table in admin though so that I am able to verify I added them to the correct variant. If you would like this code I can provide it.
    Yes please! That would be a big help.

    ColinR

  4. #4
    Join Date
    Mar 2009
    Posts
    31
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by flowerchild5 View Post
    I added an additional column in the database for product attribute product codes. I called it attribute_skus. I have not yet figured out how to make this editable in admin, but it is pretty easy to add the model #'s in PHPmyAdmin. I was able to get the model #'s to display in the same table in admin though so that I am able to verify I added them to the correct variant. If you would like this code I can provide it.

    Quote Originally Posted by colinr View Post
    Yes please! That would be a big help.

    ColinR
    I added the following code to admin/products_with_attributes_stock.php

    Changed
    PHP Code:
    echo '<th class="stockAttributesHeadingStockId">'.PWA_STOCK_ID.'</th><th class="stockAttributesHeadingVariant">'.PWA_VARIANT.'</th><th class="stockAttributesHeadingQuantity">'.PWA_QUANTITY_IN_STOCK.'</th><th class="stockAttributesHeadingEdit">'.PWA_EDIT.'</th><th class="stockAttributesHeadingDelete">'.PWA_DELETE.'</th>'

    To

    PHP Code:
    echo '<th class="stockAttributesHeadingStockId">'.PWA_STOCK_ID.'</th><th class="stockAttributesHeadingVariant">'.PWA_VARIANT.'</th><th class="stockAttributesHeadingSku">'.PWA_ATTRIBUTES_SKU.'</th><th class="stockAttributesHeadingQuantity">'.PWA_QUANTITY_IN_STOCK.'</th><th class="stockAttributesHeadingEdit">'.PWA_EDIT.'</th><th class="stockAttributesHeadingDelete">'.PWA_DELETE.'</th>'
    and added


    PHP Code:
    echo '<td class="stockAttributesCellSku">'."\n";
                echo 
    $attribute_products->fields['attributes_sku'];
                echo 
    '</td>'."\n"
    right after

    PHP Code:
    sort($attributes_output);
                echo 
    implode("\n",$attributes_output); 



    and to admin/includes/languages/english/products_with_attributes_stock.php

    I added
    PHP Code:
    define('PWA_ATTRIBUTES_SKU''Attributes SKU'); 
    and to admin/includes/stock_attributes.css

    I changed

    PHP Code:
    .stockAttributesHeadingStockId,
    .
    stockAttributesHeadingVariant,
    .
    stockAttributesHeadingQuantity,
    .
    stockAttributesHeadingEdit,
    .
    stockAttributesHeadingDelete {
        
    border-bottom1px solid #ccc;
        
    width:18%;

    to

    PHP Code:
    .stockAttributesHeadingSku,
    .
    stockAttributesHeadingStockId,
    .
    stockAttributesHeadingVariant,
    .
    stockAttributesHeadingQuantity,
    .
    stockAttributesHeadingEdit,
    .
    stockAttributesHeadingDelete {
        
    border-bottom1px solid #ccc;
        
    width:18%;

    and changed

    PHP Code:
    .stockAttributesCellStockId,
    .
    stockAttributesCellVariant,
    .
    stockAttributesCellQuantity,
    .
    stockAttributesCellEdit,
    .
    stockAttributesCellDelete {
        
    border-bottom1px dotted #ccc;

    to

    PHP Code:
    .stockAttributesCellSku,
    .
    stockAttributesCellStockId,
    .
    stockAttributesCellVariant,
    .
    stockAttributesCellQuantity,
    .
    stockAttributesCellEdit,
    .
    stockAttributesCellDelete {
        
    border-bottom1px dotted #ccc;


  5. #5
    Join Date
    Jun 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    total noob question:

    just installed stock with attributes mod 4.7.ajax over zencart 1.3.8a using barebones template that's i've customized a little.

    when choosing Catalog > Products with Attributes Stock i get a blank page, except for this:

    "No input file specified."

    i'm sure it's something easy and obvious, but i'm missing it. duh.

    thanks for your help.

  6. #6
    Join Date
    Jun 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    okay, think i got it.

    thanks anyway.

  7. #7
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Stocks by attributes

    Quote Originally Posted by jdhiler View Post
    okay, think i got it.

    thanks anyway.
    Wanna share what you did.. it might help others who may be reading this thread..

  8. #8
    Join Date
    May 2009
    Posts
    25
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    I have just tried to install the stock by attributes mod. I ran the stock_attribute.sql through Admin-Tools-Install SQL Patches. However, I do not have the "Products with Attributes Stock" option under Admin-Catalog. I logged into my web host Cpanel and see the zen_products_with_attributes_stock table was created. Am I missing a step?

    Thanks for any guidance.

  9. #9
    Join Date
    Jun 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Stocks by attributes

    Quote Originally Posted by DivaVocals View Post
    Wanna share what you did.. it might help others who may be reading this thread..
    the only thing is did is reinstall the files, one by one instead of that sketchy way of dropping the entire folder on the install, which doesn't confirm exactly what gets copied where... at least not in Cyberduck.

 

 

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

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