Victoria
Forum Replies Created
-
I would like to leave this ticket open and address this after the 20th. I will be traveling and I think it would be better if I could come back to this then when I have more time. Is that possible?
everything is working fine – rolled back to 8.7.0. We had noticed that our other site had no issues and that is when I noticed that the Woocommerce plugin was different – square plugin is the latest version – but the main woocommerce is older.
Actually the only way we were able to get it working was to roll back the woocommerce version – we will wait and see about updating in the future.
Actually all is good – so sorry for the confusion
- This reply was modified 2 years, 1 month ago by Victoria.
We just rolled back the Woocommerce plug in and now it is working. No more error
I just found out that the Under construction was put on last week on Kyle; the security plugins are EXACTLY the same on both websites. We turned off all the settings for the security and still have issues; The Shorty website that is not having any trouble and had all the same security (actually working security) the only difference is it is running Version 8.7.0 of Woo Commerce and Version 4.6.1 of Woocommerce Square. The Kyle tack site that we are having issues with is running the latest versions of both the WooCommerce and the Woocommerce Square. It still has not resolved the issues to remove all security – we still have the error about disconnect and reconnect.
- This reply was modified 2 years, 1 month ago by Victoria.
I have another client that has a website with us and they have the same Sucuri Security – Auditing, Malware Scanner and Hardening and they have no issues. So I am removing the Under Construction as that is not on the Shorty (the other site) site at this time. Let me see if that fixes the issue. I will let you know tomorrow if it stays connected.
gist:62762b72c70069267a846aa2ed0d1560
See if this works. Sorry missed the email that you sent the other day. Thank you SO MUCH for your help – it disconnected twice over the weekend.
Could you tell me if the Square was working fine before it you have been facing this issue since the beginning. Also, share a few screenshots of what you are seeing. Yes has been working fine – started having issues with the access token 4/18 and it disconnects daily.
we have this “error” about Heads Up – message and it never goes away. (not sure how to share that image here)How do you want me to share the logs? I zipped them and added them to a drop box folder here
https://www.dropbox.com/scl/fi/rimpwzyxp6akqqoag6xty/woocommerce_logs_2024-05-03_15-59-06.zip?rlkey=gljgt8fw37wzlg8nygqi6xhhd&st=3ht40tr4&dl=0Forum: Plugins
In reply to: [WP Store Locator] Show second name under store name and before addressOK – sorry I was out of the country for a few days and am just getting back to this. So – still not sure what to do to make this look correct. I fixed the Type and got it to show up on the front side of the site. There is no label for it, but I am OK with that. I still would like a second name under the First name and I am not sure how to make that work. That is really important for me. Is there anyway you could send me how that should be added and where? Also I made both phone numbers clickable. I changed the label of the Fax to be a cell number. Only problem is the email is directly below that and the word Email on the stores that have a cell number is a hyperlink to the phone number, rather than just a text label Email: I can’t figure out how to break that. I hope you can help me with these two issues. Here is my code:
add_filter( 'wpsl_listing_template', 'custom_listing_template' ); function custom_listing_template() { global $wpsl, $wpsl_settings; $listing_template = '<li data-store-id="<%= id %>">' . "\r\n"; $listing_template .= "\t\t" . '<div>' . "\r\n"; $listing_template .= "\t\t\t" . '<p><%= thumb %>' . "\r\n"; $listing_template .= "\t\t\t\t" . wpsl_store_header_template( 'listing' ) . "\r\n"; $listing_template .= "\t\t\t\t" . '<span class="wpsl-street"><%= address %></span>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<% if ( address2 ) { %>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<span class="wpsl-street"><%= address2 %></span>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<span>' . wpsl_address_format_placeholders() . '</span>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<span class="wpsl-country"><%= country %></span>' . "\r\n"; $listing_template .= "\t\t\t" . '</p>' . "\r\n"; // Show the phone, fax or email data if they exist. $listing_template .= "\t\t\t" . '<p class="wpsl-contact-details">' . "\r\n"; $listing_template .= "\t\t\t" . '<% if ( phone ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'phone_label', __( 'Phone', 'wpsl' ) ) ) . '</strong>: <a href="tel:<%= formatClickablePhoneNumber( phone ) %>"><%= phone %></a></span>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t\t" . '<% if ( fax ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'fax_label', __( 'Fax', 'wpsl' ) ) ) . '</strong>: <a href="tel:<%= formatClickablePhoneNumber( fax ) %>"><%= fax %></span>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t\t" . '<% if ( email ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'email_label', __( 'Email', 'wpsl' ) ) ) . '</strong>: <a href="mailto:<%= email %>"><%= email %></a></span>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t\t" . '</p>' . "\r\n"; $listing_template .= "\t\t" . '</div>' . "\r\n"; // Check if the 'type' contains data before including it. $listing_template .= "\t\t\t" . '<% if ( type_cattle ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'type_cattle_label', __( 'Type cattle', 'wpsl' ) ) ) . '</strong> <%= type_cattle %></span>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t" . '</div>' . "\r\n"; // Check if the 'website_url' contains data before including it. $listing_template .= "\t\t\t" . '<% if ( website_url ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<p><a href="<%= website_url %>" TARGET="_blank">' . __( 'Visit Our Website', 'wpsl' ) . '</a></p>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t" . '</div>' . "\r\n"; // Check if we need to show the distance. if ( !$wpsl_settings['hide_distance'] ) { $listing_template .= "\t\t" . '<%= distance %> ' . esc_html( $wpsl_settings['distance_unit'] ) . '' . "\r\n"; } $listing_template .= "\t\t" . '<%= createDirectionUrl() %>' . "\r\n"; $listing_template .= "\t" . '</li>' . "\r\n"; return $listing_template; } add_filter( 'wpsl_meta_box_fields', 'custom_meta_box_fields' ); function custom_meta_box_fields( $meta_fields ) { $meta_fields[__( 'Additional Information', 'wpsl' )] = array( 'phone' => array( 'label' => __( 'Tel', 'wpsl' ) ), 'fax' => array( 'label' => __( 'Fax', 'wpsl' ) ), 'email' => array( 'label' => __( 'Email', 'wpsl' ) ), 'url' => array( 'label' => __( 'Url', 'wpsl' ) ), 'website_url' => array( 'label' => __( 'Website', 'wpsl' ) ), 'type_cattle' => array( 'label' => __( 'Type of cattle', 'wpsl' ) ) ); return $meta_fields; } add_filter( 'wpsl_frontend_meta_fields', 'custom_frontend_meta_fields' ); function custom_frontend_meta_fields( $store_fields ) { $store_fields['wpsl_website_url'] = array( 'name' => 'website_url', 'type' => 'url' ); $store_fields['wpsl_type_cattle'] = array( 'name' => 'type_cattle' ); return $store_fields; } add_filter( 'wpsl_info_window_template', 'custom_info_window_template' ); function custom_info_window_template() { $info_window_template = '<div data-store-id="<%= id %>" class="wpsl-info-window">' . "\r\n"; $info_window_template .= "\t\t" . '<p>' . "\r\n"; $info_window_template .= "\t\t\t" . wpsl_store_header_template() . "\r\n"; $info_window_template .= "\t\t\t" . '<span><%= address %></span>' . "\r\n"; $info_window_template .= "\t\t\t" . '<% if ( address2 ) { %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<span><%= address2 %></span>' . "\r\n"; $info_window_template .= "\t\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<span>' . wpsl_address_format_placeholders() . '</span>' . "\r\n"; $info_window_template .= "\t\t" . '</p>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( description ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= description %>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= createInfoWindowActions( id ) %>' . "\r\n"; $info_window_template .= "\t" . '</div>' . "\r\n"; return $info_window_template; } add_filter( 'wpsl_include_post_content', '__return_true' );Forum: Plugins
In reply to: [WP Store Locator] Show second name under store name and before addressProbably should include the changes that I have made so far. ALso – I have created a new field called Type but can’t get it to show on the front end.
add_filter( 'wpsl_listing_template', 'custom_listing_template' ); function custom_listing_template() { global $wpsl, $wpsl_settings; $listing_template = '<li data-store-id="<%= id %>">' . "\r\n"; $listing_template .= "\t\t" . '<div>' . "\r\n"; $listing_template .= "\t\t\t" . '<p><%= thumb %>' . "\r\n"; $listing_template .= "\t\t\t\t" . wpsl_store_header_template( 'listing' ) . "\r\n"; $listing_template .= "\t\t\t\t" . '<span class="wpsl-street"><%= address %></span>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<% if ( address2 ) { %>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<span class="wpsl-street"><%= address2 %></span>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<span>' . wpsl_address_format_placeholders() . '</span>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<span class="wpsl-country"><%= country %></span>' . "\r\n"; $listing_template .= "\t\t\t" . '</p>' . "\r\n"; // Show the phone, fax or email data if they exist. $listing_template .= "\t\t\t" . '<p class="wpsl-contact-details">' . "\r\n"; $listing_template .= "\t\t\t" . '<% if ( phone ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'phone_label', __( 'Phone', 'wpsl' ) ) ) . '</strong>: <a href="tel:<%= formatClickablePhoneNumber( phone ) %>"><%= phone %></a></span>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t\t" . '<% if ( fax ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'fax_label', __( 'Fax', 'wpsl' ) ) ) . '</strong>: <a href="tel:<%= formatClickablePhoneNumber( fax ) %>"><%= fax %></span>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t\t" . '<% if ( email ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'email_label', __( 'Email', 'wpsl' ) ) ) . '</strong>: <a href="mailto:<%= email %>"><%= email %></a></span>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t\t" . '</p>' . "\r\n"; $listing_template .= "\t\t" . '</div>' . "\r\n"; // Check if the 'website_url' contains data before including it. $listing_template .= "\t\t\t" . '<% if ( website_url ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<p><a href="<%= website_url %>" TARGET="_blank">' . __( 'Visit Our Website', 'wpsl' ) . '</a></p>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t" . '</div>' . "\r\n"; // Check if we need to show the distance. if ( !$wpsl_settings['hide_distance'] ) { $listing_template .= "\t\t" . '<%= distance %> ' . esc_html( $wpsl_settings['distance_unit'] ) . '' . "\r\n"; } $listing_template .= "\t\t" . '<%= createDirectionUrl() %>' . "\r\n"; $listing_template .= "\t" . '</li>' . "\r\n"; return $listing_template; } add_filter( 'wpsl_meta_box_fields', 'custom_meta_box_fields' ); function custom_meta_box_fields( $meta_fields ) { $meta_fields[__( 'Additional Information', 'wpsl' )] = array( 'phone' => array( 'label' => __( 'Tel', 'wpsl' ) ), 'fax' => array( 'label' => __( 'Fax', 'wpsl' ) ), 'email' => array( 'label' => __( 'Email', 'wpsl' ) ), 'url' => array( 'label' => __( 'Url', 'wpsl' ) ), 'website_url' => array( 'label' => __( 'Website', 'wpsl' ) ), 'type_cattle' => array( 'label' => __( 'Type of cattle', 'wpsl' ) ) ); return $meta_fields; } add_filter( 'wpsl_frontend_meta_fields', 'custom_frontend_meta_fields' ); function custom_frontend_meta_fields( $store_fields ) { $store_fields['wpsl_website_url'] = array( 'name' => 'website_url', 'type' => 'url' ); return $store_fields; $store_fields['wpsl_type_cattle'] = array( 'name' => 'type_cattle' ); return $store_fields; } add_filter( 'wpsl_info_window_template', 'custom_info_window_template' ); function custom_info_window_template() { $info_window_template = '<div data-store-id="<%= id %>" class="wpsl-info-window">' . "\r\n"; $info_window_template .= "\t\t" . '<p>' . "\r\n"; $info_window_template .= "\t\t\t" . wpsl_store_header_template() . "\r\n"; $info_window_template .= "\t\t\t" . '<span><%= address %></span>' . "\r\n"; $info_window_template .= "\t\t\t" . '<% if ( address2 ) { %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<span><%= address2 %></span>' . "\r\n"; $info_window_template .= "\t\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<span>' . wpsl_address_format_placeholders() . '</span>' . "\r\n"; $info_window_template .= "\t\t" . '</p>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( description ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= description %>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= createInfoWindowActions( id ) %>' . "\r\n"; $info_window_template .= "\t" . '</div>' . "\r\n"; return $info_window_template; } add_filter( 'wpsl_include_post_content', '__return_true' );Forum: Plugins
In reply to: [WP Store Locator] text custom fieldthe problem that I am having is having it show up on the front end. I have this code and am having trouble adding another custom field
add_filter( 'wpsl_frontend_meta_fields', 'custom_frontend_meta_fields' ); function custom_frontend_meta_fields( $store_fields ) { $store_fields['wpsl_website_url'] = array( 'name' => 'website_url', 'type' => 'url' ); return $store_fields; }