sharpe89
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Store Locator] Custom jQuery Afterload FunctionNo worries.
I fixed my own problem. No Stylesheet was included for the customscrollbar to show it’s styling. ??
Sorry I didn’t have jQuery Smooth Scroll installed although I can confirm with all plugins deactivated and Twenty Fifteen installed that the tabs do work again. Ended up there was a conflict between my custom built theme and a plugin.
Just remember to deactivate EVERYTHING!
My mistake is usually thinking that a plugin I’ve used and trusted for a while will never let me down, regarding whether conflicting code with other plugins comes into place. It might not be your theme, so make sure plugins come into question too.
I have the same issue. Tabs for Product Desc, Additional Info & Reviews don’t seem to be clickable. I’m assuming a class has been changed on these that was linked to JS.
Appreciate the help.
Zane
Same problem as David initially with Facebook not logging in or even registering the new user. Then realised that if the user has already registered manually before trying to log in with Facebook (with same email address), it redirects with success message but does not log in or register.
Maybe a message saying this email address has already been used by another user would be helpful and no redirection. ??
Forum: Plugins
In reply to: [Insert Pages] Post Template Works, Page Template BreaksFYI, shortcodes ive used are as followed:
Post Type
[insert page=’hello-world’ display=’who-we-are.php’]Page Type
[insert page=’who-we-are’ display=’who-we-are.php’]Aye got it working! ?? thanks!
dcooney
Much appreciated! Thankyou! ??
Found an easier solution to output the taxonomy than my previous code by using the global ‘get_term’ by slug:
<?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?>
I then outputted the shortcode:
<?php echo do_shortcode('[ajax_load_more post_type="product" taxonomy="product_cat" taxonomy_terms="'. $term->slug . '"]'); ?>
Fantastic work Rcreators. currently running website without any errors on ajax side of things. Great work. I’ll send a link once website is live for your own interest.
Rcreators
Great work again. Yeh i think most woocommerce users are very keen on the latest ways to use and adjust variations, for example:
Visual Attributes
https://codecanyon.net/item/visual-attributes-woocommerce-variable-products/7981304Variation Swatches
https://www.woothemes.com/products/variation-swatches-and-photos/Thanks very much again! i think you’ve built the plugin great to integrate into most woocommerce templates, as long as people don’t dig too deep into removing the core elements of the template files, your plugin will work fine. ??
Just figured out the Ajax part for cart contents. I used the following in my functions.php (remember to include the a class part into theme / woocommerce templates (most likely mini-cart.php):
// Ensure cart contents update when products are added to the cart via AJAX (place the following in functions.php) add_filter('add_to_cart_fragments', 'woocommerce_header_add_to_cart_fragment'); function woocommerce_header_add_to_cart_fragment( $fragments ) { global $woocommerce; ob_start(); ?> <a class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"><?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?> - <?php echo $woocommerce->cart->get_cart_total(); ?></a> <?php $fragments['a.cart-contents'] = ob_get_clean(); return $fragments; }
RCreators
FANTASTIC Work! your help is very much appreciated. Check out https://www.love2print.net/product/hen-night-out/ to see for yourself.
Next thing would be more of a custom code request as it’s not default by woocommerce. I am using the following to output (N) items – £Price below the View Cart element:
<?php global $woocommerce; ?> <a class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"><?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?> - <?php echo $woocommerce->cart->get_cart_total(); ?></a>
However, it doesn’t change via the AJAX request, would this be just a case of changing the .JS file directly in your plugin?
Also, I’d prefer to not load all variables in the archive pages as there are a lot, LOL! can i just keep the ajax request for single product pages only? I don’t mind editing core files of the plugin if that’s what it needs, or excluding it through the template pages. CSS of course can do this, but it also removes elements like ‘Select Options’ which I want to keep.
I think i should maybe start a new topic for this stuff. what do you think? just to help with other users looking for answers.
Hi Rcreators
Much appreciated and thanks for all the hard work. Apologies, i didnt realise it was yours, lol, all credit to yourself, nice post! ??
Probably my bad developing skills but I’m getting 500 Internal Error with wp-admin/admin-ajax.php although it works when I use define(‘WP_DEBUG’, true);
Finally, maybe for future updates, could we get the Cart Widget to update via Ajax? as i have to refresh the page for anything to show in it. ??
Look forward to your response.
Forum: Plugins
In reply to: [WP e-Commerce Predictive Search] From Back-endSteve, i think he meant php code for importing the widget into his theme for example “<?php widget search code here ?>”
It’d be good to get one of these into the FAQ
Forum: Plugins
In reply to: [Testimonial Basics] Widget Excerptyeh the excerpt, just thinking can you maybe give an option, for example. to have a “50” character max for the widget.
if not, even just some code to put in katb_testimonial_widget.php
Thanks!
Stephen