pickme
Forum Replies Created
-
Hi @sanzeeb3!
Thank you very much for the super analytical support reply.
I cloned the staging site that fortunately had these 4 action scheduler tables, to its live version and the issue was resolved in that manner. I am now installing plugin action-scheduler-3.1.6 to another site on which the 4 tables are missing and are imported successfully.
If I encounter a problem with action-scheduler-3.1.6 I will follow your steps.
Question: It is a good practice to install those 4 tables via plugin action-scheduler-3.1.6 to any website I maintain in order to solve this problem before it arise, or an SQL database is fine without these tables, since there is no notice of a problem?
Thank you
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Cookie scan issuesHi Aert!
I did what you described many times. Completing the wizard many times, with no scan results all with Wordfence and W3 Total Cache deactivated. The results from the scan appeared the next day.
There is one more issue.
Not all cookies are detected.
Google Analytics cookies are not detected as well as Complianz Cookies.
Thank you
Hello Sanjeev,
I receive the critical error as well. The wordpress alert email displayed the following details regarding the error:
Error details =========================================== Type E_ERROR was detected on line 44 of file /var/www/vhosts/domain.com/domain.com/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php. Error code: Uncaught RuntimeException: Error saving action: Error saving action: Table 'xxx.xxx_actionscheduler_actions' doesn't exist in /var/www/vhosts/domain.com/domain.com/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44 Stack trace: #0 /var/www/vhosts/domain.com/domain.com/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator->save_action() #1 /var/www/vhosts/domain.com/domain.com/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_HybridStore->save_action() #2 /var/www/vhosts/domain.com/domain.com/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php(84): ActionScheduler_ActionFactory->store() #3 /var/www/vhosts/domain.com/domain.com/wp-content/plugins/wp-mail-smtp/I followed the fix you mentioned here and receved the same critical error for Action Scheduler plugin..
Regards!
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Cookie scan issuesHello Aert,
The cookie scan does not detect any first party cookies! There is no list of detected cookies. I am using Chrome and the website at the time of scan was not under construction.
The list of cookies I am refering to seeing, are the third party cookies that I should judge if they are indeed placed. I don’t have that many third party cookies but I do have first party cookies.
The cookies scanner via the wizard returns empty list.
Could you please advise me on this?
Thank you
Hello Marcus!
I tested it and did not work! 🙁
I did the following tests:
1) I edited the sale price and hit quick save. > Product on shop page remained on same position even though its discount percentage was increased.
2) I edited the sale price within product page, saved it and product changed position. Then on same product, changed sale price again, I used quick save, but product did not change position.I am using plugin: Code Snippets and added the following 2 snippets on separate files:
// calculate discount percentage on product edit page edit/save add_action('woocommerce_process_product_meta', 'woo_calc_my_discount'); function woo_calc_my_discount( $product_id ) { $_product = wc_get_product( $product_id ); $regular = (float) $_product->get_regular_price(); $sale = (float) $_product->get_sale_price(); $discount = round( 100 - ( $sale / $regular * 100), 2 ); update_post_meta( $product_id, '_discount_amount', $discount ); }// calculate discount percentage on product quick edit/save add_action('woocommerce_product_quick_edit_save', 'sv_woo_calc_my_discount_quickedit'); function sv_woo_calc_my_discount_quickedit( $post ) { $_product = wc_get_product( $post ); $regular = (float) $_product->get_regular_price(); $sale = (float) $_product->get_sale_price(); $discount = round( 100 - ( $sale / $regular * 100), 2 ); update_post_meta( $post->ID, '_discount_amount', $discount ); }What would be a solution that would work?
I am grateful if you could help on this.Thank you very much!
- This reply was modified 5 years, 9 months ago by pickme.
Forum: Plugins
In reply to: [WooCommerce] Reorder address field 2Thank you!
Hi Marcus, I added
add_action('woocommerce_product_quick_edit_save', 'woo_calc_my_discount');belowadd_action('woocommerce_process_product_meta', 'woo_calc_my_discount');.I changed sale price of a product with the quick edit feature to alter position in the descending percentage order, but unfortunately it did not change position. It should be first since I increased it to 90% sale price, but remained in same place.
Changing the priority hook
add_action('woocommerce_product_quick_edit_save', 'woo_calc_my_discount');
is executed, would that fix it?I would be grateful for further help!!
Thank youHi!
I want to promote product categories, for example: Summer Sale up to 60%. Therefore, I can set a category, an attribute with archives enabled and with the sorting query, a URL is created!
All products on the shop have a sale price. Therefore, setting the sorting order by sale price does not make sense, since sorting order ‘Price:Low to High orders the Sale price and not the regular price.
Anyhow, I am using the snippet codes below to:
1) Calculate the discount percentage.
2) Place the sorting option in the sorting list.It works, the problem is that the discount calculation is not carried out when editing product price by WP’s ‘quick edit’ feature, but only with opening the product edit page and setting the product price with in it and saving the page.
Could you please help me out to accomplish calculating the discount percentage by editing a product price by WP’s ‘quick edit’?
Thank you!
// calculate and save discount amount on product save/edit add_action('woocommerce_process_product_meta', 'woo_calc_my_discount'); function woo_calc_my_discount( $product_id ) { $_product = wc_get_product( $product_id ); $regular = (float) $_product->get_regular_price(); $sale = (float) $_product->get_sale_price(); $discount = round( 100 - ( $sale / $regular * 100), 2 ); update_post_meta( $product_id, '_discount_amount', $discount ); }Then this snippet:
add_filter( 'woocommerce_catalog_orderby', 'misha_add_custom_sorting_options' ); function misha_add_custom_sorting_options( $options ){ $options['_discount_amount'] = 'Sale: High to Low'; return $options; }and this snippet:
add_filter( 'woocommerce_get_catalog_ordering_args', 'misha_custom_product_sorting' ); function misha_custom_product_sorting( $args ) { // Discount percentage: High to Low if( isset( $_GET['orderby'] ) && '_discount_amount' === $_GET['orderby'] ) { $args['meta_key'] = '_discount_amount'; $args['order'] = 'desc'; } return $args; }Forum: Plugins
In reply to: [User Role Editor] Delete / Export Personal DataHello,
Thank you for your support.
I added the filter as a snippet and enabled ‘manage_options’ capability for shop manager.
I did not manage to solely allow Erase personal data and Export personal data for the Shop Manager.
Could you please clarify on how to implement this?
Thank you
- This reply was modified 5 years, 9 months ago by pickme.
Hi Sanjeev,
In the meantime I added this filter as a snippet and works indeed. When you update I should probably use previous filter.
Regards,
Thank you!Forum: Plugins
In reply to: [WP Frontend Delete Account] From Email addressForum: Plugins
In reply to: [WP Frontend Delete Account] From Email addressSanjeev, I added it.
I am using another plugin to do the delete/export personal data and it is getting confused for users.
For example when I use your plugin, the user is deleted, but his personal data is maintained in the database through his orders. So what is the point of having a delete account feature if it does not wipe out all personal data, from account, from orders, even product reviews by anonymising his username only and maintaining his review-?- maybe?
I am using another plugin for deleting and exporting personal data on front end but that does not delete account, so personal data are maintained on user’s account for this case.
Therefore, users should do both of the above.
I believe all features in one plugin would be perfect and unique, there is no such plugin.
Thank you!
Forum: Plugins
In reply to: [WP Frontend Delete Account] From Email addressThank you for that!
In addition,
With the delete account feature, why don’t you add WordPress’s Core feature: delete personal data, so that Woocommerce’s orders’ data to be deleted as well?
Thank you
Forum: Plugins
In reply to: [WP Frontend Delete Account] From Email addressSanjeev I have one more question:
I would like to use the shortcode to display the delete account form on a page.
In this case, how do I hide/remove it from Woocommerce’s account control panel?
With CSS only?
Thank you
Forum: Plugins
In reply to: [WP Frontend Delete Account] From Email addressThank you Sanjeev,
Regards!