Page 224 of 360 FirstFirst ... 124174214222223224225226234274324 ... LastLast
Results 2,231 to 2,240 of 3591
  1. #2231
    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

    FWIW, I've updated the code to support the single dropdown option being used across single and multiple attribute options including keeping the customid. I may have found on SBA 1.5.3 for ZC 1.5.1 that in the sba_sequenced_dropdowns that there might have been an extra displayed } in the javascript. I've removed it from the uploaded file so it may resolve an issues seen previously, it may cause it. :) Let me know if this caused an issue. May need to run through the install again on a clean system to see any negative effects.

    Also, almost have a general use of READONLY attributes incorporated for say sequenced dropdowns so that their info will still be displayed and in the sequence desired, just not interfering with the remaining operation. :) I say almost, though there is still a bit of work to do and some general testing.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2232
    Join Date
    May 2015
    Posts
    32
    Plugin Contributions
    0

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

    Quick Question:
    I'm still trying to resolve the issue with the Winchester_Black template and the 2nd attribute only showing one value. In an effort to fix it, I'm comparing a fresh download of the template with my server files. And I've found two files:
    Includes/templates/winchester_black/templates/
    tpl_modules_main_product_image.php
    tpl_shopping_cart_default.php

    That are VERY different (not so much different as more each has parts the other doesn't). Since I've uploaded SBA after winchester_black, if there was an overwrite it would be the SBA file.

    So my question is the above files right now I'm using the SBA versions? And maybe I need to be using the Winchester_black? or merge the two? Let me know your thoughts.

  3. #2233
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

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

    Quote Originally Posted by tronage View Post
    Quick Question:
    I'm still trying to resolve the issue with the Winchester_Black template and the 2nd attribute only showing one value. In an effort to fix it, I'm comparing a fresh download of the template with my server files. And I've found two files:
    Includes/templates/winchester_black/templates/
    tpl_modules_main_product_image.php
    tpl_shopping_cart_default.php

    That are VERY different (not so much different as more each has parts the other doesn't). Since I've uploaded SBA after winchester_black, if there was an overwrite it would be the SBA file.

    So my question is the above files right now I'm using the SBA versions? And maybe I need to be using the Winchester_black? or merge the two? Let me know your thoughts.
    If the files in the plugin and the template are the same then you need to merge them.

    Thanks,

    Anne

  4. #2234
    Join Date
    May 2015
    Posts
    32
    Plugin Contributions
    0

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

    UPDATE:

    Anne has been a huge help, however her most recent post points back to SBA being issue with my 2nd attribute only showing one value:
    https://www.zen-cart.com/showthread....71#post1284771

    If you go back one page in her thread, she posted a link to a "working" version (and I tested and verified it worked) But when she changed her settings to how I have mine, and set the stock to zero it broke it. And when using the default template (as the link currently shows here: http://weblyweb.com/sba/index.php?ma...roducts_id=180) it is broke in identically the same way as I'm experiencing. And she said this was a fresh install of everything.

    As a "test" I did not change what options I had set for dynamic dropdowns. I picked an item with two attributes, and added stock to all the combinations. sync'ed the quantities, and reloaded the live site. Issue still remained. So I'm guessing it has to be something with the options that I've got set under dynamic dropdowns? Currently set as:
    Code:
    Enable Dynamic Dropdowns	1	 
    Product Info Single Attribute Display Plugin	multiple_dropdowns	 
    Show Out of Stock Attributes	True	 
    Product Info Multiple Attribute Display Plugin	sba_sequenced_dropdowns	 
    Mark Out of Stock Attributes	None	 
    Display Out of Stock Message Line	False	 
    Display Javascript Popup for Out-of-Stock Selection	False	 
    Prevent Adding Out of Stock to Cart	False	 
    SBA Number of Records to Displayed	25
    I'm still using the previous "fix" version... I've not installed the "latest update" you mention above regarding the single dropdown, readonly, etc.

    Any ideas?

  5. #2235
    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 picaflor-azul View Post
    If the files in the plugin and the template are the same then you need to merge them.

    Thanks,

    Anne
    They are each modified from a vanilla install and therefore the changes made by/for each should be evident. Usually such changes/differences are easily integrated and do not fight with each other so should be rather straight forward.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #2236
    Join Date
    May 2015
    Posts
    32
    Plugin Contributions
    0

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

    Quote Originally Posted by picaflor-azul View Post
    If the files in the plugin and the template are the same then you need to merge them.

    Thanks,

    Anne
    AH you rock Anne! And I'm sure when I flipped to the default template it did not break... I didn't "install" it into the default template. I just turned on the default under tools-template selection... so it was a "false positive". So when properly installed it always breaks with my settings. maybe somewhere in these files the issue lays?

  7. #2237
    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 tronage View Post
    UPDATE:

    Anne has been a huge help, however her most recent post points back to SBA being issue with my 2nd attribute only showing one value:
    https://www.zen-cart.com/showthread....71#post1284771

    If you go back one page in her thread, she posted a link to a "working" version (and I tested and verified it worked) But when she changed her settings to how I have mine, and set the stock to zero it broke it. And when using the default template (as the link currently shows here: http://weblyweb.com/sba/index.php?ma...roducts_id=180) it is broke in identically the same way as I'm experiencing. And she said this was a fresh install of everything.

    As a "test" I did not change what options I had set for dynamic dropdowns. I picked an item with two attributes, and added stock to all the combinations. sync'ed the quantities, and reloaded the live site. Issue still remained. So I'm guessing it has to be something with the options that I've got set under dynamic dropdowns? Currently set as:
    Code:
    Enable Dynamic Dropdowns	1	 
    Product Info Single Attribute Display Plugin	multiple_dropdowns	 
    Show Out of Stock Attributes	True	 
    Product Info Multiple Attribute Display Plugin	sba_sequenced_dropdowns	 
    Mark Out of Stock Attributes	None	 
    Display Out of Stock Message Line	False	 
    Display Javascript Popup for Out-of-Stock Selection	False	 
    Prevent Adding Out of Stock to Cart	False	 
    SBA Number of Records to Displayed	25
    I'm still using the previous "fix" version... I've not installed the "latest update" you mention above regarding the single dropdown, readonly, etc.

    Any ideas?
    I think the version previously loaded has an extra curly bracket in the javascript display of the sba_sequenced_dropdown.php class file. That extra curly bracket was supposed to be commented out in the earlier version (not an issue in SBA 1.5.4) but in comparing the two versions did not get corrected before.

    Short of it, fixed in the above download link. This is also why requested to test the various conditions to identify the "cause" it was the DD file for sba_sequenced_dropdowns that I loaded for SBA 1.5.3 to support ZC 1.5.1.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Found it.

    In the condition provided, the function stkmsg is removed from the page; however, calls to that function were not removed... Updated a new copy of the includes/classes/pad_sba_sequenced_dropdowns.php file.

    At line: 247 add:
    Code:
    if ($this->out_of_stock_msgline == 'True') {
    Then at new line 249 add:
    Code:
    }
    Then at new line 262 add:
    Code:
    if ($this->out_of_stock_msgline == 'True') {
    and again now at new line 264 add:
    Code:
    }
    This will remove the error that is caused by trying to call a non-existent function that is between each pair of new code.

    so 247 through 249 will look something like:

    Code:
    if ($this->out_of_stock_msgline == 'True') {
      $out.=" stkmsg(frm);\n";
    }
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #2239
    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

    As usual, Anne certainly has gone above and beyond to provide support.

    While the above code changes will solve the immediate issue, on the surface I don't consider it an ideal solution. My basis for that statement is the extra PHP necessary to prevent the javascript error that appeared and the need to "remember" that anywhere the stkmsg call is made instead of one time within the javascript section itself. That is further to consider that the less javascript presented to a guest, the shorter the load and operation time. So, it may actually be a faster/better solution, but seems like a near mess on the code side.

    Basically have code that is writing code is a way to think about it. (PHP writing javascript.) Would be nice to keep it simple enough to allow others to update/modify/etc., but complex enough to give the necessary/desired result(s).

    Just expressing some thoughts and thankful for the testing/reporting.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #2240
    Join Date
    May 2015
    Posts
    32
    Plugin Contributions
    0

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

    Salvation at last!
    All seems to be working now. Just need to turn on some side boxes that Anne had me turn off, but I don't see them interfering. Your changers worked, at least for now if/when a better solution is created as you mention. Thanks so much!!!!!

    Also a quick question: the drop downs for the sequenced drops are appearing in a box with a white background, and the template is primarily a black background. Could you point me in the right direction to which file or area I should be looking at to change this background to black and the text to white?
    Thanks!

 

 

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