Page 1 of 6 123 ... LastLast
Results 1 to 10 of 52
  1. #1
    Join Date
    Dec 2007
    Location
    Hoboken, NJ
    Posts
    99
    Plugin Contributions
    1

    Default Sequenced attributes based on stock addon...

    I have been able to build a mod re-using code from other projects that will give sequenced drop downs for attributes based on stock. If anyone is interested in testing please PM me. I would like to contribute my work to the Zen Cart project even if it is only a temp fix until 1.4 comes out. This requires the Stock by Attributes mod installed and working.


    Single drop down based on stock... (can be setup in multiple ways but currently setup to prevent adding items to cart and still show all attributes. Medium is out of stock if you want to test)

    http://www.modernmunchkin.com/boys-1...-plaid-27.html


    Sequenced drop downs based on stock...

    http://www.modernmunchkin.com/gift-c...oduct-193.html



    Cal
    Last edited by modernm; 11 Mar 2008 at 04:28 PM.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,825
    Plugin Contributions
    0

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

    Please package your code and add it to the downloads section.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Dec 2007
    Location
    Hoboken, NJ
    Posts
    99
    Plugin Contributions
    1

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

    I attempted to upload but got a warning saying no file uploaded. Tried twice with no luck.


    Cal

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,655
    Plugin Contributions
    25

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

    It's certainly there now and is a useful extension of Stock by Attributes. The current version (1.3) seems to have a bit of a bug however, as line 87 of the pad_sequenced_dropdowns.php class calls up data from a table that doesn't exist in Zen Cart or Stock by Attributes.
    See and test drive Zen Cart's free templates at zencarttemplates.info

    Kuroi Web Design and Development | Twitter

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

  5. #5
    Join Date
    Dec 2007
    Location
    Hoboken, NJ
    Posts
    99
    Plugin Contributions
    1

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

    Quote Originally Posted by kuroi View Post
    It's certainly there now and is a useful extension of Stock by Attributes. The current version (1.3) seems to have a bit of a bug however, as line 87 of the pad_sequenced_dropdowns.php class calls up data from a table that doesn't exist in Zen Cart or Stock by Attributes.


    Thanks, I will try and update the contrib tonight.

    Modify includes/database_tables.php

    Code:
    define('TABLE_PRODUCTS_STOCK', 'products_with_attributes_stock');

  6. #6
    Join Date
    May 2005
    Location
    England
    Posts
    399
    Plugin Contributions
    0

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

    Hello there,

    This is a fine extension. Just wondered, am I to define this message in the enlgish.php file:-

    TEXT_OUT_OF_STOCK_MESSAGE

    also, if an item is out of stock, it shows TEXT_OUT_OF_STOCK next to it.

    Regards,

    Heathenmagic

  7. #7
    Join Date
    Dec 2007
    Location
    Hoboken, NJ
    Posts
    99
    Plugin Contributions
    1

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

    Quote Originally Posted by HeathenMagic View Post
    Hello there,

    This is a fine extension. Just wondered, am I to define this message in the enlgish.php file:-

    TEXT_OUT_OF_STOCK_MESSAGE

    also, if an item is out of stock, it shows TEXT_OUT_OF_STOCK next to it.

    Regards,

    Heathenmagic
    Heathenmagic,

    I am uploading a update for that now. Please check the contrib later tonight.


    Cal

  8. #8
    Join Date
    Apr 2005
    Posts
    299
    Plugin Contributions
    0

    help question Re: Sequenced attributes based on stock contrib...

    I installed the mod but cant seem to get it work properly. To get the sequence to work, i added the different options but it does not come up with the correct it says that i have all in stock. Should it be if i have say 3 gold shoes in size 6 but none in 6.5, then the 6.5 should not show, if correct in saying right.

    also it does not display the out of stock message

    you can see it here:http://dealz-r-us.com/index.php?main...&products_id=5

    how do i go about fixing this?

  9. #9
    Join Date
    May 2008
    Posts
    20
    Plugin Contributions
    0

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

    Cal,

    This is excellent and very close to what I am looking for! I wanted to look at how the 'Sequenced drop downs based on stock...' worked but the link below was broken

    http://www.modernmunchkin.com/gift-c...oduct-193.html

    do you have an example of it working?

    I want to have 'my site' 'look' at the attributes selected and if the combination selected is out of stock display a message in a sidebox but still allow them to purchase the product if they wish - we will order it in for them.

    I presume that as you select the 1st attribute the site 'looks' at the stock and decides what to display as in or out of stock? If so it shouldnt be too hard to convert it to what I want.

    Joe

  10. #10
    Join Date
    Jul 2008
    Posts
    7
    Plugin Contributions
    0

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

    I just installed Sequenced Attributes and I have this error-
    Code:
    1146 
    Table 'jalansty_zc1.products_with_attributes_stock' doesn't exist
    in:
    [SELECT quantity FROM products_with_attributes_stock AS a LEFT JOIN 
    products_attributes AS b ON (b.options_id=2 AND b.options_values_id=19) 
    WHERE a.products_id = '5' AND a.stock_attributes = b.products_attributes_id 
    AND a.quantity > 0 order by b.products_options_sort_order]

    I noticed that in Modify "includes/database_tables.php" by adding...

    Code:
    define('TABLE_PRODUCTS_STOCK', 'products_with_attributes_stock');
    there is no DB_PREFIX, so I tried changing it to
    Code:
    define('TABLE_PRODUCTS_STOCK', DB_PREFIX .'products_with_attributes_stock');
    That seemed to fix it.

 

 
Page 1 of 6 123 ... LastLast

Similar Threads

  1. Replies: 4
    Last Post: 23 Dec 2008, 08:01 PM
  2. Problems with Back In Stock Notifications addon
    By dhanesh in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Aug 2008, 02:26 PM
  3. Stock tracking based on products attributes
    By j_kins in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 30 Jul 2008, 06:32 AM
  4. Out of stock email owner addon?
    By Andy_GS in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 8 Jul 2008, 11:17 AM
  5. Stock Control Based on Attributes???
    By abhishek77 in forum General Questions
    Replies: 3
    Last Post: 2 Apr 2008, 09:52 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
  •