Showing posts with label WooCommerce. Show all posts
Showing posts with label WooCommerce. Show all posts

Tuesday, 21 August 2018

undefined undefined

Continue Shopping To Redirect Category Page Woocommerce

There is no functionality provide WooCommerce to retrieve last category page viewed. But, I solved.First create a custom action, check if page is category page, and set Cat ID to session data if so. Then on your button, use this to get proper URL.add_action( 'init', 'wp_check_product_cat_sess');function wp_check_product_cat_sess(){   ...

Tuesday, 17 July 2018

undefined undefined

Add Custom Fields To Woocommerce Products Single Page, Cart Page, Checkout Page, Order Detaile And Save To Database

<?php //add custom fields to WooCommerce products Single Page, Cart Page, Checkout Page, Order Detaile And Save To Database Table Name "wp_woocommerce_order_itemmeta" add_action( 'woocommerce_before_add_to_cart_button', 'add_fields_before_add_to_cart' );function add_fields_before_add_to_cart(){ ?>  ...