Page 16 of 360 FirstFirst ... 614151617182666116 ... LastLast
Results 151 to 160 of 3592
  1. #151
    Join Date
    May 2006
    Posts
    310
    Plugin Contributions
    0

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

    Quote Originally Posted by frogster View Post
    How do I get the product Quantity in Stock value to show by attribute on the product pages. I have search the for this with no luck.
    it requires additional modifications.
    you if you cheeck previous version (stock by attribute for zencart 1.3) there should be some info available in the original stock by attribute thread.
    Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

  2. #152
    Join Date
    Jan 2006
    Location
    Australia
    Posts
    330
    Plugin Contributions
    0

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

    Quote Originally Posted by Redcinamn View Post


    heavenlynights post the url so someone can look a the problem as well :)
    Thanks for the prompt Red. The url is at the following

    my store


    The following url is of a product that has the stock by attribute activated on it.



    Beautiful Bridal Babydoll

    Colour: White
    Size: Small
    3 Quantity

    Colour: White
    Size: Medium
    6 Quantity

    Colour: White
    Size: Large
    3 Quantity


    My settings in admin>stock are still
    Check stock level false (this used to set to true before mod install)
    Subtract stock true
    Allow Checkout false
    Mark product out of stock ***
    I would like to change the "check stock level" back to true, but if I do this then every item that has the stock by attribute activated shows up as "out of stock" and cannot be ordered.

    I could leave it as it is, but this won't work for me as there are products in store that I do not intend on restocking which is why I have the "check stock level" active normally

    other mods that I am using are:

    IH2
    Links Manager 1
    Aus Direct Deposit
    Shipping Insurance
    Recover Cart Sales
    Cross Sell Products
    referrals
    News Box Manager
    User Tracking
    Off Site Payment
    Western Union Money (disabled)
    DRM Delivery (local delivery)
    Paypal Verified
    Login Box
    Ask A Question
    Aus Shipping (disabled)
    Better Categories
    Returns
    Scrolling Specials
    Improved Attributes Controller
    Ez Pages on Site Map (which i think maybe incorporated into the 1.3.7 edition)
    shopping cart with images (sidebox)
    testimonials (disabled)
    css flyout menu

    There may be more, I can't quite remember but as you can see she is pretty much loaded with mods. I am wondering if one of the above mods is conflicking with this mod

    Any assistance from anyone would be really appreciated.

  3. #153
    Join Date
    Oct 2006
    Posts
    209
    Plugin Contributions
    0

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

    I've asked this in another tread. I was referred to the middle of this tread, but the answer is only partially complete and I'm not great with PHP.

    What i need to do is add Sold out beside the attribute if its stock level is 0.
    So thats for radiobuttons, check boxes or dropdowns.

    I know somebody in here has been able to do it

    If so can you please PM me your attributes file, because I cant get my head around it.

  4. #154

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

    woodlandsprite
    Thanks for the info. Found a fix at wiki but the fills they say to modify do not match the new files in zen-cart so could not get it to work at all. Some one must have gotten the stock amount to show in the product pages for this new version. Hope someone can steer me in the righ direction.

  5. #155

    Default Re: Stock by Attribute v4.3 for Zen Cart 1.3.6

    [QUOTE=frank_lyy;293871]First, a little bug that I found in your new release by using beyond compare with older ones.

    In functions_lookups.php on line 163:


    should've been:


    Next, I applied a fix by Grayson posted in archived threads to show qty of attributes on product info page. For those who still having trouble with this fix, I am including the attributes.php file here. You may drop it in includes/modules/your_template/ folder.

    I am also including another alternative version of this fix (I take no credit whatsoever on this), which shows attribute stock after price_fix and weight etc. display, which makes more sense to myself, becasue this way customer won't confuse stock level with quantity discounts/surcharges. This alternative file is called attributes_Alternative.php. You need to rename it to attributes.php to overwrite the existing one when using.

    Don't forget to add a define to the product_info.php in includes/languages/english/your_template folder, such as:
    [define('TEXT_ATTRIBUTES_PIECES','pieces');/QUOTE]. I use 'in stock' instead of 'pieces', for it makes more sense.

    Now, I need help for myself!! I tried hard to set a "display only" option value such as " select from below" to NOT show stock level, which is a conditional undone of the above fix in attributes.php. I tried codes as follows, but no luck:



    This block of codes were applied after the "// prepare product options details" section and before "//radio buttons" section.

    Any help on this would be greatly appreciated!
    I found the fix I was looking for post # 46 Thanks Frank for the great post the patch file did just what i wanted it to and that was to add product stock to the product pages.
    I KNOW MOM I'LL GO BLIND IF I DON'T QUIT THAT!
    PHP can turn one's mind to mush. Back to the pound I go.

    Silent Thunder Products, Prices So Low Is't Almost Criminal!

  6. #156
    Join Date
    Oct 2006
    Posts
    175
    Plugin Contributions
    0

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

    This should be in the same spot as well underneth I believe ?:) ~Renee
    [FONT="Comic Sans MS"]Red[/FONT]

  7. #157
    Join Date
    Oct 2006
    Posts
    209
    Plugin Contributions
    0

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

    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.
    Attached Files Attached Files

  8. #158
    Join Date
    Nov 2006
    Posts
    13
    Plugin Contributions
    0

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

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

    Wow, I've been wanting this feature for a long time. I followed all of these steps and the "Sold Out" displays correctly. The only thing is that my text isn't red or bold.

  9. #159
    Join Date
    Oct 2006
    Posts
    209
    Plugin Contributions
    0

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

    hi,
    have you added the style to your custom stylesheet and for the radio buttons and check boxes i wrapped TEXT_ATTRIBUTES_NOT_IN_STOCK in attributes.php in span tags with the class red and bold

  10. #160
    Join Date
    Nov 2006
    Posts
    13
    Plugin Contributions
    0

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

    I actually spoke too soon. I checked some other pages and noticed that adding this mod knocks out my color dropdown choices. It just returns a blank dropdown so I had to revert back.

 

 

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