Forum Replies Created

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

    (@steppade)

    @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

    Thread Starter steppade

    (@steppade)

    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 8 years, 2 months ago by steppade.
    • This reply was modified 8 years, 2 months ago by steppade. Reason: update with refund2
    Thread Starter steppade

    (@steppade)

    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.

    Thread Starter steppade

    (@steppade)

    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:

    https://ginex.indivia.net/images/discount_and_capture/

    and for refund method (some step skipped) :

    https://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 https://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:

    https://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:

    https://ginex.indivia.net/images/checkout_with_EC_button_init.png
    https://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.

    Thread Starter steppade

    (@steppade)

    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: https://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 8 years, 2 months ago by steppade.

    I don’t found the 1.0.13 on github

    Thread Starter steppade

    (@steppade)

    i will, thanks.

    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.

    It’s only visualization problem, right?

    do the category rule works for you? How did you set it?

    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 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.

    Do you understand how it works? I set the rule for a category and all subcategories but it doesn’t work.

    Do you understand how it works? I set the rule for a category and all subcategories but it doesn’t work.

    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

    I would like to have this new feature too

    Thread Starter steppade

    (@steppade)

    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)