Page 266 of 359 FirstFirst ... 166216256264265266267268276316 ... LastLast
Results 2,651 to 2,660 of 3589
  1. #2651
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    And a few more corrected in that same observer class also related with option name/value deletion:

    https://github.com/mc12345678/Stock_...f775936fb0eaca
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2652
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,582
    Plugin Contributions
    29

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    Quote Originally Posted by mc12345678 View Post
    Doh, on line 201 add a new line below the commented text and add:
    Code:
    global $db;
    Committed to github with correction. Affects all versions of ZC using that code.

    https://github.com/mc12345678/Stock_...27d98aec9de505
    I can confirm this resolves the error. Thanks for the quick update!

  3. #2653
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    Quote Originally Posted by jeking View Post
    I can confirm this resolves the error. Thanks for the quick update!
    No, thank you for notifying of the issue. Can't fix what isn't known to be broken. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #2654
    Join Date
    Mar 2009
    Posts
    76
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    A couple of questions please.

    I'm running 1.5.5a on PHP 7.0.12, with this work OK.

    Also, say if I have T-shirts in different sizes and a particular size becomes out of stock, will it continue to be available for sale or not?

    Thanks

    Dene

  5. #2655
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    Quote Originally Posted by Deno View Post
    A couple of questions please.

    I'm running 1.5.5a on PHP 7.0.12, with this work OK.

    Also, say if I have T-shirts in different sizes and a particular size becomes out of stock, will it continue to be available for sale or not?

    Thanks

    Dene
    Nothing has denoted that the version available from github won't work on that version of PHP. As for out-of-stock saleability, it is primarily up to how your store is setup as to whether an out-of-stock specific attribute can be "oversold" or not. It has been designed to follow the overall settings of your store such that if your store does not allow selling product that are considered out-of-stock then the plugin will prevent the same at some point in the purchase process.

    I have a few things to push to github for further improvements, but as with all plugins, I would suggest installing to a trial location before applying to your live store.

    For those wondering about the improvements, well, have modified the stock reporting capabilities so that the listing in the dynamic dropdowns area is expected to only show items that can exist as defined in the admin (ie. Currently out-of-stock options are those that could theoretically exist based on the selections made on the attributes controller. On an upcoming github upload that "stock" display (absence of stock on identified/designated) will be added for dynamic dropdowns when using the default "filter" for multiple product.

    Also, some javascript improvements have been made both on the catalog and admin sides. There are/may be some other improvements to be added depending on various factors, but trying to finish cleaning up the javascript before pushing it.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #2656
    Join Date
    Mar 2009
    Posts
    76
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    I'm an idiot. I tried to install this but didn't backup first now I can't get into my admin panel.

    Any ideas?

    Code:
    [31-Oct-2016 22:16:12 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function zen_get_ip_address() in /var/www/vhosts/localhost.localdomain/httpdocs/IQ/shop/NOTMYADMIN/includes/init_includes/init_sessions.php:31
    Stack trace:
    #0 /var/www/vhosts/localhost.localdomain/httpdocs/IQ/shop/includes/autoload_func.php(48): require()
    #1 /var/www/vhosts/localhost.localdomain/httpdocs/IQ/shop/NOTMYADMIN/includes/application_top.php(171): require('/var/www/vhosts...')
    #2 /var/www/vhosts/localhost.localdomain/httpdocs/IQ/shop/NOTMYADMIN/index.php(10): require('/var/www/vhosts...')
    #3 {main}
      thrown in /var/www/vhosts/localhost.localdomain/httpdocs/IQ/shop/NOTMYADMIN/includes/init_includes/init_sessions.php on line 31

  7. #2657
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    Quote Originally Posted by Deno View Post
    I'm an idiot. I tried to install this but didn't backup first now I can't get into my admin panel.

    Any ideas?

    Code:
    [31-Oct-2016 22:16:12 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function zen_get_ip_address() in /var/www/vhosts/localhost.localdomain/httpdocs/IQ/shop/NOTMYADMIN/includes/init_includes/init_sessions.php:31
    Stack trace:
    #0 /var/www/vhosts/localhost.localdomain/httpdocs/IQ/shop/includes/autoload_func.php(48): require()
    #1 /var/www/vhosts/localhost.localdomain/httpdocs/IQ/shop/NOTMYADMIN/includes/application_top.php(171): require('/var/www/vhosts...')
    #2 /var/www/vhosts/localhost.localdomain/httpdocs/IQ/shop/NOTMYADMIN/index.php(10): require('/var/www/vhosts...')
    #3 {main}
      thrown in /var/www/vhosts/localhost.localdomain/httpdocs/IQ/shop/NOTMYADMIN/includes/init_includes/init_sessions.php on line 31
    Very unusual error messages, but when you say "this" can you please elaborate to ensure we are all referencing the same software.

    If had downloaded the version from github, what had been installed or attempted to be installed? Did you get to the point of trying to install version specific files or did you only get the "all versions" files (includes and admin directories) installed?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #2658
    Join Date
    Mar 2009
    Posts
    76
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    https://www.zen-cart.com/downloads.php?do=file&id=202

    I downloaded 1.5.3, changed the folder names to match my theme/admin and uploaded. I actually did back up the files that it wanted to overwrite first.

    I then went to load stock_by_attr_install.php which is when I got the blank screen. I tried to then go to admin but blank screen. I then copied back the files that I had backed up:


    admin/invoice.php
    admin/orders.php
    admin/packingslip.php
    admin/includes/functions/general.php
    admin/includes/classes/order.php

    includes/classes/order.php
    includes/functions/functions_lookups.php
    includes/functions/extra_functions/products_with_attributes.php
    includes/modules/pages/checkout_shipping/header_php.php
    includes/modules/pages/shopping_cart/header_php.php

    But still get the blank screen :-/

  9. #2659
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    Quote Originally Posted by Deno View Post
    https://www.zen-cart.com/downloads.php?do=file&id=202

    I downloaded 1.5.3, changed the folder names to match my theme/admin and uploaded. I actually did back up the files that it wanted to overwrite first.

    I then went to load stock_by_attr_install.php which is when I got the blank screen. I tried to then go to admin but blank screen. I then copied back the files that I had backed up:


    admin/invoice.php
    admin/orders.php
    admin/packingslip.php
    admin/includes/functions/general.php
    admin/includes/classes/order.php

    includes/classes/order.php
    includes/functions/functions_lookups.php
    includes/functions/extra_functions/products_with_attributes.php
    includes/modules/pages/checkout_shipping/header_php.php
    includes/modules/pages/shopping_cart/header_php.php

    But still get the blank screen :-/
    Oye. Okay. So 1) the version currently offered on this website is for ZC 1.5.1. There's a lot that has changed related to it. If I'm not mistaken some of the additional files that exist in directories like includes/auto_loaders (store or admin) might cause the issue that you are seeing.

    Would appear that almost none of the last page or two has been reviewed nor the previous message I posted indicating that would need to download from github to support ZC 1.5.5 (and honestly right now would be the best source for any 1.5.1-1.5.x install as it contains files compatible with all versions (except 1.5.2) and doesn't have the issue reported above.

    It hasn't been pushed to the ZC site because of two things: 1) instructions need updating from all the hard work that potteryhouse did and 2) doesn't seem to me to be at the quality level I would like to be able to call it a ZC plugin. There are areas where a store owner could cause oneself trouble because the code doesn't notify them that what they are doing is not right or it doesn't prevent the action. Some of those things I'd rather just make possible instead of strictly prohibiting. I may not directly deal with them, but by staying open minded they can be addressed later.

    Anyways, glad you had backups of the files to be overwritten, now need to remove (or overwrite with those from github) the ones that were added new.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #2660
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    Another thing. Did the error message change?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

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