mbasfour
Forum Replies Created
-
Hi @ihereira
This is the shop page https://accessories.domvp.xyz/shop/
You can see that theRecently Viewedwidget products are 4 same as the shop, when I use the above code this widget will also show 3 products per row, I want the main loop only to be 3 products per row and everything else to be 4@babylon1999 thank you for your answer, but this is not what I want to implement, I want to change the number of columns, not the number of products to show on the shop page.
Forum: Plugins
In reply to: [WP Referral Code] Referral link shows zero@dan471
I was facing the same issue, check if this answer can help you- This reply was modified 4 years, 8 months ago by mbasfour.
Forum: Plugins
In reply to: [WP Referral Code] WP Referral code with Ultimate MemberI had the same issue and after some debugging, I figured out the reason and fixed it.
The issue is in the referrer code getting changed in the URL, I had the following URL for the registration page with referrer code<url>/register/?ref=h0eegc24sometimes a/is added to the end of the URL for some reason so it becomes<url>/register/?ref=h0eegc24/, which invalidates the code and causes the plugin to not link the new referred user with the referrer account.
So to fix this I needed to remove the extra/at the end of the referred code using thewp_referral_code_new_user_ref_codefilter like this:add_filter('wp_referral_code_new_user_ref_code', 'fix_referral_code', 10, 2); function fix_referral_code($ref_code, $user_id) { return rtrim($ref_code, '/'); }- This reply was modified 4 years, 8 months ago by mbasfour.
The problem was a minor bug in the plugin code, the add term modal html wasn’t being included in the add product page as a result of wrong conditional statement in the class-admin.php file on line 266:
if ( $pagenow != 'post.php' || ( isset( $post ) && get_post_type( $post->ID ) != 'product' ) )This condition doesn’t check for the add product page so to fix it we need to add the post-new.php page as an accepted page using this statement:
if ( ($pagenow != 'post.php' && $pagenow != 'post-new.php') || ( isset( $post ) && get_post_type( $post->ID ) != 'product' ) )