mdawg32
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Want to include first image in gallerySorry, I totally missed the email notification…
Here’s the example site:
https://aquasorbhumidifier.com/product/e-dri-reusable-drying-pods/the “main image” is the first one in the left column and the gallery are the smaller ones below.
When I click on the first image I want to be able to view it as part of the gallery… hitting the next arrow to view all the thumbs that are below the main image, so it’s one consistent gallery.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Make products higher in search resultsThank you so much!
I’ll give that code a try ??
Forum: Plugins
In reply to: [Scroll to Anchor] Bootstrap ConflictActually the solution is SUPER simple – just figured it out this morning.
If you add
$.noConflict();
To the very beginning of the scroll-to-anchor.min.js file it fixes the problem.
Any chance you could update the plugin with that?
Thanks for your quick response too.
Forum: Plugins
In reply to: WooCommerce custom drop down button not writing entry to backendGot it, here’s the working code.
/** * Add the field to the checkout */ add_action( 'woocommerce_after_order_notes', 'my_custom_checkout_field' ); function my_custom_checkout_field( $checkout ) { woocommerce_form_field( 'my_field_name', array( 'type' => 'select', 'class' => array('my-field-class form-row-wide'), 'label' => __('Fill in this field'), 'placeholder' => __('Enter something'), 'options' => array( 'General Donation' => __('General Donation', 'woocommerce'), 'Annual Appeal' => __('Annual Appeal', 'woocommerce'), 'Dining in the Dark' => __('Dining in the Dark', 'woocommerce'), 'In Honor Of' => __('In Honor Of', 'woocommerce'), 'In Memory Of' => __('In Memory Of', 'woocommerce'), ), ), $checkout->get_value( 'my_field_name' )); } /** * Process the checkout */ add_action('woocommerce_checkout_process', 'my_custom_checkout_field_process'); function my_custom_checkout_field_process() { // Check if set, if its not set add an error. if ( ! $_POST['my_field_name'] ) wc_add_notice( __( 'Please enter something into this new shiny field.' ), 'error' ); } /** * Update the order meta with field value */ add_action( 'woocommerce_checkout_update_order_meta', 'my_custom_checkout_field_update_order_meta' ); function my_custom_checkout_field_update_order_meta( $order_id ) { if ( ! empty( $_POST['my_field_name'] ) ) { update_post_meta( $order_id, 'My Field', sanitize_text_field( $_POST['my_field_name'] ) ); } } /** * Display field value on the order edit page */ add_action( 'woocommerce_admin_order_data_after_billing_address', 'my_custom_checkout_field_display_admin_order_meta', 10, 1 ); function my_custom_checkout_field_display_admin_order_meta($order){ echo '<p><strong>'.__('Reason for Donation').':</strong> ' . get_post_meta( $order->id, 'My Field', true ) . '</p>'; }
Forum: Plugins
In reply to: [Visual Editor Custom Buttons] Multisite IssuesTurned out to be a permissions error
Yep, just updated it this morning from my back up. All is good.
I had a backup. Restored it locally, just going to push it up to live.
Thanks Tara
Ok, so I looked at the error logs file and the most recent error logs on CPanel. I’m thinking you’re talking about the error logs file, seems to be more descriptive.
I’m not an expert with error logs, but I’m thinking it probably comes down to one or all of these:
[17-Feb-2015 19:58:29 UTC] WordPress database error Can't create/write to file '/tmp/#sql_45fe_0.MYI' (Errcode: 28)
[13-Apr-2015 20:30:22 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query
[19-Jun-2015 23:25:08 UTC] PHP Warning: require_once(/home/petstyling/public_html/wp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory
[19-Jun-2015 23:25:08 UTC] PHP Fatal error: require_once(): Failed opening required '/home/petstyling/public_html/wp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/lib/php:/usr/local/lib/php')
Any suggestions?