need some help, I added "the add to cart short code" to some items on my page. I wanted to add the add to cart notices to page as well.
I don't have a lot of experience with wordpress or woocommerce. I added the class "woocommerce-message" to a div and display this function
which does display a message, but it shows the div when there is no message
can someone one please show me the correct way to do this, a step by step example?
Thanks I appreciate any help
I believe your page needs to have wc_print_notices(); on it. Then the notices should appear when they are needed.
Related
I am trying to restore the missing titles to posts in my categories, tags, search pages.
I vaguely remember changing something but don't know where. It was a long time ago.
The problem is so bad that if there is no 'read more' button, you can't click on a result to go to the page.
Any tips about how to find where this code change would be located?
Thanks.
if you know what the code was there is a plugin called string locator (https://wordpress.org/plugins/string-locator/) it allows you to give a small snippet of code or a call and it will tell you every place that code is found in the entirety of WordPress.
OK after quite a while of various methods, I re-installed the plugin 'yellow pencil'. I had made some customizations that the plugin claims to be reversible at the click of a button globally (It didn't delete them). I found a post title that did appear and then reverted all customizations globally to it on a live category page. Thank god it all works as it should now!
Thank you to all that tried to help me.
I'm making my first WooCommerce website, but I found a problem that I couldn't resolve, and Google didn't help me either.
My problem is that when I'm on the shopping cart page and I only have one kind of product, the "proceed to checkout" button is not there, and when I add another kind of product it appears, I will show a gift to illustrate this better
As you can see, when there are two different kinds of items on the cart, the button is there, but when I remove one it disappears. I'm sure I changed one setting accidentally or something, but now I can't find. If anyone could help me with this I would highly appreciate it. Thank You.
I found the answer, it was a conflict of a plugin (mercado pago) with a template.
Couldn't find anything on Google... Hope someone here knows an solution.
In woocommerce you can add the terms and conditions page in the checkout settings. After that, a checkbox appears on the checkoutpage so the customer needs to accept the terms.
But... in my case, the checkbox AND proceed button appear twice now...
I disabled all plugins, tried another theme, dit all updates. Latest of all.
When I remove the terms in the CMS, the double button dissappears again.
Ideas how to solve this??
Thank you in advance.
Ok... I found out that the terms page gave problems and another page did not.
There was a link to a pdf in the Terms page. When I removed that, the double button problem disappeared. Now I have added a new link and the problem still doensn't appear again..... very strange.
I'm using car66 plugin in my wordpress site and I want to use the plugin's shortcode to add items into the cart. I don't know how to call a shorcode in a page. The short code is supposed to generate a button that allows the user to add items into the cart. However it is not adding into the cart. Please help me. My code is here. Please help. [add_to_cart item="EX-29"]
I figured out to use the do_shortcode inbuilt function. For example I used echo do_shortcode("[add_to_cart item=\"EX-29]\""); and it worked.
Hey everyone,
I wanted to add a previous / next link below my recent posts widget. The default wordpress widget shows the most recent 5 posts, but I want the user to be able to scroll through all of my posts through this widget, so if they click previous it would show them the next five posts.
I have searched high and low, but couldn't find anything :/ (or for that matter any widget that does ths). Would appreciate the help from any code monkeys. No preference on how it is implemented, ajax, page refresh etc.
You can use jQuery to do pagination; all you need to do then is modify the default widget code.
http://wpcanyon.com/tipsandtricks/the-easy-way-to-make-wordpress-ajax-pagination-using-jquery/
This might also be just the plugin you need:
http://wordpress.org/extend/plugins/wp-ajax-recent-posts/
Hope this helps!