Forums / All Other Contributions/Addons / Stock By Attributes 156a to 156c

Stock By Attributes 156a to 156c

Started by jodean on 4 Apr 2020, 2:54 PM · Views: 621

Results 1 to 6 of 6
4 Apr 2020, 2:54 PM
#1
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Stock By Attributes 156a to 156c

I created a new vanilla 1.5.6c
Imported my old 1.5.6a database
Tested and worked
Added a couple non core modified plugins documented below
Tested and worked
Added the Stock_By-Attributes_combined-master from GitHb
Merged the Core files changes from Stock_By-Attributes_combined-master

When Categories/Products/Products with attributes Stock (aka SBA) is executed from admin i get an error
Parse error: syntax error, unexpected '$products_answer (T_VARIABLE) in '/home/tennes60/public_html/v156c/flouR-xnC-bleNd/products_with_attributes_stock.php on line 765'

I tried downloading and re-installing the Stock_By-Attributes_combined-master but i still get the same error.
I am also currently running 1.5.6a with a previous version of Stock_By-Attributes_combined-master successfully.

Can anyone help?

Site URL 'https://tennesseetraditionalflies.com/v156c/'
Admin URL 'https://tennesseetraditionalflies.com/v156c/flouR-xnC-bleNd'

ZC version<br>1.5.6c

Plugins
add_customers_from_admin-2.0.9
backup_mysql_plugin_v1-5e<br>ckeditor
clone_template-1.2.1<br>stock_by_attribute_1.5.X_instructions_master
Stock_By-Attributes_combined-master<br>USPS_2018_03_28_K10
PHP Version 7.3.16

Can anyone help?

4 Apr 2020, 3:24 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,734
Plugin Contributions:
56

Re: Stock By Attributes 156a to 156c

Please post admin/products_with_attributes_stock.php##a few lines before and after line 765 (and identify line 765).

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

4 Apr 2020, 3:24 PM
#3
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Stock By Attributes 156a to 156c

admin/products_with_attributes_stock.php

line 763:

//from
ORDER BY pwas.stock_id ASC" 
//to:
ORDER BY pwas.stock_id ASC";

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

4 Apr 2020, 4:36 PM
#4
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Stock By Attributes 156a to 156c

carlwhat:

admin/products_with_attributes_stock.php

line 763:

//from
ORDER BY pwas.stock_id ASC"
//to:
ORDER BY pwas.stock_id ASC";


That corrects the syntax error but the page does not display anything after 

Product Selection List:
5 Apr 2020, 2:06 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Stock By Attributes 156a to 156c

jodean:

That corrects the syntax error but the page does not display anything after

Product Selection List:
So, no search button is displayed? No closing html form tag?

Sounds like a partial blank screen and that there is likely another debug log file. Otherwise there should be more content that follows that text from what it appears beginning at line 1186. You could modify the content at that line slightly to see if that is actually the line where the display stops...

Again would suggest looking at the page's source code to see if in fact the last html code pushed is just the text "Product Selection List:".

Also note that this may have been beneficial for to have been posted in the SBA forum: https://www.zen-cart.com/showthread.php?47180-Stock-by-Attribute-v4-0-addon-for-v1-3-5-1-3-9

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 Apr 2020, 2:50 PM
#6
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Stock By Attributes 156a to 156c

User error in the merge.