If you have a slow import, or if you're running into a lot of server timeouts, then you can follow these steps to optimize your import.
Follow all of the steps listed here: http://www.wpallimport.com/documentation/troubleshooting/slow-imports/.
| <?php | |
| /** | |
| * Additions to the Product Add-on Plugins | |
| * | |
| * Enables us to add a product taxonomy to the | |
| * addon so we can further refine where it | |
| * is displayed | |
| * | |
| * |
If you have a slow import, or if you're running into a lot of server timeouts, then you can follow these steps to optimize your import.
Follow all of the steps listed here: http://www.wpallimport.com/documentation/troubleshooting/slow-imports/.
| /** | |
| * Show cart contents / total Ajax | |
| */ | |
| add_filter( 'woocommerce_add_to_cart_fragments', 'woocommerce_header_add_to_cart_fragment' ); | |
| function woocommerce_header_add_to_cart_fragment( $fragments ) { | |
| global $woocommerce; | |
| ob_start(); |
| /* - woo cat toggling elements, injected via jQuery - */ | |
| /* make list item be relative, to be able to position toggle within this item, if desired */ | |
| #sidebar .widget_product_categories ul.product-categories > li.cat-parent { | |
| position: relative; | |
| } | |
| /* the new toggle element wrapper, which is added via jQuery */ | |
| #sidebar .widget_product_categories ul.product-categories > li.cat-parent .woo-cat-toggle { | |
| cursor: pointer; | |
| display: inline-block; |
| product_add_to_cart : function(){ | |
| var ajx_data = {}; | |
| var ajx_grab = {}; | |
| $(document).on('change','.single-product .variations_form select',function(e){ | |
| var $this = $(this); | |
| var pro_id = $(".single-product .variations_form").attr('data-product_id'); | |
| var attribute_name = $this.attr('data-attribute_name'); | |
| var attribute_value = $this.val(); | |
| var post_ajxurl = window.location+"?wc-ajax=get_variation"; |