Page 33 of 360 FirstFirst ... 2331323334354383133 ... LastLast
Results 321 to 330 of 3592
  1. #321
    Join Date
    Nov 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    hello,
    I am setting up a new store with ZenCart 1.3.7 and have installed the attributeStock3.01.1 (by danielcor). Everything is working fine on the backend and we can assign quantities to the attributes for each product. However, on the product pages, the dropdown boxes are empty (even though stock is non-zero). I've got all of the files for the module uploaded into the proper folder names, etc.

    Does anyone know how to fix this and if there is a newer version of this module that might help? Thanks,

    rian_c

  2. #322
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Quote Originally Posted by rogerh View Post
    You lost me here... what "extra step"? Backup files? Oh, do you mean the ones I have named "OLD"? I don't understand how those are being executed.
    The construction of a Zen Cart page is a very complex business. The control code whizzes round your site picking up components from all over the place. In some places it just picks up files that match specific naming conventions, in others it picks up everything in a relevant folder.

    For this reason it is dangerous to leave backup files mixed in with your live files. Zen Cart doesn't have any logic to tell it that the insertion of OLD into a filename means that you don't want it executed.

    By all means keep backups, but keep them separate from your live (or in this case development) site.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #323
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Quote Originally Posted by rian_c View Post
    hello,
    I am setting up a new store with ZenCart 1.3.7 and have installed the attributeStock3.01.1 (by danielcor). Everything is working fine on the backend and we can assign quantities to the attributes for each product. However, on the product pages, the dropdown boxes are empty (even though stock is non-zero). I've got all of the files for the module uploaded into the proper folder names, etc.

    Does anyone know how to fix this and if there is a newer version of this module that might help? Thanks,

    rian_c
    Sorry Rian, but this is the support thread for Stock by Attributes not Danielcor's attributeStock (I don't know of any support for the mod that you are using).

    All I can tell you is that the module that you are using is a fairly recent update, and I believe that you have the latest version. However, I also believe that the update, like the original was developed for an earlier version of Zen Cart and anything to do with attribute stock is likely to be very sensitive to precisely matching mod versions with the version of Zen Cart for which they were developed.

    Anybody know differently?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #324
    Join Date
    Nov 2007
    Posts
    54
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    Alright, another stock-by-attribute question -- unfortunately I think I might already know the answer, but I want to double-check!

    I have products with multiple attributes. Can I stock by only one of those attributes?

    For example, we have titanium barbells in different lengths. Our stock number should be associated with the length. We also, however, custom-anodize these pieces, so we have an attribute drop-down for titanium color options. Is there a way to stock by the length, but NOT by the color?

  5. #325
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    Quote Originally Posted by aesthetics View Post
    I have products with multiple attributes. Can I stock by only one of those attributes?
    Unfortunately not.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #326
    Join Date
    Feb 2004
    Posts
    1,278
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    I didn't realize that every product had to have a quantity when I installed this mod.

    Having a store with too many products with lots of attributes allready makes this mod to hard to deal with.

    How can I either,

    1) Make it so that everything defaults to a high quantity

    or

    2) Uninstall this mod - or at least make it so that it doesn't make all of my products out of stock anymore.

    One thought I was thinking of if it cannot be uninstalled is allow checkout if its out of stock and delete the Red box that says so... If so, which files do I edit?

  7. #327
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Quote Originally Posted by milobloom View Post
    I didn't realize that every product had to have a quantity when I installed this mod.
    Every product has to have a quantity in Zen Cart, whether you have this mod installed or not, even if that quantity is zero.

    Are you using a version of this mod prior to 4.6 when you needed to enter attribute stock for each product that had attributes or else the product stock was treated as zero. If so, you may want to upgrade, because that's no longer the case. Now you enter attribute stock only for those products where you want to manage stock at attribute level and then only for those attribute combinations that are non-zero.

    However, if you want to uninstall it, a list of the files that have been overwritten is included in the Stock by Attribute readme and on the Wiki page specifically so that you know which ones to replace from your original Zen Cart release package.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #328
    Join Date
    Feb 2004
    Posts
    1,278
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    Oh. ok that should have been obvious.

    Thanks.

  9. #329
    Join Date
    Aug 2007
    Posts
    52
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+

    70 colors, 9 sizes, and various other customization attributes; what do you get when you mix all these together, and multiply them by a few hundred products?

    Answer: A million, trillion, zillion combinations, that must be entered one at a time.

    Aside from hiring 3,000 third-world laborers to enter all these combinations, what are my options? I don't actually need (or even want) to track stock, I simply need to keep my customers from purchasing a few unavailable combinations.

    For an example, I want to sell a t-shirt. This t-shirt comes in many different colors, sizes Small through 5XL. However, the color "Eggplant" is only available up to 3XL.

    How can I keep people from buying 4XL and 5XL Eggplant t-shirts, which simply do not exist?

    I'm trying to get this all working with Product Attribute Grid.

    Thanks,
    01011010
    aka Zach Maier

  10. #330
    Join Date
    Nov 2005
    Posts
    62
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    Quote Originally Posted by poosk View Post
    Ok I've tried this like a million times and can't get it to work..


    Quote Originally Posted by tbrides View Post
    Hello,

    I've a solution for adding Sold Out on the attribute if the stock of it is 0.
    It works for dropdown boxes, radio buttons and checkboxes.

    I've modified kuroi's attributes.php file, adding the suggestions of other people and figuring it out for dropdowns.

    - First you need to add this to:
    includes\languages\english\custom\product_info.php

    if product_info.php is not there it will be in
    includes\languages\english\product_info.php

    Once you have added the below move the file to your custom directory

    PHP Code:
    define('TEXT_ATTRIBUTES_NOT_IN_STOCK',' Sold Out'); 

    - I've changed the function "function zen_draw_pull_down_menu" in includes\functions\html_output.php


    PHP Code:
    function zen_draw_pull_down_menu($name$values$default ''$parameters ''$required false) {
        
    $field '<select name="' zen_output_string($name) . '"';
        
    $soldout "";
        if (
    zen_not_null($parameters)) $field .= ' ' $parameters;

        
    $field .= '>' "\n";

        if (empty(
    $default) && isset($GLOBALS[$name])) $default stripslashes($GLOBALS[$name]);

        for (
    $i=0$n=sizeof($values); $i<$n$i++) {
        
    /* Added by TB on 16/2/2007 */
        /*need to check if Sold Out occurs in the option tag for the dropdown*/
        
    if(strpos($values[$i]['text'], "Sold Out")) $soldout 'class ="red bold"';
        else 
    $soldout "";
          
    $field .= '  <option '.$soldout.' value="' zen_output_string($values[$i]['id']) . '"';
          if (
    $default == $values[$i]['id']) {
            
    $field .= ' selected="selected"';
          }

          
    $field .= '>' zen_output_string($values[$i]['text'], array('"' => '&quot;''\'' => ''', '<' => '&lt;', '>' => '&gt;')) . '</option>' . "\n";
        }
        $field .= '
    </select>' . "\n";

        if ($required == true) $field .= TEXT_FIELD_REQUIRED;

        return $field;
      } 

    - Then I modified kuroi's attributes.php file. Located in
    includes\modules\custom\attributes.php.
    See attached. Rename your old one to something like attributes.php-old and upload this one.

    - Then I added the class .red to my stylesheet, which just sets color:red

    If anybody cares to try this in a test environment for me after they have installed the stock by attributes module.
    Please let me know how it goes. It should work, works for me, but no guarantees.
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/ctr/public_html/store/includes/functions/html_output.php on line 510
    I get this same error too.

    Is there a working fix for Zen 1.3.8 and Stock by Attributes v4.7 to make it mark the attributes that are sold out? Or remove from the drop down on the product page or something? It's very annoying for customers to add a product to their cart, and not find out it's sold out until later when they go to check out.

 

 

Similar Threads

  1. Problems with addon: Dynamic Drop Downs for Stock By Attribute
    By Dunk in forum All Other Contributions/Addons
    Replies: 56
    Last Post: 30 Apr 2014, 07:55 PM
  2. MySQL Problem with Product with Attribute Stock addon
    By rtwingfield in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 20 Sep 2011, 03:35 PM
  3. Hide Zero Quantity Attributes with attribute-stock addon
    By leevil123 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 11 Feb 2010, 05:06 PM
  4. Replies: 4
    Last Post: 22 Jan 2010, 10:43 PM
  5. Price Products in the grid by 'Stock by Attribute' addon?
    By Salixia in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 27 Oct 2009, 06:03 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