Title: steppade's Replies | WordPress.org

---

# steppade

  [  ](https://wordpress.org/support/users/steppade/)

 *   [Profile](https://wordpress.org/support/users/steppade/)
 *   [Topics Started](https://wordpress.org/support/users/steppade/topics/)
 *   [Replies Created](https://wordpress.org/support/users/steppade/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/steppade/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/steppade/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/steppade/engagements/)
 *   [Favorites](https://wordpress.org/support/users/steppade/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/users/steppade/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/steppade/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[date_query enabler] Doesn’t appear to work with 4.7](https://wordpress.org/support/topic/doesnt-appear-to-work-with-4-7/)
 *  [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/doesnt-appear-to-work-with-4-7/#post-8932647)
 * [@doofusdavid](https://wordpress.org/support/users/doofusdavid/) i have added
   your snippet on function.php but it doesn’t work for my query:
 * /wp-json/wp/v2/posts?filter[date_query][column]=post_modified_gmt&filter[date_query][
   after]=2017-03-20T15:04:39
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PayPal for WooCommerce] DoAuthorize -> DoCapture](https://wordpress.org/support/topic/doauthorize-docapture/)
 *  Thread Starter [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/doauthorize-docapture/#post-8661364)
 * About the the bug (point n.1), as you can see on this function, i have added 
   some var_dump and an exit to understand what’s happen on DoCapture on EC:
 *     ```
       pfw_do_capture($order, $transaction_id = null, $capture_total = null) {
               $this->add_ec_angelleye_paypal_php_library();
               $this->ec_add_log('DoCapture API call');
   
               $AMT = $this->get_amount_by_transaction_id($transaction_id);
               var_dump($order);
               var_dump($capture_total);
               exit('AMT: '.$AMT);
               $DataArray = array(
                   'AUTHORIZATIONID' => $transaction_id,
                   'AMT' => $AMT,
                   'CURRENCYCODE' => $order->get_order_currency(),
                   'COMPLETETYPE' => 'NotComplete',
               );
               ...
       ```
   
 * With the procedure already described with the images for the discount, on $capture_total
   variable i have the new real amount.
 * But this arg is never used.. instead you get the old amount from AMT on postmeta
   table.
 * I’m note sure about your code, there is to much code to understand. But i can
   say that searching for update_meta_post with AMT key there is only an occurrence
   on DoVoid. So AMT will be ever the old total amount not the new once.
 * Maybe here you need to use $capture_total and implement some check to see if 
   the new amount is permitted whit this authorization before send do_capture. I
   see that you implemented a lot of utility that maybe already did it.
 * Now i will check if this work for partial refund too.
 * **UPDATE1:**
    For partial refund doesn’t work. I’m try to understand how it work
   on wc.
 * **UPDATE2:**
    With $order->get_total_refunded() you can know if there are refunds
   and what’s the amount.
 * Then:
 * $capture_total – $order->get_total_refunded() give the the amount to capture.
 * I hope that all this info can help you to help me 🙂
 * Thanks,
    g.
    -  This reply was modified 9 years, 6 months ago by [steppade](https://wordpress.org/support/users/steppade/).
    -  This reply was modified 9 years, 6 months ago by [steppade](https://wordpress.org/support/users/steppade/).
      Reason: update with refund2
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PayPal for WooCommerce] DoAuthorize -> DoCapture](https://wordpress.org/support/topic/doauthorize-docapture/)
 *  Thread Starter [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/doauthorize-docapture/#post-8660739)
 * This sound good! But i can’t check-it, it’s disabled.
 * On setting i read:
 * (The WooCommerce guest checkout option is disabled. Therefore, the review page
   is required for login / account creation, and this option will be overridden.)(
   Payments tokens are enabled, which require the review page, and that will override
   this option.)
 * 1) The WooCommerce guest checkout option is disabled.
 * Yes, guest can’t buy
 * 2) Therefore, the review page is required for login / account creation, and this
   option will be overridden.
 * They can’t proceed on payment from any page, in particular on checkout page if
   they are not already logged-in. They have a box here to login and continue with
   checkout.
 * 3) Payments tokens are enabled, which require the review page, and that will 
   override this option
 * It’s enabled by default. I can disable it but it’s the same.
 * Anyway i can leave review page because with few css operation i can fix this 
   that page.
 * But i can’t use the plugin without the capture bug fix.
 * Thanks to you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PayPal for WooCommerce] DoAuthorize -> DoCapture](https://wordpress.org/support/topic/doauthorize-docapture/)
 *  Thread Starter [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/doauthorize-docapture/#post-8657496)
 * 1) I can confirm this problem when i change the amount for discount or partial
   refund.
 * Here an accurate step by stem screenshot story (picture 00 to 08 with comment)
   for discount method:
 * [http://ginex.indivia.net/images/discount_and_capture/](http://ginex.indivia.net/images/discount_and_capture/)
 * and for refund method (some step skipped) :
 * [http://ginex.indivia.net/images/refund_and_capture/](http://ginex.indivia.net/images/refund_and_capture/)
 * 2) Paypal doesn’t let change the shipping address to the user. It say only.. 
   if you want change go to the site [http://www.domain.com](http://www.domain.com).
   It’s a my mistake because i read “modify” link without click on it to see what
   was. This is good.
 * So i have only one problem left on the checkout->review order page. Here the 
   screenshot:
 * [http://ginex.indivia.net/images/checkout_review_order_page.png](http://ginex.indivia.net/images/checkout_review_order_page.png)
 * How you can see.. here there is another time the possibility to chose the shipping
   delivery method but it can’t happen because the user have chosed everything on
   the real checkout page with a complex method described on this 2 screenshot:
 * [http://ginex.indivia.net/images/checkout_with_EC_button_init.png](http://ginex.indivia.net/images/checkout_with_EC_button_init.png)
   
   [http://ginex.indivia.net/images/checkout_with_EC_button_filling_procedure.png](http://ginex.indivia.net/images/checkout_with_EC_button_filling_procedure.png)
 * Let me know if you need something to understand what’s happen here.
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PayPal for WooCommerce] DoAuthorize -> DoCapture](https://wordpress.org/support/topic/doauthorize-docapture/)
 *  Thread Starter [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/doauthorize-docapture/#post-8656880)
 * 1) So you’re saying if you run an order for $100 and then try to capture $70 
   against that order it’s actually capturing the full $100 instead?
 * I haven’t any field to set the new amount. I have reduced the order with the 
   standard wc method. But capturing the amount it capture the old amount(es. $100
   not 70)
 * Here the photo: [http://ginex.indivia.net/images/wrong_capture.png](http://ginex.indivia.net/images/wrong_capture.png)
 * I am on sandbox.
 * 2) Yes you implemented capture on Express Checkout and i have the bug here.
 * The problem that i have with EC, but maybe i am noob on paypal, is that on y 
   e-commerce i can delivery only some place and on EC the user can change the destination.
   The second thing is that i must manage date & time slot for delivery because 
   i work with food, then i need to calculate shipping cost by destination.
 * So on my test i have EC button on my checkout page, here the user chose and set
   things, then he arrives on Paypal, where he can change destination, then he come
   back on another(new.. may be made by your plugin) “checkout” place, where he 
   can change delivery method and where he can complete the operation.
 * It’s a bit long, it’s not express. I have asked if you can implement capture 
   on standard paypal too to solve my problem(i have ssl) where i have read that
   capture is possible too.
 * In standard wc paypal, i can set ‘authorization’ method but i haven’t a box where
   i can capture o void.
 * Sorry for my english.
 * Thanks.
    -  This reply was modified 9 years, 6 months ago by [steppade](https://wordpress.org/support/users/steppade/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quantities and Units for WooCommerce] Contributing to Quantites and Units](https://wordpress.org/support/topic/contributing-to-quantites-and-units/)
 *  [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/contributing-to-quantites-and-units/#post-8530862)
 * I don’t found the 1.0.13 on github
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quantities and Units for WooCommerce] Categories feature – Merge code](https://wordpress.org/support/topic/categories-feature-merge-code/)
 *  Thread Starter [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/categories-feature-merge-code/#post-7662731)
 * i will, thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quantities and Units for WooCommerce] Product Quantity Active Rule Display Issue](https://wordpress.org/support/topic/product-quantity-active-rule-display-issue/)
 *  [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/product-quantity-active-rule-display-issue/#post-7667818)
 * Sorry if i stress you in this summer 🙂 but on my site with woocommerce 2.6.4
   and wordpress 4.5.3 the category rule doesn’t work on front-end as i aspect.
 * I make a rule “max-step-cat” where i set max:18 step:6 cat:mycat, mysubcat1, 
   mysubcat2
 * If i choose every time the same product that match with this rule(so in the same
   category), it get the max and the step from this rule and i recive a message 
   that say that i can’t buy more than 18 product. The step works too.
 * But if i choose 12 productA that match with the rule, and 12 productB that match
   with the same rule i don’t recive any category message. In this mode i have 24
   product from category mycat, mysubcat1, mysubcat2.
 * So the category rule works individually but not to restrict to buy a max product
   from the same category.
 * I try to make e-commerce for a food market, so for water bottle pack i need to
   set a max of pack buyable at 18, because for that product there is low profit
   and it need a lot of space on my vehicle.
 * On my research on the code i didn’t find any “validation cart” for category, 
   but maybe i didn’t find it. So i have implemented it. So when you say that category
   to you work fine i don’t understand how you made it. Can you give me more information?
 * I am italian, so i need to localize the plugin too. I am on that work too. I 
   hope that the author tell me how i can merge the code.
 * I would like to contribute to the community.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quantities and Units for WooCommerce] Product Quantity Active Rule Display Issue](https://wordpress.org/support/topic/product-quantity-active-rule-display-issue/)
 *  [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/product-quantity-active-rule-display-issue/#post-7667767)
 * It’s only visualization problem, right?
 * do the category rule works for you? How did you set it?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Advanced Product Quantities] Global category rules are not working](https://wordpress.org/support/topic/global-category-rules-are-not-working/)
 *  [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/global-category-rules-are-not-working/#post-6883348)
 * I looked inside the code. There is only the interface for product categories,
   product tags and role membership. There is no validation step inside validation
   class.
 * I found that there is [already a fork](https://wordpress.org/plugins/quantities-and-units-for-woocommerce/)
   that add a float feature.
 * The author answered until 3 weeks ago so i moved on that plugin.
 * I have implemented this morning the category feature. Now i need to implement
   max/min sale. At the end i’ll propose to the Quantities and units for woocommerce’s
   author to merge code.
 * I’m helping my father to build a site so i haven’t money and time to spend for
   the support of a new fork.
 * s.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Advanced Product Quantities] Global category rules are not working](https://wordpress.org/support/topic/global-category-rules-are-not-working/)
 *  [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/global-category-rules-are-not-working/#post-6883346)
 * Do you understand how it works? I set the rule for a category and all subcategories
   but it doesn’t work.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Advanced Product Quantities] Category limits](https://wordpress.org/support/topic/category-limits-1/)
 *  [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/category-limits-1/#post-7614771)
 * Do you understand how it works? I set the rule for a category and all subcategories
   but it doesn’t work.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Search Everything] Plugin not searching IssueM plugin articles](https://wordpress.org/support/topic/plugin-not-searching-issuem-plugin-articles/)
 *  [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-searching-issuem-plugin-articles/#post-5517927)
 * I use 2 plugin that create for me 2 custom post_type: all-in-one-event-calendar
   and simple-portfolio.
    The search box on their admin post list view doesn’t work
   if Search Everythig in enabled.
 * I have tryed with:
    Search custom taxonomies: On and off
 * My theme is sahifa
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Search Everything] Search Everything super slow](https://wordpress.org/support/topic/search-everything-super-slow/)
 *  [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/search-everything-super-slow/#post-5193234)
 * I would like to have this new feature too
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timely All-in-One Events Calendar] Maximum execution time exceeded](https://wordpress.org/support/topic/maximum-execution-time-exceeded/)
 *  Thread Starter [steppade](https://wordpress.org/support/users/steppade/)
 * (@steppade)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/maximum-execution-time-exceeded/#post-5508417)
 * It run in the single post page with some category:
 *     ```
       if ($isTag===false && $isCat===false &&
         $isAttivita===false && $isEvent === false && $isHome==0 ){
         if(!inArrayAtLeastOne($postCats,getExcludeCats())){
            $is=true;
         }
       }
       ```
   
 * If i put the calendar in the normal way(in the post description field), all work
   well. The content hijack too(without calendar).
 * If i remove the other 2 calendar widgets, the hijack content work too (with calendar).
 * I have tryed 30 sec of execution time and it goes in memory exhausted.
 * So there is another problem.

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/users/steppade/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/steppade/replies/page/2/?output_format=md)