Comments (6)
Ah yeah ok; thanks! I'll keep the issue open so it can be implemented in the next version of the plugin
from coinbase-commerce-woocommerce.
This can be fixed by modifying the function that actually generates the code to run a check.
Function is located on line 123 in coinbase-commerce.php
It is called cb_order_meta_general
.
It can be modified to actually check if the order was paid with crypto.
/**
* Add order Coinbase meta after General and before Billing
*
* @see: https://rudrastyh.com/woocommerce/customize-order-details.html
*
* @param WC_Order $order WC order instance
*/
function cb_order_meta_general( $order ){ ?>
<?php $is_paid_crypto = $order->get_meta( '_coinbase_charge_id' ); ?>
<?php if ($is_paid_crypto) : ?>
<br class="clear" />
<h3>Coinbase Commerce Data</h3>
<div class="">
<p>Coinbase Commerce Reference # <?php echo esc_html($is_paid_crypto); ?></p>
</div>
<?php endif; ?>
<?php
}
from coinbase-commerce-woocommerce.
Pasting that in my functions.php file creates a 500 error. Are you sure about the code? Hope to see as an option in the plugin soon!
from coinbase-commerce-woocommerce.
Hey @topraf , you should not paste it in your funcitons.php. Instead, you can modify as mentioned in my comment above:
"Function is located on line 123 in coinbase-commerce.php"
I am using it in a production environment with no issues.
from coinbase-commerce-woocommerce.
I honestly doubt it, those guys are not showing good levels of support thus far.
I would advise you to dig in and do it yourself.
from coinbase-commerce-woocommerce.
@topraf, this is fixed in the latest code, please stay tuned for the newest release.
from coinbase-commerce-woocommerce.
Related Issues (20)
- User seeing an error
- Multiple api keys and webhook secrets?
- Translation Files pt_PT - woocommerce
- Does this plugin is compatible with Woocommerce Subscription?
- handle_webhook Should check chargeid(code)
- PHP Fatal error - invalid order number.
- Proceed to Pay Button Missing
- Order Cancelled after payment has been taken
- Stuck In "Pending Payment" Status Even After Payment Has Cleared
- Required parameter missing: pricing_type
- PHP Fatal error
- Single Page Checkout Not Working
- Stuck in Processing in WooCommerce, but CoinBase and Logs shows COMPLETED HOT 1
- Payment doesn't show up in wp 5.8 HOT 2
- Order is not being completed HOT 1
- PHP7 check out error
- Add missing icons for supported coins
- support for Woocommere Blocks Checkout
- Fatal Error
- High Performance Order Storage Support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coinbase-commerce-woocommerce.