Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Usei lógica. Fui dentro da página na qual tinha a opção de parcelar, fui na que não tinha, vi o html, tentei encontrar algo que fizesse referência a essa ausência do parcelamento, e aí fui desativando ou modificando, até que desse certo.

    Devido a demora do atendimento, eu mesmo fui no código e achei a solução:

    caso você queira reativar parcelamento para inscrições, faça o seguinte:

    Onde?
    plugins/woo-juno/classes/Gateway/Credit_Card_Subscription.php
    O que fazer?
    Comentar (ou apagar) as linhas 247,248 e 249

        if ( apply_filters( h\prefix( 'disable_subscription_installments' ), $this->is_subscription() || isset( $_GET['change_payment_method'] ), $this ) ) {
          return 1;
        }

    Devido a demora do atendimento, eu mesmo fui no código e achei a solução:

    caso você queira reativar parcelamento para inscrições, faça o seguinte:

    Onde?
    plugins/woo-juno/classes/Gateway/Credit_Card_Subscription.php
    O que fazer?
    Comentar (ou apagar) as linhas 247,248 e 249:

        if ( apply_filters( h\prefix( 'disable_subscription_installments' ), $this->is_subscription() || isset( $_GET['change_payment_method'] ), $this ) ) {
          return 1;
        }
    • This reply was modified 4 years, 2 months ago by luiseduardops.

    Isso antes era uma configuração que vinha como padrão @ofmarconi , porém por pedido de uma cliente (https://ww.wp.xz.cn/support/topic/parcelamento-aparece-em-adesao-de-assinatura/) ela foi removida ( isso caso o produto seja um plano de assinatura, como o seu é).

    Acabei de realizar o pedido neste link que lhe enviei para que adicionem essa função como opcional, para que assim possamos ativa-lá, e permitir pagamento parcelado para planos de assinaturas.

    • This reply was modified 4 years, 4 months ago by luiseduardops.

    Exato @gumail , agora foi atendido o pedido da @anaflaviacador , porém a antiga funcionalidade de permitir parcelamento para planos de assinatura, que antes era default, sumiu.

    Teria como colocar como sendo uma opção, esta de selecionar se quer oferecer parcelamento para planos de assinatura?

    Dessa forma agradaria a todos.

    Thread Starter luiseduardops

    (@luiseduardops)

    get_post_meta($order_id, 'instagram', true)
    get_post_meta($order_id, 'wccaf_instagram', true)
    get_post_meta($order_id, 'wccpf_instagram', true)
    get_post_meta($order_id, 'attribute_instagram', true)
    get_post_meta($order_id, 'attribute_wccaf_instagram', true)
    get_post_meta($order_id, 'attribute_wccpf_instagram', true)
    
    get_post_meta($product_id, 'instagram', true)
    get_post_meta($product_id, 'wccaf_instagram', true)
    get_post_meta($product_id, 'wccpf_instagram', true)
    get_post_meta($product_id, 'attribute_instagram', true)
    get_post_meta($product_id, 'attribute_wccaf_instagram', true)
    get_post_meta($product_id, 'attribute_wccpf_instagram', true)
    
    get_post_meta($item['variation_id'], 'instagram', true)
    get_post_meta($item['variation_id'], 'wccaf_instagram', true)
    get_post_meta($item['variation_id'], 'wccpf_instagram', true)
    get_post_meta($item['variation_id'], 'attribute_instagram', true)
    get_post_meta($item['variation_id'], 'attribute_wccaf_instagram', true)
    get_post_meta($item['variation_id'], 'attribute_wccpf_instagram', true)
    
    $item['instagram']
    $item['wccaf_instagram']
    $item['wccpf_instagram']

    Tried all this to a wc Fields Factory text field named “instagram”

    Thread Starter luiseduardops

    (@luiseduardops)

    I tried all these get_post_meta:

    
    
    					"Order ID - ".$order_id." <\br> ".
    					"Meta Order ID 1 > ".get_post_meta($order_id, 'instagram', true)." <\br> ".
    					"Meta Order ID 2 > ".get_post_meta($order_id, 'wccaf_instagram', true)." <\br> ".
    					"Meta Order ID 3 > ".get_post_meta($order_id, 'wccpf_instagram', true)." <\br> ".
    					"Meta Order ID 4 > ".get_post_meta($order_id, 'attribute_instagram', true)." <\br> ".
    					"Meta Order ID 5 > ".get_post_meta($order_id, 'attribute_wccaf_instagram', true)." <\br> ".
    					"Meta Order ID 6 > ".get_post_meta($order_id, 'attribute_wccpf_instagram', true)." <\br> ".
    
    					"Product ID - ".$product_id." <\br> ".
    					"Meta Product ID 1 > ".get_post_meta($product_id, 'instagram', true)." <\br> ".
    					"Meta Product ID 2 > ".get_post_meta($product_id, 'wccaf_instagram', true)." <\br> ".
    					"Meta Product ID 3 > ".get_post_meta($product_id, 'wccpf_instagram', true)." <\br> ".
    					"Meta Product ID 4 > ".get_post_meta($product_id, 'attribute_instagram', true)." <\br> ".
    					"Meta Product ID 5 > ".get_post_meta($product_id, 'attribute_wccaf_instagram', true)." <\br> ".
    					"Meta Product ID 6 > ".get_post_meta($product_id, 'attribute_wccpf_instagram', true)." <\br> ".
    
    					"Variation ID - ".$item['variation_id']." <\br> ".
    					"Meta Order ID 1 > ".get_post_meta($item['variation_id'], 'instagram', true)." <\br> ".
    					"Meta Order ID 2 > ".get_post_meta($item['variation_id'], 'wccaf_instagram', true)." <\br> ".
    					"Meta Order ID 3 > ".get_post_meta($item['variation_id'], 'wccpf_instagram', true)." <\br> ".
    					"Meta Order ID 4 > ".get_post_meta($item['variation_id'], 'attribute_instagram', true)." <\br> ".
    					"Meta Order ID 5 > ".get_post_meta($item['variation_id'], 'attribute_wccaf_instagram', true)." <\br> ".
    					"Meta Order ID 6 > ".get_post_meta($item['variation_id'], 'attribute_wccpf_instagram', true)

    The $product_id , $order_id and $item[‘variation_id’] are all ok, but all the get_post_meta did not show me anything.

    • This reply was modified 8 years, 4 months ago by luiseduardops.

    In Brazil you can work with or without a “CNPJ”, and this number Paypal requires to work with Express Checkout.

    Well, so I will try to figure out, but it appears after install your plugin. If you have any input will be awesome.

    If I find the answer I will update you.

    @angelleye

    I know that, the credentials are right.

    The problem is that I cannot use ExpressCheckout because I am not a bussiness so I did not able to give the needed informations in Paypal to do so.

    I tried to unninstall your plugin to return to the only mode that I am able to use Paypal (Standard) and it seems that your plugin change something in other plugin (WooCommerce or Woocomerce Subscriprion) that set the POSTing “[METHOD] => SetExpressCheckout” , instead of the default STANDARD one.

    Do you know how can I go back to Standard again?

    Someone can tell me what to do to solve it? “Your API credentials may be incorrect. Please update your API credentials. Learn more.”
    @zigotic

    Error in the Log:

    (
    [TIMESTAMP] => 2017-12-28T13:57:59Z
    [CORRELATIONID] => aee4ee4461747
    [ACK] => Failure
    [VERSION] => 124
    [BUILD] => 40680762
    [L_ERRORCODE0] => 10002
    [L_SHORTMESSAGE0] => Security error
    [L_LONGMESSAGE0] => Security header is not valid
    [L_SEVERITYCODE0] => Error
    )

    @angelleye I think I know what the error is:

    in the log says:
    [body] => Array
    (
    [USER] => ***********************************
    [PWD] => ****************
    [SIGNATURE] => ********************************************************
    [VERSION] => 124
    [METHOD] => SetExpressCheckout

    It is setting ExpressCheckout, but it should be setting Standart!!
    How can I change it?

    It was everything ok for me until I updated the WooCommerce Version. So it crashes and appears that error mentioned:

    Fatal error: Call to undefined function WC() in \wp-content\plugins\wc-fields-factory\includes\wcff-product-fields.php on line 78

    I have updated the file for the one you said and it just change the line:

    Fatal error: Call to undefined function WC() in wp-content/plugins/wc-fields-factory/includes/wcff-product-fields.php on line 82

Viewing 11 replies - 1 through 11 (of 11 total)