andersjytzler
Forum Replies Created
-
Hey freckal,
I found the solution to my problem in here: https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin/
greeting_dialog_display=’show’. Remember to clear all your caches or open the website in incognito mode to test.
To developers of plugin: You could maybe add these settings as configurable when clicking the “Edit customer chat”-button.Forum: Plugins
In reply to: [Facebook Chat Plugin - Live Chat Plugin for WordPress] Dont auto open chatI found the solution in here: https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin/
greeting_dialog_display=’hide’.
To developers of plugin: You could maybe add these settings as configurable when clicking the “Edit customer chat”-button.Forum: Plugins
In reply to: [Facebook Chat Plugin - Live Chat Plugin for WordPress] Dont auto open chatHaha, let’s switch codes? ??
I use this code:
<div id='fb-root'></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; js = d.createElement(s); js.id = id; js.src = 'https://connect.facebook.net/da_DK/sdk/xfbml.customerchat.js#xfbml=1&version=v2.12&autoLogAppEvents=1'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class='fb-customerchat' attribution="wordpress" page_id='XXXXXXMYPAGEIDHEREXXXXX' theme_color='#61b3aa' logged_in_greeting='Velkommen! Har Du sp?rgsm?l, st?r vi klar til at hj?lpe.' logged_out_greeting='Velkommen! Har Du sp?rgsm?l, st?r vi klar til at hj?lpe.' > </div>
Forum: Plugins
In reply to: [WooCommerce] Add product to order and create new payment linkThank you for your thorough answers and help.
It’s unfortunate that you can’t edit an order, as it is much faster, but i understand the complications now.
We will create a new order manually in WooCommerce for the customer.Forum: Plugins
In reply to: [WooCommerce] Add product to order and create new payment linkThe issue is when paying in Bambora i get a notification that the order has already been paid. It’s because the ordernumber doesn’t change i guess. So it’s only when i use my creditcard that i get the message.
So the issue seems to be the ordernumber being the same.Forum: Plugins
In reply to: [WooCommerce] Add product to order and create new payment linkOh sorry, it’s Bambora payment gateway instead of QuickPay ??
Forum: Fixing WordPress
In reply to: wp_posts is 7,5gb@sterndata Yes, i see that now. There is 3,984 rows as of right now. Are image data saved into the table? Could that be the reason the database is taking up so much space?
I have just deleted 28,000 rows of type wp-rest-api-log type. But as to what i can see, the size of the table hasn’t been reduced significantly, or the statistics just haven’t updated yet.
So before i deleted those, there was 30,000 rows… That must be some kind of record, eh? ??Forum: Fixing WordPress
In reply to: wp_posts is 7,5gbThank for the fast answer @sterndata
I’ve used the WP Rocket plugin, which also removes trashed and revision posts (amongst many others). There was about 600 revisions, but it hasnt helped on the wp_posts table size.Forum: Fixing WordPress
In reply to: wp_posts is 7,5gbBonus info: There are loads of plugins installed, also a few logging plugins, both activity logging and cron logging. I’ve deactivated and uninstalled all logging plugins. Also to no avail..
Forum: Reviews
In reply to: [WooCommerce Estimated Shipping Date] Great plugin!@pawdl had the same issue in another support question. So i used his solution:
I found a work-around. In your class-product-settings.php file, I found the section:
woocommerce_wp_text_input( array(
‘id’ => ‘wc_esd_date’,
‘label’ => __( ‘Estimated Time To Ship in Days’, ‘wcesd’ ),
‘description’ => __( ‘Insert how many days it will take to ship the product after purchase’, ‘wcesd’ ),
‘desc_tip’ => true,
‘type’ => ‘number’,
‘placeholder’ => 14,
‘value’ => 5,
) );I removed the line containing:
‘value’ => 5,It works for me. Thanks for the plugin!!
I commented out the value line. And in the array below i changed the placeholder and value of “Estimated Delivery Date”, to my preferred text.
@pawdl had the same issue in another support question. So i used his solution:
I found a work-around. In your class-product-settings.php file, I found the section:
woocommerce_wp_text_input( array(
‘id’ => ‘wc_esd_date’,
‘label’ => __( ‘Estimated Time To Ship in Days’, ‘wcesd’ ),
‘description’ => __( ‘Insert how many days it will take to ship the product after purchase’, ‘wcesd’ ),
‘desc_tip’ => true,
‘type’ => ‘number’,
‘placeholder’ => 14,
‘value’ => 5,
) );I removed the line containing:
‘value’ => 5,It works for me. Thanks for the plugin!!
I commented out the value line. And in the array below i changed the placeholder and value of “Estimated Delivery Date”, to my preferred text.
Forum: Fixing WordPress
In reply to: Can you see what plugin this is?@raduconstantin Yeah right? That’s what i assumed aswell, but i contacted Phoenixx the developers, and they said that their plugin couldn’t handle this. So I’m not sure. I will try to install the free plugin.
Thanks for your help ??Forum: Plugins
In reply to: [WooCommerce] Call to undefined method. Trying to get %-saved in priceI found out boys!
Adding some keywords for future googlers: WordPress WooCommerce how to add a percentage saved on discounted products. How to show percentage of articles saved instead of price on both simple and variable products. Choosing the minimum/least expensive variable product.
Should be added to functions.php://PROCENT SPARET P? SIMPLE PRODUCT add_filter( 'woocommerce_get_price_html', 'woocommerce_saved_sales_price', 10, 2 ); function woocommerce_saved_sales_price( $price, $product ) { global $product; if ( 'simple' === $product->get_type() ) { $percentage = round( ( ( $product->regular_price - $product->sale_price ) / $product->regular_price ) * 100 ); if ($percentage == "100") { return $price; } else { return $price . sprintf( __('<br/>Du sparer %s', 'woocommerce' ), $percentage . '%' ); } } else if ( 'simple' != $product->get_type() ) { // Getting the clean numeric prices (without html and currency) $regular_price = $product->get_variation_regular_price(); $sale_price = $product->get_variation_price(); // Percentage calculation and text $percentage = round( ( $regular_price - $sale_price ) / $regular_price * 100 ).'%'; $percentage_txt = __('<br/>Du sparer ', 'woocommerce' ).$percentage; return '<del>' . wc_price( $regular_price ) . '</del> <ins>' . wc_price( $sale_price ) . $percentage_txt . '</ins>'; } } /* DU SPARER %-DEL I PRODUKT KODE P? VARIABLE PRODUCT */
Looks like i had forgotten to add the global $product.
- This reply was modified 6 years, 9 months ago by andersjytzler.
Forum: Fixing WordPress
In reply to: How do I point my site to a new DB Server?Here is the plugin in question https://da.www.ads-software.com/plugins/duplicator/
For those too lazy to search ??Forum: Fixing WordPress
In reply to: How do I point my site to a new DB Server?You could use Duplicator plugin. I’ve had lots of success using this plugin. Remember to read the documentation carefully through.
Else you can do it manually if you have a bit of technical knowledge.
This post goes through the steps you mention about migrating the DB https://snapcreek.com/blog/wordpress/techniques/manually-move-wordpress-site/