Web Expert
Forum Replies Created
-
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Yith wishlist and polylang (registered users)Actually, the problem was not with Polylang. The problem is that wp_posts holds BIGINT(20) but yith items table has int(11), so the post ID didn’t fit in there!
Can you fix that in your next release please? Its kind of bug!
- This reply was modified 6 years, 6 months ago by Web Expert.
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Yith wishlist and polylang (registered users)There should be a quick solution, like there is about the cart URL, isnt it?
If you could guide us on which hooks are called when someone adds to wishlist, we could helpForum: Plugins
In reply to: [NextScripts: Social Networks Auto-Poster] Forced to post as visitorNo need to re-authorize.
Please choose your profile from the drop down, click “Save settings”, after that choose your page from the dropdown, click “Save settings”, try to post. It might work.Confirm, it worked for me as well
Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Display discount on product pageAdd a } on the bottom of the code
I also include it again here, as I cannot edit my original post
<?php // for Bulk discounts add_filter( 'woocommerce_variable_price_html', 'webexpert_apply_to_productpage', 10, 2 ); add_filter( 'woocommerce_get_price_html', 'webexpert_apply_to_productpage', 10, 2 ); function webexpert_apply_to_productpage( $price, $product ) { $original_product=$product; $q = array( 0.0 ); $d = array( 0.0 ); $quantity=1; $configurer = get_page_by_title( 'wc_bulk_discount_configurer', OBJECT, 'product' ); if ( $configurer && $configurer->ID && $configurer->post_status == 'private' ) { $product_id = $configurer->ID; } if ($product instanceof WC_Product_Variation) { $product_id = $product->get_parent_id(); }else { $product->get_id(); } /* Find the appropriate discount coefficient by looping through up to the five discount settings */ for ( $i = 1; $i <= 5; $i++ ) { array_push( $q, get_post_meta( $product_id, "_bulkdiscount_quantity_$i", true ) ); if ( get_option( 'woocommerce_t4m_discount_type', '' ) == 'flat' ) { array_push( $d, get_post_meta( $product_id, "_bulkdiscount_discount_flat_$i", true ) ? get_post_meta( $product_id, "_bulkdiscount_discount_flat_$i", true ) : 0.0 ); } else if ( get_option( 'woocommerce_t4m_discount_type', '' ) == 'fixed' ) { array_push( $d, get_post_meta( $product_id, "_bulkdiscount_discount_fixed_$i", true ) ? get_post_meta( $product_id, "_bulkdiscount_discount_fixed_$i", true ) : 0.0 ); } else { array_push( $d, get_post_meta( $product_id, "_bulkdiscount_discount_$i", true ) ? get_post_meta( $product_id, "_bulkdiscount_discount_$i", true ) : 0.0 ); } if ( $quantity >= $q[$i] && $q[$i] > $q[0] ) { $q[0] = $q[$i]; $d[0] = $d[$i]; } } // for percentage discount convert the resulting discount from % to the multiplying coefficient if ( get_option( 'woocommerce_t4m_discount_type', '' ) == 'fixed' ) { $coeff= max( 0, $d[0] * $quantity ); } $coeff=( get_option( 'woocommerce_t4m_discount_type', '' ) == 'flat' ) ? max( 0, $d[0] ) : min( 1.0, max( 0, ( 100.0 - round( $d[0], 2 ) ) / 100.0 ) ); if ($product instanceof WC_Product_Variation) { $min_var_reg_price = $original_product->get_variation_sale_price( 'min', true ); }else { $min_var_reg_price=$product->get_price(); } $min_var_sale_price = $min_var_reg_price * $coeff ; if ( $min_var_sale_price!=$min_var_reg_price ) { $price = sprintf( __( '<del>%1$s</del><ins>%2$s</ins>', 'woocommerce' ), wc_price( $min_var_reg_price ), wc_price( $min_var_sale_price ) ); } else { $price = sprintf( __( '%1$s', 'woocommerce' ), wc_price( $min_var_reg_price ) ); } return $price; }
- This reply was modified 7 years ago by Web Expert.
Hello.. I haven’t heard anything back from plugin owners. Do you believe there is a workaround?
I am not asking custom development, I am just ask why your plugin doesn’t use woocommerce default templates and ovverides with its own, and if so, guide me where can I find your ajax call response of
<li>
product to adjust it there.- This reply was modified 7 years, 9 months ago by Steven Stern (sterndata). Reason: put in backticks
RE: WC Secondary Product Thumbnail
The issue is not JavaScript. When a category archive loads, all products have two images.
After applying a filter, the products are loaded via ajax with one image under li element.Hello. Thanks for quick reply. Can you let me know what javascript should I add to javascript after ? Shall I copy any javascript from Secondary Product Thumbnai ?
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Hover Secondary Image not showing upI also have the same issue and made another thread. So can you guys make a workaround?
Forum: Plugins
In reply to: [InfiniteWP Client] WP-CLI with InfiniteWPCan you give me some guidance, maybe I can work it out?
The API key is generated once we install and activate, is it stored somewhere?On IWP (Main), does it only added the wp-admin url, api key and username or it makes any calls on the client plugin to authroize and exchange some data
That did the trick ?? Thanks a lot
I see.. I believe the first one would do. But this option is on free as well isn’t it ?
Hide values:
Hide values without products
Hide selected valuesUnless you refer to another option that is paid and not visible on free version.
Will that work on search results page as well ?Forum: Plugins
In reply to: [Polylang] Polylang and add_rewrite_ruleThank you sir ??
Forum: Plugins
In reply to: [Polylang] Polylang and add_rewrite_ruleSo how can I add language on admin ? Is there any way?
Forum: Plugins
In reply to: [Polylang] Polylang and add_rewrite_ruleHello.
According to this page pll_get_post requires only post ID which is provided by option page.The rules are for two languages (el and en) but I hide main language (en).
My problem is that if I handcode page IDs (if I remove pll_get_post and say page_id=X) the above works perfectly.On the above snippet, if I echo the string, pll_get_post returns the correct ID
But when building Rewrite table, its ignored.
I am flushing rules everytime I check. (via admin). Is there any way to provide language from admin? As I want to generalize this plugin