ashrafkotb
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Dummy page after removing item from cartI think this is a bit different from what I’m trying to achieve. I found something very close to what I want to achieve, but it seems it needs to be reviewed for the latest version. I tried to use it as is, but the notice still appears.
function remove_added_to_cart_notice() { $notices = WC()->session->get('wc_notices', array()); foreach( $notices['notice'] as $key => &$notice){ if( strpos( $notice, 'whilst' ) !== false){ $BadNotice_key = $key; unset( $notices['notice'][$BadNotice_key] ); WC()->session->set('wc_notices', $notices); break; } } unset( $notices['notices'][$added_to_cart_key] ); WC()->session->set('wc_notices', $notices); } add_action('woocommerce_before_single_product','remove_added_to_cart_notice',1); add_action('woocommerce_shortcode_before_product_cat_loop','remove_added_to_cart_notice',1); add_action('woocommerce_before_shop_loop','remove_added_to_cart_notice',1);Could you please check the above and let me know if it needs any changes?
Forum: Plugins
In reply to: [WooCommerce] Dummy page after removing item from cartThanks for your reply Mashi. The link is a guide to a different problem (the cart is not being updated).
My issue is different. The cart gets updated when adding a product. However, when I try to remove a product from the cart, I get that dummy page in the screenshot above.
I want to bypass this notice and get a refreshed version of the cart.
The correct view I want to get after removing the item from the cart would look like this: https://ibb.co/QD3XF60
- This reply was modified 4 years, 1 month ago by ashrafkotb.
Same issue here.
http://www.enfradonline.com/ulensyAfter changing to PHP 5.6, it worked.
However, then I add a new form and save, all color settings (text field borders, button color, etc…) are cleared.Forum: Plugins
In reply to: [Ultimate Posts Widget] thumbnail align leftHi Guys,
After some research I found the solution myself.
Go to the plugin CSS at:
wp-content/plugins/ultimate-posts-widget/css/upw-theme-standard.min.cssedit the text:
.upw-posts .entry-image img{max-width:100%;height:auto}To be:
.upw-posts .entry-image img{max-width:100%;height:auto;float:left;padding-right:1em}Save the file, you are all done 🙂
Forum: Plugins
In reply to: [Ultimate Posts Widget] thumbnail align leftWondering the same. Can anyone please help with some simple steps?
I’m displaying the posts in a page using the shortcode.