Totally Zenned
- Join Date:
- Jan 2013
- Location:
- New Port Richey, Florida
- Posts:
- 969
- Plugin Contributions:
- 0
Stock by Attribute v4.0 addon for v1.3.5-1.3.9
now works in different browser
Views: 658,356
Totally Zenned
now works in different browser
Totally Zenned
sync option i thought totals up all attributes with stock adds that as total to qty, which i use to show customers green yellow red light depending on available stock, i put stock only on 1 attribute but gave all attributes the same after clicking sync
Totally Zenned
cant login in using firefox or chrome , just refreshes the page, i can with the e
Totally Zenned
im getting this error when i click confirm order
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/classes/shipping.php on line 32
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/classes/shipping.php on line 32
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/classes/order.php on line 390
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/modules/order_total/ot_shipping.php on line 41
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/modules/order_total/ot_shipping.php on line 41
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/classes/order.php on line 700
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: addslashes() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/functions/functions_general.php on line 861
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: explode() expects parameter 2 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/classes/observers/class.advshipperCheckoutProcess.php on line 48
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: explode() expects parameter 2 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/classes/observers/class.sopshipperCheckoutProcess.php on line 48
[10-Sep-2018 13:52:11 America/New_York] PHP Fatal error: Call to a member function RecordCount() on a non-object in /var/www/clients/client1/web4/web/WorkSite/includes/classes/observers/class.products_with_attributes_stock.php on line 727
Totally Zenned
getting this error when try to look at orders
[10-Sep-2018 14:09:17 America/New_York] PHP Fatal error: Call to undefined method order::notify() in /var/www/clients/client1/web4/web/WorkSite/FAKEADMIN/includes/classes/order.php on line 184
Totally Zenned
jimmie:
im getting this error when i click confirm order
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/classes/shipping.php on line 32
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/classes/shipping.php on line 32
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/classes/order.php on line 390
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/modules/order_total/ot_shipping.php on line 41
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: substr() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/modules/order_total/ot_shipping.php on line 41
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/classes/order.php on line 700
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: addslashes() expects parameter 1 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/functions/functions_general.php on line 861
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: explode() expects parameter 2 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/classes/observers/class.advshipperCheckoutProcess.php on line 48
[10-Sep-2018 13:52:11 America/New_York] PHP Warning: explode() expects parameter 2 to be string, array given in /var/www/clients/client1/web4/web/WorkSite/includes/classes/observers/class.sopshipperCheckoutProcess.php on line 48
[10-Sep-2018 13:52:11 America/New_York] PHP Fatal error: Call to a member function RecordCount() on a non-object in /var/www/clients/client1/web4/web/WorkSite/includes/classes/observers/class.products_with_attributes_stock.php on line 727
SBA offers one and only one modification to the includes/modules/pages/checkout_confirmation/header_php.php file (which looks like the file that may be associated with this issue). The one change is to add
, $order->products[$i]['attributes'], 'order'
to the end of the line that starts with:
if ($stock_check[$i] = zen_check_stock($order->products[$i]['id'], $order->products[$i]['qty']
All of the issues identified above appear to be related to the header file and capturing information from the generated page. The first issue appears to be that the shipping method was stored to the page as an array which seems to cause many of the follow-on issues.
At any rate, SBA makes the one change identified above and adds changes in two places of the checkout_confirmation template to display some additional information (that information is not required to be on the page to support operation, but helps keep information together as relates to the customid information if desired to be shown.) Technically, if both files were restored to their original condition then SBA would work just fine except for the condition where the person arriving at this page may be permitted to purchase an item that has already run out of stock because a "previous" person purchased it just before the confirmation page was processed.
What I'm saying is, that while perhaps one of the files from the plugin was used to fully overwrite some existing template file, there really is little from the provided template file that needs to be modified, as such I can not say that there is a specific problem with the plugin, but perhaps a way that it was "introduced" into the store code. Typically should start at the top of the errors and work down, this means that the first issue seen is that line 32 of the shipping class should be receiving a string not an array. After that, pretty much everything else is a result of that issue.
Totally Zenned
jimmie:
getting this error when try to look at orders
[10-Sep-2018 14:09:17 America/New_York] PHP Fatal error: Call to undefined method order::notify() in /var/www/clients/client1/web4/web/WorkSite/FAKEADMIN/includes/classes/order.php on line 184
Didn't put a comment in the file, but in:
admin/includes/classes/order.php
Change:
class order {
to:
class order extends base {
Totally Zenned
i believe i now have it working
Totally Zenned
jimmie:
i believe i now have it working
Good. What was the cause of all of the messages when clicking on the continue button for the checkout_confirmation page?
Totally Zenned
not really sure, restarted, there are some things i merged that i shouldnt have, this time i merged 1 file at a time, saved, checked site and it is working so im carrying on
Totally Zenned
what triggers swapping to attribute picture instead of product picture?
Totally Zenned
jimmie:
what triggers swapping to attribute picture instead of product picture?
Well, you're using radio buttons which as I recall isn't in the design to automatically use, but could be added with a little work. If I'm wrong about that there is a setting added to the configuration->attributes section to be able to disable it.
If it is something desired, then changing the attribute option name type to the newly added SBA select (dropdown) option will activate that, but will also change your radio buttons to a dropdown.
Sorry, am busy with something and unable to navigate the code at the moment to further clarify.
Totally Zenned
How can i hide Customid on product info page, my Customers dont really need to see this on this page?
Totally Zenned
for starters if i was to use developers tools to search for every instance of customid and copied and pasted in ProductUPC would that work to add a Product UPC?
Totally Zenned
jimmie:
for starters if i was to use developers tools to search for every instance of customid and copied and pasted in ProductUPC would that work to add a Product UPC?
on trying it, not gonna work that way, i just need to "scan" for it using a barcode scanner. Doesnt need to show anywhere except admin. would also like to "search" by customid
Totally Zenned
jimmie:
How can i hide Customid on product info page, my Customers dont really need to see this on this page?
So there is an admin setting in configure->Stock that opts to display or not display the customid. The customid is whatever data you put into the field, though currently it is set/considered to be a string of some type. The constant associated with this option is: STOCK_SBA_DISPLAY_CUSTOMID.
There are a few places associated with the catalog side where this is used/listed:
includes/classes/observers/class.products_with_attributes_stock.php (2 places, one for the attributes list and one for the customer account history)
includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php (for the shopping cart)
Currently if you want to keep it on for the admin but turn it off for the catalog, then I might suggest (though haven't tried) to modify the code in that area to be something like:
false && STOCK_SBA_DISPLAY_CUSTOMID == 'true'
As for searching on the information, I recently saw some incorporated code that would make the customid a part of the search which I was going to incorporate, but hadn't yet. The field just needs to be added in as part of the overall search criteria.
Totally Zenned
this product i use grid on, https://jnsflooringandsupplies.com/index.php?main_page=product_info&cPath=55_681_1967_1972&products_id=8205
it has the word Quantity in a weird place, how to remove that and highlite option_name make it look the same as sba basic, or radio ETC.
Totally Zenned
jimmie:
this product i use grid on, https://jnsflooringandsupplies.com/index.php?main_page=product_info&cPath=55_681_1967_1972&products_id=8205
it has the word Quantity in a weird place, how to remove that and highlite option_name make it look the same as sba basic, or radio ETC.
While this question is better suited in the Products Attribute Grid forum, the answer to the first part is to modify includes\languages\english\extra_definitions\absolute_attribute_grid.php and change:
define('TEXT_ATTRIBUTE_GRID_QTY', 'Quantity' );
to:
define('TEXT_ATTRIBUTE_GRID_QTY', '' );
The second part, could add to the stylesheet.css file somewhere after line one:
#attrib-grid-opt-nameV {
font-weight: 600;
}
``` Or adjust as necessary.
Totally Zenned
the dynamic drop down allows checkout when nothing is picked, how do i make it read only, (Please check from below)
Totally Zenned
jimmie:
the dynamic drop down allows checkout when nothing is picked, how do i make it read only, (Please check from below)
Do you have one or more than one option name associated with the product in question?
If one, then suggest going to admin->catalog->option Name Manager, selecting the option name in question, edit, and change the option Type from most likely Dropdown to: SBA Select List (Dropdown) Basic.
If more than one option name then will need more information.
Fields marked required must be completed.
Tell staff why this post should be reviewed.
Required for login, security, and core site functionality.
Help us understand how the site is used so we can improve it.
Used for promotion and personalized campaign measurement.