problem about woocommerce-Collection of common programming errors
user3084340
php wordpress woocommerce
This question already has an answer here:Reference – What does this error mean in PHP?23 answersHi I’m getting this error message Parse error: syntax error, unexpected end of file in woocommerce.php on line 56, when I am trying to view my products in woocommerce. Here is the code for that file. Line 56 is the last line.”><div class=”container” role=”main”><div class=”row”><?php do_action( ‘__before_article_container’); ##hook of left sidebar?><div id=”content” class=”<?ph
Shankar Damodaran
php wordpress woocommerce
I keep getting the error below..Parse error: syntax error, unexpected ‘function’ (T_FUNCTION),expecting on line 319for the theme-woocommerce.php file. I have tried using numerous code checkers and none have found a problem on line 319 of the code. This is frustrating as I have not edited the code, rather have copied and pasted a section out and then repasted it into the editor. Having done that, my whole website now does not work. Can someone please help? I read something about Mac computers cha
Stony
php wordpress parsing syntax-error woocommerce
I am getting the following error once I add an item to my site’s cart, and try to load the carts page. Parse error: syntax error, unexpected T_DEC in /home/puppykis/public_html/wp-content/plugins/woocommerce/templates/cart/cart.php on line 96I am using WordPress with the WooCommerce plugin. The cart page was working fine, and all of a sudden started acting weird on me.Below is the code. I wasn’t sure how to add line numbers, but this is last snippet of code from the cart.php file. The last line
Zaid Iqbal
wordpress performance woocommerce
How to make my wordpress woocommerce website performance fast. My website is http://www.furniturehub.pk/. But it is loading too slow. I have also checked its performance which is 64/100. So how can i make it more FAST?
Francesca
php wordpress function woocommerce
I’m using Woocommerce in WordPress and am trying to add two pieces of code from their documentation to my functions.php fileSee here for the two pieces of code I want to add.I added the first to my file and it worked great. But add the second one and the entire site smashes, I assume because the functions.php file is so vital and there is a syntax error… but I can’t spot it, and this documentation comes from their site!This is what I have added:add_filter( ‘add_to_cart_text’, ‘woo_custom_cart_
kaiser
woocommerce
Im trying to get WooCommerce installed correctly so I can do a bulk import of a clients product database into this. Basically when I activate the WooCommerce plugin it causes the page editor javascript to die.I end up with the following JavaScript errorUncaught ReferenceError: switchEditors is not definedIm using the latest version of WooCommerce and the latest version of WordPress – both downloaded yesterday from the original sites not some other site that it could be damaged from.I’m also gett
Dana Bouchard
wordpress wordpress-plugin shopping-cart woocommerce
Updated WordPress to newest version and lost our Add to Cart Button. I’ve been searching everywhere for a solution and tried the ones I have found. We do not have a backup prior to updating unfortunately : /These are the errors that show in Chrome developer tools browser when on a page with missing button. GET http://lifefarout.com/wp-content/plugins/woocommerce/assets/js/jquery-cookie/jquery.cookie.min.js?ver=1.3.1 406 (Not Acceptable) lifefarout.com:51Uncaught TypeError: Object function (e,t){
Johannes Kuhn
jquery woocommerce
I am trying to add fly to cart animation to woocommerce plugin, in order to get this I have used the following codejQuery(document).ready(function(e){e(document).on(“click”,”.add_to_cart_button”,function(){var t=e(this);if(t.is(“.product_type_simple, .product_type_downloadable, .product_type_virtual”)){var cart = $(‘.widget_shopping_cart_content’); var imgtodrag = $(‘.event img’).eq(0);var imgclone = imgtodrag.clone().offset({top: imgtodrag.offset().top,left: imgtodrag.offset().left}).css({‘opac
MavBzh
php jquery wordpress woocommerce
I use cloudzoom script through the cloudzoom-woocommerce plugin to add a zoom feature on my woocommerce product pages. Everything works fine since it replaces easily the default fancybox script.I’ve then installed woothumbs, a third party plugin to manage image galleries on product variations. This plugin reload the main image and the thumbs when the user switch variations and then, a JS callback can be set to reinit Cloudzoom.I’ve made some modifications in the cloudzoom plugin file cloudzoom.p
Remy Sheppard
php jquery radio-button woocommerce
I’m having trouble converting the variation dropdowns into radio buttons a woocommerce enabled site. I’ve tried the answer found here but I can’t seem to make this solution work. I’ve also tried editing the code in the variable.php file.So far the most success is the second approach, editing the variable.php code and changing the tags to tags. The problem is the natural jQuery event isn’t triggered when the radio buttons are clicked.If any of you know a simpler way to convert the dropdowns to
Leon Francis Shelhamer
javascript jquery wordpress woocommerce
I am using the Blanco theme (WordPress). This is a WooCommerce theme from theme forest that has Cloud Zoom JQuery built into the single product pages. I am also using the “WooCommerce Variation Swatches and Photos” plugin. This creates visial swatches to replace WooCommerce drop down selector menus for product variations.The swatch on the page uses js to highlight the one that has been clicked so that is can be highlighted and for when the item is added to the cart.The gallery images use js to c
Eugene Manuilov
woocommerce extend
I am trying to extend WC_Cart in woocommerce, from what i understand my code should be correct. However when I load the cart I get the following message. Fatal error: Call to undefined method WC_Cart::get_prediscount_total() in …Code in my plugin:class My_WC_Cart extends WC_Cart { public function get_prediscount_total() {return apply_filters( ‘woocommerce_cart_total’, woocommerce_price( $this->total * 5 ) ); } }The output code is echo $woocommerce->cart->get_prediscount_total();This
Globalz
media woocommerce
I am using woocommerce, I have setup a variable product. Under each attribute, when I try to add a thumbnail image by clicking on the Insert Into Post button for the Media Uploader dialog, the dialog box becomes empty without any content. In the javascript console in Google Chrome, I get the following error: post.php:1310 Uncaught TypeError: Cannot call method ‘replace’ of undefinedAny ideas? Thanks!
Charles Southey
e-commerce woocommerce sagepay
When logged in as admin checkout fails and doesn’t output any errors, works fine when logged out or logged in as a customer.When putting WP into debug mode i get the following PHP Notices:Notice: Undefined variable: cards in /wp-content/plugins/sagepay-direct-for-woocommerce-payment-gateway/ds-sagepay-direct.php on line 155Notice: Undefined property: DS_Sagepay_Direct::$validated in /wp-content/plugins/sagepay-direct-for-woocommerce-payment-gateway/ds-sagepay-direct.php on line 476Please help!
SharkofMirkwood
php wordpress woocommerce
I’m using the wordpress theme “Mystile” and when i activate it and activate woocommerce i get this error in the header: Fatal error: Call to undefined method WC_Cart::get_cart_contents_count() in C:\xampp\htdocs\lol\wp-content\themes\mystile\includes\theme-woocommerce.php on line 371And on line 371 is the following : <?phpecho $woocommerce->cart->get_cart_total();echo ‘<span class=”contents”>’ .sprintf(_n(‘%d item’, ‘%d items’, $woocommerce->cart->get_cart_contents_count(),
Michael Giovanni Pumo
jquery wordpress wordpress-plugin woocommerce
I am developing a WooCommerce website with a custom theme (copied the templates etc)Anyhow, when viewing a product with variations, I am unable to see the cart button. Once my selection is made, no cart button appears. There is a JS error: t.product_variations is undefined.All variations are set correctly.I’ve read of many threads saying the cart button does not appear, but nothing so far seemes to have solved my specific problem – and no mentioned of my JS error. Here’s what I have tried so far
Web site is in building