Luca
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Store Locator] Stores inserted via code not showingI think you misunderstood. Anyway I dug through your plugin code and found what I needed.
For anyone else reading this having the same issue:
$lat = get_post_meta($post_id, 'wpsl_lat', true);
$lng = get_post_meta($post_id, 'wpsl_lng', true);
$store_data = array(
'address' => get_post_meta($post_id, 'wpsl_address', true),
'city' => get_post_meta($post_id, 'wpsl_city', true),
'country' => get_post_meta($post_id, 'wpsl_country', true),
'lat' => '',
'lng' => '',
);
if (class_exists('WPSL_Geocode')) {
$geocoder = new WPSL_Geocode();
$geocoder->check_geocode_data($post_id, $store_data);
}Forum: Plugins
In reply to: [WP Store Locator] Stores inserted via code not showingYeah I think the issue is that google maps data is not loaded when directly inserting the post via code that way.
Is there a plugin-function I can trigger via PHP to generate the coordinates on the new post?That did the trick, thank you!
No no no no, it’s not beeing blocked, I just need to know what capability is needed to show it for the user.
I have user that has access to a backend module, but can’t access the backend because the capability for the backend is not set and I don’t know which one it is 😀
Forum: Plugins
In reply to: [WooCommerce] Change sequence / order of e-mails### WordPress Environment ### WordPress address (URL): https://*** Site address (URL): https://*** WC Version: 4.9.2 REST API Version: ✔ 4.9.2 WC Blocks Version: ✔ 4.0.0 Action Scheduler Version: ✔ 3.2.1 WC Admin Version: ✔ 1.8.3 Log Directory Writable: ✔ WP Version: 5.8.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ✔ Language: de_DE External object cache: – ### Server Environment ### Server Info: Apache/2.4.51 (Unix) PHP Version: 7.4.26 PHP Post Max Size: 128 MB PHP Time Limit: 240 PHP Max Input Vars: 4000 cURL Version: 7.80.0 OpenSSL/1.1.1l SUHOSIN Installed: – MySQL Version: 5.7.33-log Max Upload Size: 128 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 4.5.0 WC Database Prefix: ***_ Datenbank-Gesamtgröße: 23.88MB Datenbank-Datengröße: 19.84MB Datenbank-Indexgröße: 4.04MB wp_woocommerce_sessions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Daten: 0.06MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Daten: 0.05MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Daten: 0.13MB + Index: 0.13MB + Engine InnoDB wp_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Daten: 0.06MB + Index: 0.03MB + Engine InnoDB wp_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB wp_icl_content_status: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_core_status: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_flags: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_languages: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_icl_languages_translations: Daten: 0.20MB + Index: 0.17MB + Engine InnoDB wp_icl_locale_map: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_message_status: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_icl_mo_files_domains: Daten: 0.05MB + Index: 0.02MB + Engine InnoDB wp_icl_node: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_reminders: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_strings: Daten: 0.08MB + Index: 0.09MB + Engine InnoDB wp_icl_string_batches: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_string_packages: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_string_pages: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_icl_string_positions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_string_status: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_string_translations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_icl_string_urls: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_translate: Daten: 0.08MB + Index: 0.02MB + Engine InnoDB wp_icl_translate_job: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_icl_translations: Daten: 0.08MB + Index: 0.20MB + Engine InnoDB wp_icl_translation_batches: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_translation_downloads: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_icl_translation_status: Daten: 0.05MB + Index: 0.02MB + Engine InnoDB wp_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Daten: 5.30MB + Index: 0.13MB + Engine InnoDB wp_postmeta: Daten: 2.52MB + Index: 0.81MB + Engine InnoDB wp_posts: Daten: 7.52MB + Index: 0.30MB + Engine InnoDB wp_revslider_css: Daten: 0.13MB + Index: 0.00MB + Engine InnoDB wp_revslider_css_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders: Daten: 0.11MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_slides: Daten: 1.52MB + Index: 0.00MB + Engine InnoDB wp_revslider_slides_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_static_slides: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_static_slides_bkp: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_shortpixel_queue: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB wp_storeabill_documentmeta: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB wp_storeabill_documents: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_storeabill_document_itemmeta: Daten: 0.09MB + Index: 0.09MB + Engine InnoDB wp_storeabill_document_items: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_storeabill_document_noticemeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_storeabill_document_notices: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_storeabill_journals: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_termmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Daten: 0.08MB + Index: 0.03MB + Engine InnoDB wp_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Daten: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_gzd_dhl_im_products: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_dhl_im_product_services: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_packaging: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_gzd_packagingmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipmentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipments: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_gzd_shipment_itemmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipment_items: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gzd_shipment_labelmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipment_labels: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_shipping_provider: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_gzd_shipping_providermeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wpmailsmtp_debug_events: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 424 custom_css: 1 customize_changeset: 32 document_template: 4 nav_menu_item: 93 page: 26 popup: 2 popup_theme: 8 portfolio-item: 26 post: 26 product: 7 revision: 606 shop_coupon: 2 shop_order: 20 testimonials: 11 wbcr-snippets: 6 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (20) ### Additional Order Filters for WooCommerce: von Anton Bond – 1.10 Alter-Tor: von Phil Baker – 2.19.0 Contact Form 7 Multilingual: von OnTheGoSystems – 1.0.2 Contact Form 7: von Takayuki Miyoshi – 5.4.2 Duplicate Page: von mndpsingh287 – 4.4.5 Elated CPT: von Elated Themes – 1.3 Envato Market: von Envato – 2.0.6 Woody code snippets (PHP snippets | Insert PHP): von Creative Motion Will Bontrager Software LLC – 2.4.2 WPBakery Page Builder: von Michael M - WPBakery.com – 6.1 Loco Translate: von Tim Whitlock – 2.5.5 Slider Revolution: von ThemePunch – 6.1.5 Side Cart WooCommerce: von XootiX – 2.1 Vendidero Helper: von Vendidero – 2.1.0 Germanized für WooCommerce Pro: von vendidero – 3.3.6 Germanized für WooCommerce: von vendidero – 3.6.3 WooCommerce Min/Max Quantities: von WooCommerce – 2.4.24 WooCommerce PayPal Payments: von WooCommerce – 1.6.2 WooCommerce: von Automattic – 4.9.2 (Update auf Version 5.9.0 ist verfügbar) WP Mail SMTP: von WPForms – 3.2.1 WP Migrate DB: von Delicious Brains – 2.2.1 ### Inactive Plugins (11) ### Akismet Anti-Spam: von Automattic – 4.2.1 Elated Instagram Feed: von Elated Themes – 1.0.1 Elated Twitter Feed: von Elated Themes – 1.0.1 Regenerate Thumbnails Advanced: von ShortPixel – 2.4.0 WooCommerce Multilingual: von OnTheGoSystems – 4.11.1 WooCommerce PayPal Checkout Gateway: von WooCommerce – 2.1.3 WooCommerce Shipping & Tax: von WooCommerce – 1.25.19 (Update auf Version 1.25.20 ist verfügbar) WPML Media: von OnTheGoSystems – 2.6.3 WPML Multilingual CMS: von OnTheGoSystems – 4.4.9 WPML String Translation: von OnTheGoSystems – 3.1.7 WPML Translation Management: von OnTheGoSystems – 2.10.5 ### Dropin Plugins (1) ### maintenance.php: maintenance.php ### Must Use Plugins (1) ### WP Migrate DB Compatibility: von Delicious Brains – 1.2 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right_space Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) outofstock (outofstock-2) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-3 (rated-3-2) rated-4 (rated-4) rated-5 (rated-5) rated-5 (rated-5-2) Connected to WooCommerce.com: – ### WC Pages ### Shop-Basis: #8494 - /shop/ Warenkorb: #4259 - /einkaufswagen/ Kasse: #4260 - /kasse/ Mein Konto: #4261 - /mein-konto/ Allgemeine Geschäftsbedingungen: #10824 - /agb/ ### Theme ### Name: Vino Child Version: 1.0.1 Author URL: http://themeforest.net/user/elated-themes Child Theme: ✔ Parent Theme Name: Vino Parent Theme Version: 1.6 Parent Theme Author URL: http://themeforest.net/user/elated-themes WooCommerce Support: ✔ ### Templates ### Archive Template: Dein Theme hat eine woocommerce.php-Datei was dazu führt dass du das Template woocommerce/archive-product.php nicht überschreiben kannst da woocommerce.php höher gewichtet wird als archive-product.php. Das ist beabsichtigt um Darstellungsprobleme zu verhindern. Overrides: vino/woocommerce/content-product.php vino-child/woocommerce/emails/customer-processing-order.php vino/woocommerce/global/quantity-input.php Version 3.6.0 ist veraltet. Die Hauptversion ist 4.0.0 vino/product-searchform.php Outdated Templates: ❌ Erfahre wie du aktualisieren kannst ### WooCommerce PayPal Payments ### Onboarded: Yes Shop country code: DE PayPal card processing available in country: No Pay Later messaging available in country: Yes Vault enabled: Yes ### Action Scheduler ### Complete: 211 Oldest: 2021-12-03 09:45:49 +0100 Newest: 2021-12-08 09:06:21 +0100 Pending: 4 Oldest: 2021-12-08 12:08:25 +0100 Newest: 2021-12-09 00:23:09 +0100Forum: Plugins
In reply to: [WooCommerce] Change sequence / order of e-mailsThanks for the copy/paste text, but that is not my problem, the e-mails are all sent.
I want to switch the order in which these are sent! 🙂
Forum: Plugins
In reply to: [LoginPress | wp-login Custom Login Page Customizer] Version 1.2.3 is brokenSure, just tell me where to email it
Forum: Plugins
In reply to: [Address Book for WooCommerce] Disallow creation of new adressesI found a way!
For the user backend I used CSS to hide the edit and add buttons, for the checkout page I used this:
function hide_add_new() { echo '<script> jQuery(function($){ $(\'option[value="add_new"]\').remove(); });</script>'; } add_action('wp_footer', 'hide_add_new');Forum: Plugins
In reply to: [Address Book for WooCommerce] Add new adresses via PHPThank you soooo much, this acutally fixed it!
My sample address had no first line so this was the issue!!Forum: Plugins
In reply to: [Address Book for WooCommerce] Add new adresses via PHPOk that helped a bit, but there must be more to it.
If I add addresses by hand, works perfect.
If I add the same addresses to another account via PHP, nothing is shown in the backend. Everything in the database looks EXACTLY the same, tripple checked every char!
Addresses are just not shown! I can even add another address by hand in the backend, they are stored in the database with the php imported ones but again not shown in the backend.
Maybe I’ll go crazy but something is wrong there…
Forum: Plugins
In reply to: [Address Book for WooCommerce] Add new adresses via PHPThanks for the code, it helped me figuring out how the meta is saved.
So basically you safe the extra adresses as shippingN_company and so on, but this is not working for me.The entries are in the database, but not displayed in the user backend.
Could there be another counter in the database that needs updating or so?Also, is it possible to save the adresses without first / last name?
Tried with and without but nothing worked…Thank you very much in advance!
Forum: Plugins
In reply to: [Address Book for WooCommerce] German TranslationThank you!! The export solution worked PERFECTLY!
Forum: Plugins
In reply to: [WooCommerce] Get the item that was just added (PHP)It DOES get the product, I can just use $product_id and yes, I have to write custom code.
That’s what I wanted to do, but I needed that ID to do that in the first place 🙂Forum: Plugins
In reply to: [WooCommerce] Get the item that was just added (PHP)Since I’m able to develop myself and just need a simple tip on how to get a single variable, this is a bit overboard.
I asked on stack exchange, too. Seems that nobody ever had a similar problem before and nobody could help me.
Luckyly I found a solution (a quite dirty one…)
function wc_add_to_cart_message_filter($message, $product_id = null) { $message = 'Extra field.</div><div class="woocommerce-message" role="alert">' . $message; return $message; } add_filter ( 'wc_add_to_cart_message', 'wc_add_to_cart_message_filter', 10, 2 );Results in this.
Forum: Plugins
In reply to: [Featured Image by URL] Doesn’t work with WooCommerce 3.6.0Does anyone have an idea for a hotfix? I need this desperatly for my companies shop!