WPFactory Plugins

Forum Replies Created

Viewing 15 posts - 91 through 105 (of 216 total)
  • Author
    Posts
  • in reply to: How to update the order cost calculation programmatically? #89527
    WPFactory Plugins
    Participant
    Plugin Author

    Anytime ๐Ÿ˜‰

    In that case, please consider leaving a review if you are enjoying the plugin/support. It would be much appreciated ๐Ÿ™‚

    WPFactory Plugins
    Participant
    Plugin Author

    Hi Mohsen,

    Sorry for the delay,

    First, you could setup the default date range that would work for most of your categories, let’s say monthly. And then you could enable Limits > Per product category and edit the limit on the category page.

    Finally, you’d have to use a custom code for the other category with different date range. I’ve created it for you as an example considering the id of the category A as 41

    add_filter( 'alg_wc_mppu_date_to_check', function ( $date_to_check, $date_range, $current_time, $product_or_term_id, $current_user_id, $is_product ) {
    	if ( ! $is_product ) {
    		return $date_to_check;
    	}
    	$product_categories_ids = wp_get_post_terms( $product_or_term_id, 'product_cat', array( 'fields' => 'ids' ) );
    	// Yearly for category A (41)
    	if ( in_array( 41, $product_categories_ids ) ) {
    		$date_to_check = ( $current_time - YEAR_IN_SECONDS );
    	}
    	return $date_to_check;
    }, 10, 6 );
    

    Let me know if it helps ๐Ÿ˜‰

    WPFactory Plugins
    Participant
    Plugin Author

    Hello Jeff,

    Have you already tried these 2 options?

    – Block adding products to cart
    – Block checkout

    If even so, they are placing orders with incorrect emails, please try this other option:
    – Unverify email changing accounts

    This will unverify customer accounts if they change the original email

    WPFactory Plugins
    Participant
    Plugin Author

    Hello Alex,

    Sorry for the delay.
    I think I couldn’t reproduce the problem. If the limit is 1 and I add 1 to cart the plugin should allow the purchase just fine and that is what it’s doing . It doesn’t make any difference if I use a 100% coupon or not. Now, if I try to add 2 of the same product, I can only purchase it if I use the coupon and if I do that it works fine too, I mean, I didn’t receive the max message.

    Please help me with some details.

    1. How should be set the mode option? I imagine it should be set as “Product Prices” considering your example.

    2. Have you purchased the product previously first?

    3. Can you please try to disable other plugins that could be conflicting with our plugin and maybe switch the theme too?

    in reply to: How to set different limits for different categories? #100533
    WPFactory Plugins
    Participant
    Plugin Author

    Hello Antonieta,

    You can follow these steps:
    1. Enable Limits > Per product category
    2. Access the category you wish. For example: Products > Categories > Category A
    3. Set the Limit per user option on the category page.

    in reply to: How to update the order cost calculation programmatically? #89525
    WPFactory Plugins
    Participant
    Plugin Author

    Yes, you could use this:

    alg_wc_cog()->core->orders->update_order_items_costs( $order_id, true );
    WPFactory Plugins
    Participant
    Plugin Author

    You’re welcome, thanks!

    Please consider leaving a review here or here. It would be much appreciated ๐Ÿ™‚

    WPFactory Plugins
    Participant
    Plugin Author

    Hi,

    Glad to hear you’re enjoying it ๐Ÿ™‚
    I just created this new option for you and I’m sending you right now a modified version of the plugin with the new feature via email.

    Let me know if it works for you ๐Ÿ˜‰

    WPFactory Plugins
    Participant
    Plugin Author

    Anytime ๐Ÿ˜‰

    In that case, please consider leaving a review here or here if you are enjoying the plugin/support. It would be much appreciated

    WPFactory Plugins
    Participant
    Plugin Author

    Yes, and you can even limit the user to buy a specific product only once per year or any other period you’d like ๐Ÿ˜‰

    WPFactory Plugins
    Participant
    Plugin Author

    Hi Monika,

    I know you’ve said you cleared the cache but have you tried clearing it here?
    – WooCommerce > Status > Tools > Clear analytics cache

    WPFactory Plugins
    Participant
    Plugin Author

    Hi Antonieta,

    Sorry for the delay.
    We have a “Mode” option that controls how the plugin will work. We have different values for it. In your case, you’d be able to set it by price or by quantity, but not both at the same time.

    In the end, I believe you’d have good results by selecting “Product quantities”, and then you’d choose exactly the products you want to limit.

    We have a free version too. Please give it a try first ๐Ÿ˜‰

    in reply to: How to update the order cost calculation programmatically? #89523
    WPFactory Plugins
    Participant
    Plugin Author

    Hello Guido,

    We have three options on the Advanced section that may suit you:

    – Force costs update on order update
    – Force costs update on order status change
    – Force costs update on new order item

    Anyway, if you want to recalculate all the orders, you can use this option:
    – Tools & Reports > Recalculate orders cost and profit

    in reply to: Can I remove VAT from reports? #89519
    WPFactory Plugins
    Participant
    Plugin Author

    Hi Kiren,

    I’m sorry but after thinking for a while we believe that if you use taxes in your store you’d have to enable the option from WooCommerce:
    – Enable tax rates and calculations

    This is the only way of calculating taxes correctly, regardless if prices include or exclude taxes.

    WPFactory Plugins
    Participant
    Plugin Author

    Hi Ben,

    The report under “WooCommerce > Reports > Orders > Cost of goods” shows the numbers related to the orders, so it won’t make a difference if the products are currently in stock or not.

    Now, our other report under “WooCommerce > Reports > Stock > Cost of Goods” only shows the info related to products currently in stock

Viewing 15 posts - 91 through 105 (of 216 total)