Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 52
  1. #11

    Default Re: Sequenced attributes based on stock contrib...

    Thanks for the great module. This has been very helpful to me.

    I ran into one small problem after installation because I hadn't defined "TEXT_SELECT_OPTIONS" in product_info.php along with the other two language definitions in the instructions. I may have missed something, but I believe the instructions step six which currently reads:

    6. Modify "includes/languages/english/YOUR_TEMPLATE/product_info.php" by adding...

    define('TEXT_OUT_OF_STOCK', 'Out of stock');
    define('TEXT_OUT_OF_STOCK_MESSAGE', 'The combination of options you have selected is currently out of stock. Please select another combination.');
    should read:

    6. Modify "includes/languages/english/YOUR_TEMPLATE/product_info.php" by adding...

    define('TEXT_OUT_OF_STOCK', 'Out of stock');
    define('TEXT_OUT_OF_STOCK_MESSAGE', 'The combination of options you have selected is currently out of stock. Please select another combination.');
    define('TEXT_SELECT_OPTIONS', 'Plese select your product.');
    That small change to the installation instructions might save others some time.

    Thanks again, this is a great addition to zen cart and greatly improved my store.

    Frank

  2. #12

    Default Re: Sequenced attributes based on stock contrib...

    One last tip for others who have their store configured the same way I do:

    Code:
    Product Info Single Attribute Display Plugin	multiple_dropdowns	 
    Product Info Multiple Attribute Display Plugin	sequenced_dropdowns	 
    Show Out of Stock Attributes	                False	 
    Mark Out of Stock Attributes	                None	 
    Display Out of Stock Message Line	        False	 
    Prevent Adding Out of Stock to Cart	        True
    With my dropdowns configured that way, customers who clicked "add to cart" before making a selection would end up with the wrong product in their cart. There would be a version of their product with no attributes and an out of stock message. Obviously what I wanted instead was an error message reminder to choose an attribute instead of letting them add to cart. To achieve this, I made one small change in pad_sequenced_dropdowns.php.

    it was originally like this:
    Code:
            
    if ($this->no_add_out_of_stock == 'True') {
    // js to not allow add to cart if selection is out of stock
    $out.="  function chksel() {\n";
    $out.="    var instk=chkstk(document.cart_quantity);\n";
    $out.="    if (!instk) alert('".TEXT_OUT_OF_STOCK_MESSAGE."');\n";
    $out.="    return instk;\n";
    $out.="  }\n";
    $out.="  document.cart_quantity.onsubmit=chksel;\n";
    }
    and I changed it to this:

    Code:
    if ($this->no_add_out_of_stock == 'True') {
    // js to not allow add to cart if selection is out of stock
    $out.="  function chksel() {\n";
    $out.="    var instk=chkstk(document.cart_quantity);\n";
    $out.="    if (!instk) alert('".TEXT_SELECT_OPTIONS."');\n";
    $out.="    return instk;\n";
    $out.="  }\n";
    $out.="  document.cart_quantity.onsubmit=chksel;\n";
    }
    For my store, this prevented customers from accidentally adding a non-product to the cart, and instead gave them a javascript error window telling them to select which product they want.

    Thanks again for the great contribution.

    Frank

  3. #13
    Join Date
    Aug 2007
    Posts
    43
    Plugin Contributions
    0

    Default Re: Sequenced attributes based on stock contrib...

    I have this awesome mod loaded up - all looking good except for some or the other reason, out of stock options don't show up, even though I have it set to "show out of stock attributes".

    Any ideas?

  4. #14
    Join Date
    Aug 2007
    Posts
    43
    Plugin Contributions
    0

    Default Re: Sequenced attributes based on stock contrib...

    Oh yes, just to clarify - this problem only seems to be occurring on products with multiple attributes. The single ones show up fine.

  5. #15
    Join Date
    Oct 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: Sequenced attributes based on stock contrib...

    I just set up this addon tonight and I'm not getting any errors, but nothing is showing up on site. I get the configuration setup in admin and I can make change with no errors. But when i look at my site, I don't see any OOS labels on individual attributes. It's as if it's not there.

    I'm running Zen ver 1.3.8a, have the stock by attr 4.7 add on.

    A little history about my Stock by attr add on. It was the first add on I installed when I set up this site in Sept. Everything worked great. About a week after I went live in Oct, I decided to switch my primary domain and had to buy a new SSL cert. In the process, I had to rebuild my site. I loaded a fresh Zen cart, and then restored my dbase files from the site I had before. But because I was running under a new primary domain, I couldn't restore my php files. So, I had to reload everything. But becuase the dbase was restored based on before, the Stock by Attr in the catalog showed up so I assume that didn't get erased. 2 weeks go by and I sold a few items that were sold out and I couldn't figure out why. Eventually, I figured that I needed to reload the addon eventhough the dbase was correct. I did that and it's been working fine ever since. So all that history to say that I wonder if my Stock by Attr isn't quite right and causing the Dynamic drop downs to not show up? Any ideas?

  6. #16
    Join Date
    Dec 2008
    Location
    San Fran
    Posts
    382
    Plugin Contributions
    0

    Default Re: Sequenced attributes based on stock contrib...

    I'm trying to use multiple dropdowns instead of sequenced, but it's just duplicating the first dropdown set. So I have two of the same dropdowns with the same options... I need to have one for lenth and one for color. But with multiple dropdowns selected I have 2 for length and none for color! Any idea how to fix?

    Also, I would like to just show the first available attribute in the dropdown rather than "First select..." any idea how to do this?
    Last edited by swamyg1; 20 Feb 2009 at 08:37 AM.

  7. #17
    Join Date
    Dec 2008
    Location
    San Fran
    Posts
    382
    Plugin Contributions
    0

    Default Re: Sequenced attributes based on stock addon...

    Please disregard my previous post... I realized what sequenced dropdowns are and it seems ideal for my situation.

    I do however have another problem. The sort order for my attributes is all out of wack. It sorts fine without this mod installed. Any idea where to go to determine the sort order for sequenced dropdowns?

    Here's a screenshot to demonstrate what I mean.


  8. #18
    Join Date
    Dec 2007
    Location
    Hoboken, NJ
    Posts
    96
    Plugin Contributions
    1

    Default Re: Sequenced attributes based on stock addon...

    Quote Originally Posted by swamyg1 View Post
    Please disregard my previous post... I realized what sequenced dropdowns are and it seems ideal for my situation.

    I do however have another problem. The sort order for my attributes is all out of wack. It sorts fine without this mod installed. Any idea where to go to determine the sort order for sequenced dropdowns?

    Here's a screenshot to demonstrate what I mean.

    There was a recent update to my contrib that modified pad_base.php to resolve sorting issues. Make sure you are using the latest version.

    Check the SQL in pad_base.php...

    Code:
    $products_options_name = $db->Execute("select distinct popt.products_options_id, popt.products_options_name, popt.products_options_track_stock from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$this->products_id . "' and patrib.options_id = popt.products_options_id and popt.language_id =". (int)$_SESSION['languages_id'] ." " . $stocked_where . " order by popt.products_options_sort_order");
          $attributes=array();

    Note the "order by".


    Cal

  9. #19
    Join Date
    Sep 2008
    Posts
    80
    Plugin Contributions
    0

    Default Re: Sequenced attributes based on stock addon...

    I could have sworn I saw this mentioned somewhere but now I can't find it

    I've got things working...errrr....kind of.... My problem is that when I have a single drop down, the attribute isn't showing up .... I saw on modernm's site that this was indeed working.... Where is the bug in the code??

    Thanks!

  10. #20
    Join Date
    Sep 2008
    Posts
    80
    Plugin Contributions
    0

    Default Re: Sequenced attributes based on stock addon...

    I'm soooooooo gonna be persistent..... HELP!

 

 
Page 2 of 6 FirstFirst 1234 ... LastLast

Similar Threads

  1. Attributes Separate Stock Addon
    By Destroyer in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 9 Nov 2010, 09:30 PM
  2. Stock Levels based on attributes
    By jamesmunson in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 14 Oct 2010, 02:55 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: 23 Dec 2008, 08:01 PM
  5. Stock Control Based on Attributes???
    By abhishek77 in forum General Questions
    Replies: 3
    Last Post: 2 Apr 2008, 09:52 PM

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