I need to refresh the checkout page if someone changes the zip code
I need to refresh the checkout page if someone changes the zip code
I need to refresh the checkout page if someone changes the zip code
You can use some Javascript to trigger the click. For example: $(‘.product-thumb’).click(function(event) { var product_link = $(this).find(‘product-thumb-primary a’); // Don’t trigger a click on the existing link if(!event.target.href && product_link.length) { document.location.href = product_link.attr(‘href’); } }); Un-tested but that’s the basic logic.
The link you provided was a category page. When I went to a product page, the add to cart and options were visible.
The callback used to render the “Description” tab is woocommerce_product_description_tab(), which simply loads the template file single-product/tabs/description.php. And for the “Additional Information” tab, the callback is woocommerce_product_additional_information_tab() and the template is single-product/tabs/additional-information.php. So if you want to merge the two tabs, you can copy the “relevant” contents from the template file, like so: add_filter( ‘woocommerce_product_tabs’, … Read more
I assume that you want to create your own import plugin here. The reason that your server timing-out is possible due exporting all products in one request. So, what I will do for that scenario is by using ajax import. Instead of trying to save all data in one go, you can use ajax to … Read more
I’ve done this customly before, but you don’t sound like you want a programmatic answer, please let me know if that’s not the case, otherwise… A quick search and I came up with Woocommerce Account Pages. I haven’t used it, and it does cost $49, but it might be the most concise solution for you. … Read more
What you see if default Woocommerce. To override the cart page, copy the WooCommerce template file to your theme like so: woocommerce/templates/cart/cart.php to –> yourtheme/woocommerce/cart/cart.php and modify it in your theme.
You could hook a custom post creation function to the woocommerce_thankyou action that is fired on the thank you page after the order has been created. This action gives you the $order_id as a parameter. The post creation function could be something like this, function create_post_after_order( $order_id ) { if ( $order_id ) { return; … Read more
This is the correct method WC()->cart->add_to_cart($id);
content-product_cat.php is the equivalent template for the category thumbnails. You want to copy templates/content-product_cat.php to your theme and modify it, the same way you presumably did for content-product.php. As with the product template, though, the only HTML in the template is the <li> tag. The rest is output through hooks.