sandyfischler
Forum Replies Created
-
Thank you, somehow I missed that setting. I’ll give that a test run!
Forum: Plugins
In reply to: [WooCommerce] Show Set Up Task ListHello? Anyone?
Forum: Plugins
In reply to: [WooCommerce] Show Set Up Task ListThanks, I’ve gotten to that part. What I can’t get back to is the task list in image #1. In that task list is a quick payments set up that provides a link to set up PayPal that’s far, far easier than trying to find Identity Tokens or API info, all of which are near impossible to find on PayPal.
https://docs.woocommerce.com/wp-content/uploads/2020/10/onboarding-task-list.pngThere is a button for Task List and mine is stuck – it says “disable”, which theoretically means it’s enabled. I’ve tried to click it to disable – thinking I can reenable it but nothing happens.
- This reply was modified 3 years, 10 months ago by sandyfischler.
- This reply was modified 3 years, 10 months ago by sandyfischler.
Forum: Plugins
In reply to: [WooCommerce] Product VariationsThanks, that did work!
I solved my electrical problem by creating Electrical that as a product and setting it as a Cross Sell option. Worked perfectly!
Forum: Plugins
In reply to: [WooCommerce] Customizing product feedsPerfect! That did it. Thank you!
Ah, thank you for the quick response. I added enough text in the “intro” to bump the form down enough to get past the gradient.
I use this same plugin on another site and it works perfectly there, so I was mystified as to why not on this one.
Another crisis solved.
Forum: Themes and Templates
In reply to: Ecommerce theme with both cart AND affiliateNever mind! After some more research it seems that WooCommerce does support affiliate products as well, plus there is a plugin for the Amazon API. So, I think my solution is to find a WooCommerce theme and add the plugin plus the Dropshipper plugin and I’m in business (literally…)
Forum: Hacks
In reply to: Custom Widget CodeFor the record, here is how our spiffy new widgets came out with Ryan’s awesome help!
Forum: Hacks
In reply to: Custom Widget CodeThat was it – I had some white space at the end of my functions.php file.
You are such a lifesaver….thank you, thank you, thank you.
Forum: Hacks
In reply to: Custom Widget CodeI removed the strip_tags from the textarea field and that did the trick.
Now, I have yet another new funky problem. My other user logs into the admin of our WP install for this site and he gets the WSOD. I have no problem, everything shows for me. We are both admins.
I turned on debug and this is the error message he gets:
Warning: Cannot modify header information – headers already sent by (output started at /home/fullercenterlosa/public_html/wp-content/themes/fullercenteropenstrap/functions.php:47) in/home/fullercenterlosa/public_html/wp-includes/pluggable.php on line 1178l
Forum: Hacks
In reply to: Custom Widget CodeYes, I’ve resolved my WSOD! Thank you!
I’m confused now that my buttoms aren’t showing up when I paste in the code for them, should I have created a different type of field for that code other than textarea?
The Just Give code is this but it doesn’t create the donate button or the link when I paste it into the textarea box.
<a href="https://npo.justgive.org/nonprofits/donate.jsp?ein=47-1793242"> <img src="https://npo.justgive.org/images/np_btn_donate_now.jpg"> </a>
The PayPal and Amazon Smile button codes don’t show either.
Forum: Hacks
In reply to: Custom Widget CodeNo, these are only going to be used on this one page. I was trying to follow the way the theme set up the sidebars on the front page. They registered 4 of them that are only used on the front page in their functions.php. I followed the example as shown here in the original theme:
My goal was to create the same set up on the donations page for my 3 donation channels as the front page has for marketing text.
On the front page of the theme I copied out the section relating to the front page widgets and dropped it into my custom page template, this is the original theme file for the front page:
There may be a simpler and better way to do this, I thought it would be a good way to learn how to make custom widgets and expand my capabilities. Eventually we will have up to 6 different donation channels and setting them up in a grid as widgets looked to me to be a nice way to keep a clean layout..but I could be wrong.
Forum: Hacks
In reply to: Custom Widget CodeOk, here are my pastebin links (much thanks for that suggestion!)
functions.php
https://pastebin.com/f4jTXPU5______________________________________
My custom plugin page to create these 3 widgets
https://pastebin.com/f54PWvqt_______________________________________
custom page template for donations (I took this code from the front page of my theme and plugged it in to the donations page). This is the page that is currently working. Since this is a static page I can probably delete the sections referencing posts but baby steps…
donation-content-sidebar.php
https://pastebin.com/WdUBFGiU_____________________________________
The adaptation that produces the WSOD on the custom page template:
Forum: Hacks
In reply to: Custom Widget CodeHere is how my widgets look now that I’ve got all three of them in the admin section:
https://www.tenthmusecreative.com/hosted-images/fuller-widgets.JPGThe two new ones did the same thing as the first, I dragged over my widget but it doesn’t show any fields until I save and re-open the widget.
Not a big deal, but I’d like to learn to do things correctly.
My new frustration is getting my widgets to display properly.
I have the first one showing up (it’s the “test” at the bottom” but when I duplicate my code I get the white screen of death.
Here is the page:
https://fullercenterlosangeles.org/donate/<div class="col-md-<?php echo $divclass; ?>"> <?php if ( is_active_sidebar( 'donation_left' ) ) : ?> <div id="primary-sidebar" class="fuller_of_openstrap_donation_page_one="complementary"> <?php dynamic_sidebar( 'donation_left' ); ?> </div><!-- #primary-sidebar --> <?php endif; ?> </div>
In theory, I should be able to just duplicate this with donation_mid and donation_right and then start styling it?
(also I can’t pull up the admin parts of the site in Firefox for some reason, something about not supplying ownership information…)
Forum: Hacks
In reply to: Custom Widget CodeSorry, I found my mistake and can’t delete that older post.
Excellent! Thank you. I’ve gotten my widget to successfully show up in the widget list and do what is intended. I’ve got the widgetized area registered on my functions.php and showing up.
Something is funky in my code because when I drag my widget over to the widgetized area it starts to create the form but then it disappears. I have to save the widget, then the form will appear and I can enter data.
My indentation is a little messy (newbies, sheesh!) but here is how it comes out:
<?php /* Plugin Name: Fuller Donation Widgets Description: Donation channel widgets Author: Sandy Fischler Version: 1 */ /* Start Adding Functions Below this Line */ class fuller_of_openstrap_donation_page_one extends WP_Widget { function fuller_of_openstrap_donation_page_one() { // Instantiate the parent object parent::__construct( false, 'Fuller Donation Widget 1' ); } function widget( $args, $instance ) { // Widget output extract( $args ); // these are the widget options $title = apply_filters('widget_title', $instance['title']); $text = $instance['text']; $textarea = $instance['textarea']; echo $before_widget; // Display the widget echo '<div class="widget-text wp_widget_plugin_box">'; // Check if title is set if ( $title ) { echo $before_title . $title . $after_title; } // Check if text is set if( $text ) { echo '<p class="wp_widget_plugin_text">'.$text.'</p>'; } // Check if textarea is set if( $textarea ) { echo '<p class="wp_widget_plugin_textarea">'.$textarea.'</p>'; } echo '</div>'; echo $after_widget; } function update( $new_instance, $old_instance ) { // Save widget options $instance = $old_instance; // Fields $instance['title'] = strip_tags($new_instance['title']); $instance['text'] = strip_tags($new_instance['text']); $instance['textarea'] = strip_tags($new_instance['textarea']); return $instance; } function form( $instance ) { // Output admin widget options form if( $instance) { $title = esc_attr($instance['title']); $text = esc_attr($instance['text']); $textarea = esc_textarea($instance['textarea']); } else { $title = ''; $text = ''; $textarea = ''; } ?> <p> <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Widget Title', 'wp_widget_plugin'); ?></label> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /> </p> <p> <label for="<?php echo $this->get_field_id('text'); ?>"><?php _e('Text:', 'wp_widget_plugin'); ?></label> <input class="widefat" id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>" type="text" value="<?php echo $text; ?>" /> </p> <p> <label for="<?php echo $this->get_field_id('textarea'); ?>"><?php _e('Textarea:', 'wp_widget_plugin'); ?></label> <textarea class="widefat" id="<?php echo $this->get_field_id('textarea'); ?>" name="<?php echo $this->get_field_name('textarea'); ?>"><?php echo $textarea; ?></textarea> </p> <?php } } function myplugin_register_widgets() { register_widget( 'fuller_of_openstrap_donation_page_one' ); } add_action( 'widgets_init', 'myplugin_register_widgets' ); /* Stop Adding Functions Below this Line */ ?>