The cart, checkout, and shop links not getting removed
Oops, my bad. I’m new to wordpress so I did not know that the pages created my plugins persists even when they are uninstalled. I had to delete cart, shop, and checkout from pages.
Oops, my bad. I’m new to wordpress so I did not know that the pages created my plugins persists even when they are uninstalled. I had to delete cart, shop, and checkout from pages.
When your are updating your product regular price is saved to _regular_price and sale price is saved to _sale_price meta_key. Also WooCommerce will figure out which is the current price sale or regular and will save it to _price meta_key. There is no need to sort products by two _regular_price and _sale_price meta_keys. Your current … Read more
You can overwrite woocommerce templates placing them in your theme. To overwrite e.g. form-billing.php template, place it in yourtheme/woocommerce/checkout/form-billing.php directory. You can also add filter to overwrite form field rendering function. Or even overwrite whole function. To add new fields refer to WooCommerce documentation. I’m pasting code from documentation for adding fields to not leave … Read more
Solved the issue. I use varnish on my site and this was causing the problem. If you use varnish too exclude the my-account page and the following cookie from your varnish: wp-resetpass-.?
Woocommerce would be a bit restrictive for this scenario. WC sells premade products, so the workflow would be: visitor requests a quote and goes to database as usual; then admin determines the price, sets up a WC product with the correct name and price, then emails the visitor a link to the product page. Finally, … Read more
Your loop is wrong, you should not use to foreach inside the while, simply add the classic the_post () using the variable of your loop in this case $ loop for example <?php $args = array( ‘post_type’ => ‘product’, ‘stock’ => 1, ‘posts_per_page’ => 9, ‘product_cat’ => $pagename, ); $loop = new WP_Query( $args ); … Read more
Did you confirm it was the transient values causing the options to not update? Here’s the WordPress function to clear transient values: https://codex.wordpress.org/Function_Reference/delete_transient An example: <?php // Create a simple function to delete our transient function edit_term_delete_transient() { delete_transient( ‘the_transient_name_to_delete’ ); } // Add the function to the edit_term hook so it runs when categories/tags … Read more
This behavior is being applied by your theme’s javascript. There’s a global variable being set in the head of the page by the theme: <script type=”text/javascript”> /* <![CDATA[ */ var edgeGlobalVars = {“vars”:{“edgeAddForAdminBar”:0,”edgeElementAppearAmount”:-100,”edgeAddingToCartLabel”:”Adding to Cart…”,”edgeTopBarHeight”:0,”edgeStickyHeaderHeight”:0,”edgeStickyHeaderTransparencyHeight”:60,”edgeLogoAreaHeight”:0,”edgeMenuAreaHeight”:96,”edgeMobileHeaderHeight”:60}}; var edgePerPageVars = {“vars”:{“edgeStickyScrollAmount”:0,”edgeHeaderTransparencyHeight”:0}}; /* ]]> */ </script> and a call to a minified/aggregate compiled theme js file: <script type=”text/javascript” … Read more
Under “Field Type” you can select “Taxonomy”. Then once that type is selected you should see additional options to select the taxonomy you want to use, and also the field type you would like to use for selecting them (checkbox, radio button, etc.):
I don’t think there is a native shortcode for recently viewed products but, again, there are two options here. One is to use the widget with a unique sidebar, wrapped in a condition, or you can create your own function/shortcode. 1. Conditional sidebar Add the following code to your functions.php file. This will enable a … Read more