Page 263 of 360 FirstFirst ... 163213253261262263264265273313 ... LastLast
Results 2,621 to 2,630 of 3591
  1. #2621
    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 stellarweb View Post
    Your recommended changes did the trick!!! WHOO HOO!! Thank you so much!!
    Glad that helped... I've applied yet another updated version which added a few and statements to ensure that Read Only and Grid related attributes are not effected by this change as they are treated in other and different ways elsewhere generally speaking.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2622
    Join Date
    Feb 2008
    Posts
    529
    Plugin Contributions
    0

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

    I'm updating SbyA with the most recent github files (downloaded today, Aug 22 2016) and I threw in the change in the autoinstall from a few posts back.

    I am currently using zc 1.5.5a and ResponsiveSheffiledBlue adapted to 1.5.5a with changes suggested by rbarbour, drB and others.

    There are two files: admin/incl/init_incl/initzc154compatability and admin/autoinstallers/config154compatability.

    Do I/should I keep those two files, or remove - ie are they applicable only to 1.5.4 or "1.5.4 and later"

  3. #2623
    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 soxophoneplayer View Post
    I'm updating SbyA with the most recent github files (downloaded today, Aug 22 2016) and I threw in the change in the autoinstall from a few posts back.

    I am currently using zc 1.5.5a and ResponsiveSheffiledBlue adapted to 1.5.5a with changes suggested by rbarbour, drB and others.

    There are two files: admin/incl/init_incl/initzc154compatability and admin/autoinstallers/config154compatability.

    Do I/should I keep those two files, or remove - ie are they applicable only to 1.5.4 or "1.5.4 and later"
    Actually, neither. :) they are to provide compatibility of older ZC versions to work (at least in part) with software written for plugins to be compatible with ZC 1.5.4 and higherto less than ZC 1.5. that use functionality that was added in ZC 1.5.4 (admin database change logging). In other words, they are non-essential for plugins running on ZC 1.5.4 and above and can be safely removed from a store that includes all of the functionality of an existing ZC 1.5.4 store (or higher).
    Last edited by mc12345678; 23 Aug 2016 at 04:04 AM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #2624
    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

    I've got SBA Version 1.5.4 for Zen Cart Version 1.5.4 and it's been running fine for months.

    Today, I've added a downloadable product but can't add it to the shopping cart. I get 'Your shopping cart is empty'. Error log says:

    PHP Warning: Missing argument 1 for queryFactoryResult::__construct(), called in /home/ACCOUNT_NAME/public_html/includes/templates/herbally/templates/tpl_modules_attributes.php on line 28 and defined in /home/ACCOUNT_NAME/public_html/includes/classes/db/mysql/query_factory.php on line 550

    I've checked the product is set-up correctly for a downloadable product.
    I was a little unclear if the option value needed to get set to Read Only or not, so tried both.

  5. #2625
    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've got SBA Version 1.5.4 for Zen Cart Version 1.5.4 and it's been running fine for months.

    Today, I've added a downloadable product but can't add it to the shopping cart. I get 'Your shopping cart is empty'. Error log says:

    PHP Warning: Missing argument 1 for queryFactoryResult::__construct(), called in /home/ACCOUNT_NAME/public_html/includes/templates/herbally/templates/tpl_modules_attributes.php on line 28 and defined in /home/ACCOUNT_NAME/public_html/includes/classes/db/mysql/query_factory.php on line 550

    I've checked the product is set-up correctly for a downloadable product.
    I was a little unclear if the option value needed to get set to Read Only or not, so tried both.
    Suggest trying one of the updated versions of the file which can be found in the main install. The file in question is as reported: includes/templates/YOUR_TEMPLATE/templates/tpl_modules_attributes.php. That file was updated in April of this year to address that particular error. At least as things appear in the history for that file and that line number... Though not entirely sure how that error plays into the adding of the product to the cart. Further, think would need more information about how things are setup in order to advise further on a downloadable only product, especially with having an older version of the file(s).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #2626
    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

    I had been using the more recent version from the ZC 1.5.4 series. I tried the 1.5.5 version but same problem.

    Attached are how I've got the product set-up.

    My confusion is this is not an SBA attribute, so it should just ignore it. I feel like I missing something that expresses this.

    Click image for larger version. 

Name:	product.PNG 
Views:	54 
Size:	11.9 KB 
ID:	16645
    Click image for larger version. 

Name:	option_name.jpg 
Views:	49 
Size:	2.2 KB 
ID:	16646
    Click image for larger version. 

Name:	attributes.jpg 
Views:	50 
Size:	18.2 KB 
ID:	16647

  7. #2627
    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 had been using the more recent version from the ZC 1.5.4 series. I tried the 1.5.5 version but same problem.

    Attached are how I've got the product set-up.

    My confusion is this is not an SBA attribute, so it should just ignore it. I feel like I missing something that expresses this.

    Click image for larger version. 

Name:	product.PNG 
Views:	54 
Size:	11.9 KB 
ID:	16645
    Click image for larger version. 

Name:	option_name.jpg 
Views:	49 
Size:	2.2 KB 
ID:	16646
    Click image for larger version. 

Name:	attributes.jpg 
Views:	50 
Size:	18.2 KB 
ID:	16647
    Well, I would actually say that something else is installed that is interfering.

    Reason is, the error shown on the previous post at line 28 of includes/templates/YOUR_TEMPLATE/templates/tpl_modules_attributes.php for the version of the file between April and about June of this year began passing the database credentials for generation of the queryfactoryresult class variable. This only became necessary in ZC 1.5.5 because of changes made to includes/classes/db/mysql/query_factory.php. In previous versions of ZC, that variable was not needed, and in fact if it was passed to the function, would be ignored by a default install because it would be an excess parameter that is/was not handled by ZC and therefore would not cause a problem. If though, that zc file were replaced by some other plugin, the additional variable may become necessary and if the template file of the current set was used, it would attempt to pass it properly and not through an error.

    That said and as questioned, the line 28 code would only be run if the product for any of many different reasons was not to be displayed as a SBA tracked product, one that matters specifically to adding the product to the shopping cart is whether the products_id is listed at all in the products_with_attributes_stock table (all such entries appear in the admin control screen for SBA under the catalog dropdown).

    Now, the other thing, which was an issue with ZC 1.5.4, is that there are error messages not pushed to the screen when there is a problem with adding product to the cart. Unfortunately I don't recall the specific work around that was necessary, but it may be addressed in the known issues with ZC 1.5.4. I do know that Ajeh had weighed in on the matter in one of the past/previous threads.

    Beyond that, SBA doesn't evaluate any of the settings shown in the previous images in relation to non-SBA tracked product (products_id not identified in the PWAS table), so the issue would not specifically be with SBA processing, but instead something else that has been done/installed and that a file modified by SBA is showing the result of that other change.

    It is something I have wanted to remove so that code like what is found on your version of the template file is no longer "necessary" as it was added at one point to make the file "easier" to follow and require less alternate/additional code. Now it just seems to complicate modification and be seen as the reason for some other mistake unrelated to SBA.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #2628
    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

    While I was using SBA Version 1.5.4, it was an older version of that version. It was one of the early versions from GitHub. I've updated the installed version to the current one from GitHub and problem solved. I never bothered to update it as everything was working fine. You know, "if it ain't broke, don't fix it". Hope it helps someone else.

  9. #2629
    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
    While I was using SBA Version 1.5.4, it was an older version of that version. It was one of the early versions from GitHub. I've updated the installed version to the current one from GitHub and problem solved. I never bothered to update it as everything was working fine. You know, "if it ain't broke, don't fix it". Hope it helps someone else.
    Well, glad that the updated version is functioning as intended/expected.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #2630
    Join Date
    May 2013
    Location
    Long Branch, NJ
    Posts
    49
    Plugin Contributions
    0

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

    I'm sorry if this has been asked already, but I'm getting duplication of attribute options on the frontend. Not sure why this is happening. I attached some images for you to check out. It also says GREY with any size is out of stock which is not how I have it set up. Let me know if anything is set up wrong. Running ZC 1.5.4. Thanks!

    Click image for larger version. 

Name:	Screen Shot 2016-09-14 at 3.07.32 PM.png 
Views:	60 
Size:	126.3 KB 
ID:	16660
    Click image for larger version. 

Name:	Screen Shot 2016-09-14 at 3.08.04 PM.jpg 
Views:	44 
Size:	14.1 KB 
ID:	16661
    Click image for larger version. 

Name:	Screen Shot 2016-09-14 at 3.08.30 PM.jpg 
Views:	54 
Size:	37.7 KB 
ID:	16662

 

 

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