Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all 102165 articles
Browse latest View live

How to update WooCommerce PayPal Checkout Gateway account via REST API

$
0
0

Replies: 0

I use PP checkout,

I tried https://woocommerce.github.io/woocommerce-rest-api-docs/#update-a-payment-gateway with id “ppec_paypal” but with my input. I got 200 response but it doesn’t work.

“api_username”: {
“id”: “api_username”,
“label”: “Live API Username”,
“description”: “Get your API credentials from PayPal.”,
“type”: “text”,
“value”: “**********”,
“default”: “”,
“tip”: “Get your API credentials from PayPal.”,
“placeholder”: “”
},
“api_password”: {
“id”: “api_password”,
“label”: “Live API Password”,
“description”: “Get your API credentials from PayPal.”,
“type”: “password”,
“value”: “**********”,
“default”: “”,
“tip”: “Get your API credentials from PayPal.”,
“placeholder”: “”
},
“api_signature”: {
“id”: “api_signature”,
“label”: “Live API Signature”,
“description”: “Get your API credentials from PayPal.”,
“type”: “text”,
“value”: “*************”,
“default”: “”,
“tip”: “Get your API credentials from PayPal.”,
“placeholder”: “Optional if you provide a certificate below”
},
Any help with request body.

Regards
deoshike


Woocommerce checkout not working

$
0
0

Replies: 0

After entering info and hitting ‘place order’ button the page refreshes but goes nowhere.
I’ve deactivated plugins with no result.

Show login/ register to users who are not signed in

$
0
0

Replies: 0

Hello

I want to know if it is possible to show “login/ register” in the menu bar when user is not signed in. When they sign in than show “welcome customer first name”

Thanks in advance.

Disable shipping of some products on some pin codes

$
0
0

Replies: 1

I want to disable shipping of certain products on certain pin codes. The margin is little on these products and cost of sending is high. Can this be achieved?

  • This topic was modified 2 hours, 57 minutes ago by mayank29gupta.

WooCommerce Subscription (Variaion product)

$
0
0

Replies: 1

Hello,

I want a subscription for every 9-month but here in plugin only show 6h month option. please help me to get option for 9-moth.

status order “trash” string not translatable in trashed orders admin list

$
0
0

Replies: 3

Hello,
In the admin list of trashed orders, the “trash” status is not translated. After checking the translation files and WooCommerce code, it seems to me that the string is not translatable.
(edit.php?post_status=trash&post_type=shop_order)

Regards

Loïc

Brands Page Product

$
0
0

Replies: 0

Hello.
When I click on any brand in my website, the products doesn’t appear on the brand’s page.
The link is brand page.
Any help please?
Thank you.

  • This topic was modified 58 minutes ago by miminou.

Broken orders: Product IDs missing from order items

$
0
0

Replies: 1

We have had a problems with orders. Their order IDs seem to be missing.

On the order’s page, there is no product image and no link back to the product page. Affected orders cannot be sync’ed with our accounting system (we use an external service to accomplish this) because product IDs in the orders don’t match with product IDs in accounting.

While investigating this issue, we analyzed the database contents about affected orders. In DB table prefix_woocommerce_order_itemmeta, affected order items have a _product_id value of 0 instead of the product’s actual ID. It seems like WooCommerce does not save the product IDs to the database for some reason, only the order_item_name in table prefix_woocommerce_order_items.

We discovered a “quick” way of fixing affected order items: We just change _product_id in prefix_woocommerce_order_itemmeta to the actual product ID – as soon as it is corrected, WooCommerce order page shows product image and link to product page, and our external sync service is able to sync the order items.

We looked at all the usual data to find relevant information about this issue:
PHP logs, WC status page, WC logs, Site Health plugin, WP debug logs. There is nothing which matches the orders affected.

We cannot reproduce the issue, though. Most of the orders come through just fine.

Does anyone have had this or something similar happening?


Add total order count column to orders page

$
0
0

Replies: 0

Hi there,

Im trying to add a new column to my orders page that can count the total amount of orders received from each customer. I have used multiple plugins that claim to do this (Including Admin Columns Pro – WooCommerce) but they just destroy the load times on the backend. To the point it’s unusable, over 30 seconds to load.

I used the following code to show the products within the order within the orders page.

add_filter(‘manage_edit-shop_order_columns’, ‘misha_order_items_column’ );
function misha_order_items_column( $order_columns ) {
$order_columns[‘order_products’] = “Purchased products”;
return $order_columns;
}
add_action( ‘manage_shop_order_posts_custom_column’ , ‘misha_order_items_column_cnt’ );
function misha_order_items_column_cnt( $colname ) {
global $the_order; // the global order object
if( $colname == ‘order_products’ ) {
// get items from the order global object
$order_items = $the_order->get_items();
if ( !is_wp_error( $order_items ) ) {
foreach( $order_items as $order_item ) {
$product = $order_item->get_product();
// product checking
$sku = ( $product && $product->get_sku() ) ? ‘ – ‘ . $product->get_sku() : ”;
echo $order_item[‘quantity’] .’ × ‘. $order_item[‘name’] . ‘‘. $sku . ‘<br />’;
}
}
}
}

If theres is anyway to modify this code to show the order count history I believe it will solve my problem without slowing down the admin.

Any help would be greatly appreciated.

Unable to enter payment details at Woocommerce checkout

$
0
0

Replies: 0

Other fields, address etc, are working fine. Just the card payment section.
This issue occurs on Chrome Version 78.0.3904.108 on Windows 10. Also Android running Chrome. It works fine in Opera. TIA for your support in the busy pre-Christmas shopping season!

Woocommerce dashboard showing no data.

$
0
0

Replies: 1

Hi,
I’ve to report a problem I’m meeting whilst using Woocommerce: the dashboard is not properly showing any data. All values are stuck at 0, even thought I did sell something and it does show it correctly on the WP dashboard.

Before trying to contact your support, I tried to search for some solutions to the problem and found that others did meet the same problem in the past; I then tried to «Rebuild reports data» in the Status->Tools section, as suggested here: https://github.com/woocommerce/woocommerce-admin/issues/1441

But it didn’t work. Then I tried to check the log and found the following warning:

2019-12-17T05:04:45+00:00 CRITICAL Uncaught Error: Call to undefined method WC_Order::get_report_customer_id() in /membri/edicolablack/wp-content/plugins/woocommerce-admin/src/API/Reports/Orders/Stats/DataStore.php:477
Stack trace:
#0 /membri/edicolablack/wp-content/plugins/woocommerce-admin/src/API/Reports/Orders/Stats/DataStore.php(449): Automattic\WooCommerce\Admin\API\Reports\Orders\Stats\DataStore::update(Object(WC_Order))
#1 /membri/edicolablack/wp-content/plugins/woocommerce-admin/src/ReportsSync.php(489): Automattic\WooCommerce\Admin\API\Reports\Orders\Stats\DataStore::sync_order(104972)
#2 /membri/edicolablack/wp-includes/class-wp-hook.php(288): Automattic\WooCommerce\Admin\ReportsSync::orders_lookup_import_order(104972)
#3 /membri/edicolablack/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
#4 /membri/edicolablack/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
#5 /membri/edicolablack/wp-content/plugins/woocommerce/includes/libraries/action-scheduler/classes/ActionScheduler_Action.php(22): do_action_ref_a in /membri/edicolablack/wp-content/plugins/woocommerce-admin/src/API/Reports/Orders/Stats/DataStore.php alla riga 477

My knowledge are limited, so I’m not sure what the problem is caused from and how to solve it.
Could you kindly tell me what’s the origin of the problem and how to fix it, possibly in simpliest way possible, please?

Woocommerce Ver.3.8.1
Worpress Ver.5.3.0
Woocommerce Admin Ver.0.23.1

Thank you for your attention.

  • This topic was modified 1 hour, 29 minutes ago by edicolablack. Reason: Added Woocommerce Admin Version

Variation dropdown display on bundle product page

$
0
0

Replies: 0

Hi there,

I am using woocommerce and woocommerce subscription plugin. I have updated layout and created one bundle product to display one time purchase(simple product) and variable subscription(1 month, 2 months, 3 months) product. Everything works fine except “select options” button instead of variable drop-down. Is it possible to having subscription drop-down on single bundled product instead of select options button.

Thanks

Get Product RRP, Saleprice with shortcode in plain text?

$
0
0

Replies: 0

 Hi,

Im trying to create a table with my woocommerce products. The table is just plain html <table>.

Inside that table I’d like to add shortcodes. I think I need multiple shortcodes for this to work. Most optimally a different one for each.
These shortcodes should be displayed:
1. RRP Excl VAT,
2. Sale Price Excl VAT
3. Sale Price Incl VAT

I’ve got this shortcode for nr 3: Sale Price Including VAT:
[product_price id=XX]

function wc_price_by_id_shortcode( $atts ) {
    $atts = shortcode_atts( array( 'id' => null, ), $atts, 'bartag' );

    if( intval( $atts['id'] ) > 0 && function_exists( 'wc_get_product' ) ){ 
        $_product = wc_get_product( $atts['id'] ); 
        $price = wc_price( $_product->get_price() );
      } 

  return $html;
} 
add_shortcode( 'product_price', 'wc_price_by_id_shortcode' );
$html .= "<span class="price_by_id_shortcode">". $price . "</span>";

Is this correct? And I’m not sure how I can get the RRP Excl TAX and Sales Price Excl TAX.

Many thanks!

How to bulk change visibility of draft products to hidden?

$
0
0

Replies: 2

Could you please tell me how to bulk change the visibility of DRAFT products to HIDDEN to avoid them to show up in the search?

Thanks

How to hide Categories with 0 products or with products that are hidden

$
0
0

Replies: 2

I have imported 10k products on one of our ecommerce and I would like to start selling only 2000 products. How can I make the categories that have products but that are HIDDEN disappear from the category list widget? I have noticed that they still appear on it.

Thanks


Coupon code conflict

$
0
0

Replies: 0

Can you tell me if there is a way to make the code treat20 only apply to treats and nothing else?

I attempted to add this to an existing subscription which includes food as well as treats, the intended result would give the discount to only the freeze dried chicken hearts treat… It says not valid?

https://prnt.sc/qcka7g

Maybe the easiest way to do this is to make the following logic work.

“If dog/cat food in cart AND treats in cart, apply 20% code to treats only”

Can the coupon code be used if there are other foods that aren’t treats in the cart? If so, how do I configure it? Thank you.

create return label with order

$
0
0

Replies: 0

Hello,

I need to enable my customers to create two shipping labels with their purchase:

[*]one for the transport from seller to customer and
[*]anotherone for the transport from customer to seller

Both should be made ready and payed at the purchase. How can I achieve this? – Plugin needed?

Cheers,
Wolf

  • This topic was modified 25 minutes ago by herrdeh.
  • This topic was modified 24 minutes ago by herrdeh.
  • This topic was modified 23 minutes ago by herrdeh.

Payment on hold; is it automatically re-submitted

$
0
0

Replies: 0

A client of mine changed their PayPal business account email address without telling me, I manage their online shop.

So all the payments using Woocommerce via PayPal were put on hold: Validation error: PayPal IPN response from a different email address (xxx@xxx.co.uk). Order status changed from Pending payment to On hold.

I’ve now inserted the correct email address, identity token, API etc in Woocommerce > Settings > PayPal

So what happens now? Does my website and Woocommerce push PayPal for the payments again? Are the payments ‘lost’? Or is there something I can do to make the orders complete?

My client has sent out some orders but the payments are stuck on hold…

Type in a code to purchase a product

$
0
0

Replies: 0

Hi,

Do WooCommerce or any of the extensions allow a sort of verification to be added to a single product age. Only once a customer has added a code they can add it to cart, similar to this page (https://www.avocet-hardware.co.uk/collections/door-locks/products/avocet-abs-keys?variant=43664508741).

When you click on the link it will show on the right side “ABS ULTIMATE SERIES KEYS CUT TO CODE*” and then a box under it which a customer must fill in to purchase it.

Hope that makes sense
All help is appreciated.

Thanks
Zak

Shipping cost calculator before checkout

$
0
0

Replies: 0

Hi there
I’d like to know if it’s somehow possibile to calculate shipping costs in a custom page, before accessing checkout and filling all fields.
Something like: read cart content, ask for country selection (maybe with a select field), and calculate and show costs.

Thanks!

Viewing all 102165 articles
Browse latest View live