bkmason
Forum Replies Created
-
Forum: Plugins
In reply to: [NP Quote Request for WooCommerce] error after update woocommercesorry don’t have that plugin. bkmason
Forum: Plugins
In reply to: [NP Quote Request for WooCommerce] error after update woocommercenow on 7.1.4. Still nothing working.
Forum: Plugins
In reply to: [NP Quote Request for WooCommerce] error after update woocommerceAs I stated above My problem occurred when I modified code in my child themes function.php file. Since, I’ve modified and/or deleted the code, completely removed the function.php file, reinstalled woo-commerce and WordPress and deactivated all my plugins but I’m still frozen out of my site. When I deactivate the woocommerce plugin and/or remove the woocommerce.php file from the woo-commerce plugin, the only thing that shows up is my sites menu bar with “Notice: Trying to get property of non-object in /home4/nsdinc/public_html/wp-includes/nav-menu.php on line 780.”& Notice: Use of undefined constant WOOCOMMERCE_VERSION…
Forum: Plugins
In reply to: [NP Quote Request for WooCommerce] error after update woocommerceUsing wp:4.9.2/wc:3.2.6/php:7.0.25
Forum: Plugins
In reply to: [NP Quote Request for WooCommerce] error after update woocommerceHi, I’m getting the same message: Unsupported operand types in /home4/###/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:234 etc. The difference is I have prices attached to my products. When I select “visit site” in my dashboard the only thing visible are those error messages frozen on the screen. My problem occurred when I modified code in my child themes function.php file. Since I modified, deleted the code, completely removed the file, reinstalled woo-commerce and WordPress but I’m still frozen out of my site. If I remove the woocommerce.php file or deactivate the woocommerce plugin my menu bar shows up. Any help would be appreciated. Using wp:4.9.2/wc:3.2.6/php:7.0.25
Forum: Plugins
In reply to: Getting current product attribute pa_colorDoes anybody have an answer to this question? I’ve posted three question on this form over the past three years and have never gotten an answer or even a response. Is this an active form?
Forum: Hacks
In reply to: enqueue can't find script fileresolved: my theme didn’t have a js folder in it’s root directory.guess they just decided not to put one in. that cost me a week and a half of redundant research. This is why I kept asking in what folder do you place the script. This is also the problem when you read the literature. It gives examples like the code goes here or place this in your file. Assuming you know what code, what file! not a good educational technique. Anyway want to thank catacaustic for being the only one for at least trying to help.
Forum: Hacks
In reply to: enqueue can't find script fileJust searching through the product templates, might take some time. just for the heck of it I’ve reset the enqueue. when you get a chance could you check and see if it loads or why not. I would appreciate it. meantime I’ll take a look at the templates and try and figure out what your telling me.
thanks agianForum: Hacks
In reply to: enqueue can't find script filejust deciphering what you were saying. I was planning on removing the drop down after I link the base price into the table. Was using JavaScript to display and calculate the data from the base price. Thought if customer wanted to check another product they’d have to leave single product page select another product which would take them back to the single page with the new sizes and base price for java to calculate from. I’m sure your right but how would you add the table and get it to calculate in the product template without script.
Forum: Hacks
In reply to: enqueue can't find script filecatacaustic
As I mention above I put the script in the header to test it but would like to use my child function.php to call the “pricetable.js” file the correct way so that I can clean up my templates and use the add action and filter hooks to place the table in the proper area of the product page.I forgot to comment out the script in the header and reactivate the enqueue script in the function.php before you viewed the site. I apologize and have done that.I was hoping you would take another look to see if the url is being loaded and if not explain what I’m doing wrong. Or perhaps explain what i need to do in firebug so I can learn how to check and see what resources are being loaded myself.
The table you saw only had dummy data in it. I would like to use the product hooks to link price & size to the table. That’s why I ask if you new the proper syntax to use to retrieve information from a hook and use it as a variable within the script itself.
Thanks againForum: Hacks
In reply to: enqueue can't find script fileCatacaustic: thanks for getting back
1)link should be there just used it’ it works. starts w/gator 2012
2)no results means it seems it can’t find the file as far as I know. there may be another issue don’t know?
3)I’m aware of the hard code problem read about it in the codex.however tried that out of desperation with full domain name and path, still couldn’t find file.
4)is it OK to have the pricetable.js in it’s own file under the child theme folder or does it need to be in the includes js sub-folder. I have it in both
5)the ftp path of the 1st prictable.j file that I placed directly under the child themes is /public_html/wp-content/themes/wootique-child/pricetable.js. the second one I placed in the includes sub-folder under the child theme is /public_html/wp-content/themes/wootique-child/includes/js.
6)I have Firebug don’t know how or what loading I’m checking for but will look into it.
thanksForum: Hacks
In reply to: enqueue can't find script fileCatacaustic thanks very much for your response. I’ve already tried the “function custom scripts” method several different ways including the way you just described. I pasted your version into my child function.php anyway with no results.
Are you referring to the get_stylesheet_directory_uri() . ‘pricetable.js’ that you just used as the url or http://wp-content/themes/wootique-child/pricetable.js as the url? I’ve used the latter in some of my enqueue examples again with no results. Do I need to include the full url path somewhere in my function.php file?
Ive pasted a link to my product page for you that well also give you access to my site. You can see my price table there only because I pasted the script directly in the child themes header.
http://gator2012.hostgator.com/~nsdinc/product/port-company-essential-t-shirt-pc61/
As I mentioned above I’m not sure where the pricetable.js file is supposed to go so I’ve put it in three different folders to try to access it. In the child theme I placed the pricetable.js file directly in its sub-directory using the wp-content/themes/wootique-child/pricetable.js path. In both the parent and child theme I also placed the “pricetable” file in wp-content/themes/wootique(child)/includes/js/ pricetable.js path.None work.
I added the action hooks in the example below to try and hook the table to the area of the product page where I wanted it to go. Like I did with the hello world example.
function custom_scripts() { wp_register_script( 'pricetable', get_stylesheet_directory_uri() . 'pricetable.js', array( 'jquery')); wp_enqueue_script( 'pricetable' ); } add_action( 'wp_enqueue_scripts', 'custom_scripts' ); add_action('woocommerce_single_product_summary','wp_enqueue_scripts');Could it be that my pricetable function is an anonymous jQuery and wordpress can’t find it or does the script file get assigned an arbitrary handle when you enqueue it. Thanks again for your help.