danzigism
Forum Replies Created
-
Forum: Plugins
In reply to: [WP eCommerce] Table Rate Price/Quantity Discount Metadata Name ChangeI went ahead and removed [state] from the conditional statement and it definitely works now on all products. After doing so, I was noticing that my particular function was still returning that table_rate_price is always TRUE regardless if there was a price associated with multiple quantities.
So I simply added [‘table_rate_price’][‘table_price’] and now my code shows up on every product page that has multiple quantity discounts!
Sweet. Thanks for your help in diagnosing the problem.
Forum: Plugins
In reply to: [WP eCommerce] Table Rate Price/Quantity Discount Metadata Name ChangeThanks for the help Justin. I wonder why this function no longer works?
It works for all of my old products prior to the update.
If I create a new product and specify a quantity discount, this function no longer displays the price.
If you can think of a better method I can use to show the quantity discounts on a single product page, I would appreciate your guidance.
Thank you for the quick reply!
Forum: Plugins
In reply to: [WP eCommerce] Categories out of orderHey there gmet, thanks for the information. I’ve been using WordPress for 5 years and had no idea you could just drag around the dag-on categories haha. For now this has fixed my issue, however I do have a crap load of categories and can only hope that these change automatically and dynamically for me in the future. I think WPEC relies on the order number rather than the true alphabetized list.
Either way I appreciate the quick temporary fix for the time being but hope it gets fixed permanently in the future.
Forum: Plugins
In reply to: [eCommerce Feeder] Broken with 3.5.1I’m also experiencing this problem. I desperately need to use this plugin to import custom meta data for my store’s customers. Nothing else is capable of importing this kind of data. Everyday there’s some new issue that I need to fix with WP E-Commerce. Wish I would have chosen WooCommerce months ago but I’m stuck with thousands of dollars worth of add-ons and no support.
Forum: Fixing WordPress
In reply to: Update core not working with PHP 5.4 Apache and FastCGILooks like it was an issue with one of the plugins I was using. Argh. After I deactivated them all, I was immediately taken to the screen where “Database update required” and it went through the DB upgrade without any problems.
The plugin in question was “BP-Album” for BuddyPress. Once I upgraded to 3.5, there was a plugin update available as well.
Everything seems to be fixed as of now.
Thanks ??
Fixed my issue. I had to modify my website’s .htaccess file to redirect the requests sent to domain.com to go to https://www.domain.com. It is essential to not have duplicate sites. To redirect domain.com to https://WWW.domain.com, add the following to your .htaccess file:
RewriteCond %{HTTP_HOST} !^(www\.domain\.com)?$ RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]
Forum: Plugins
In reply to: [Adminimize] Adminimize update crashed my WP installFIXED the problem by downloading https://downloads.www.ads-software.com/plugin/adminimize.zip
Replace the whole wp-content/plugins/adminimize folder with the contents of this ZIP and the problem is fixed.
Forum: Plugins
In reply to: [Adminimize] Adminimize update crashed my WP installI just updated the Adminimize plugin this morning as well, and it is also giving me the same exact error. From what I’m reading, this problem has happened in the past in regards to a ABSPATH not being defined properly although I am unsure. Hope to get a fix soon.
I was wondering about the File Attachment feature. I was thinking of using the (Mail 2) portion of the plugin to actually email the applicant the “FREE GUIDE” as an attachment.
I was hoping there might be some special way to paste in the URL of a file in the “File Attachment” field, but of course it is only for the [file] tag which is for the file the applicants would actually upload. I’d like to reverse this process.
Any thoughts on making this possible?
Forum: Plugins
In reply to: Change Default Position of Category and Publish BoxesI imagine I can do this by some how utilizing the add_meta_box() function. However I’m unsure as to how I can do this with a custom post type and taxonomy.
The taxonomy selection box has an ID titled contractor_categorydiv – And the taxonomy is called “contractor_category”, and “listings” is the custom post type.
add_meta_box( 'contractor_categorydiv', 'Category Selection', 'postbox', 'listings', 'normal', 'core', array( 'taxonomy' => 'contractor_category' ));
Not sure if this is the correct syntax, but nothing appears either way heh.
I am also experiencing this same exact issue when trying to edit user profiles. I just want to disable the bar. disabled all plugins as well. no love ??
Forum: Fixing WordPress
In reply to: Search Form with Custom Taxonomy DropdownHey there Sadhas, yes here’s what you need to do:
On your second (location) form field, you need to specify the “name” to be the slug name of your taxonomy term as a variable. For example I created a loop in my searchform.php that grabs *all* my tax terms and displays them in a drop-down as such.
<form role="search" method="get" id="searchform" action="<?php bloginfo('home'); ?>"> <div> <input type="text" value="" name="s" id="s" /> <?php function get_terms_dropdown($taxonomies, $args){ $myterms = get_terms($taxonomies, $args); $optionname = "optionname"; $emptyvalue = ""; $output ="<select name='".$optionname."'><option selected='".$selected."' value='".$emptyvalue."'>Select a Category</option>'"; foreach($myterms as $term){ $term_taxonomy=$term->YOURTAXONOMY; //CHANGE ME $term_slug=$term->slug; $term_name =$term->name; $link = $term_slug; $output .="<option name='".$link."' value='".$link."'>".$term_name."</option>"; } $output .="</select>"; return $output; } $taxonomies = array('YOURTAXONOMY'); // CHANGE ME $args = array('order'=>'ASC','hide_empty'=>true); echo get_terms_dropdown($taxonomies, $args); ?> <input type="submit" id="searchsubmit" value="Search" /> </div> </form>
Then you’ll need to modify your search.php template and make sure it grabs that new name value and queries the posts that have that tax term.
<?php global $query_string; $termslug = $_GET['optionname']; ?> <h2>Search Results For: <span style="font-weight: normal"><em><?php the_search_query(); ?></em></span></h2> <?php if (empty($termslug)) { query_posts($query_string); if(have_posts()) : while(have_posts()) : the_post(); endwhile; else: _e('Sorry, no listings matched your criteria or you forgot select a category.'); endif; } if (!empty($termslug)) { query_posts(array('YOURTAXONOMY' => $termslug) ); if(have_posts()) : while(have_posts()) : the_post(); endwhile; else: _e('Sorry, no listings matched your criteria or you forgot select a category.'); endif; } ?>
The first IF statement is for people that do not type in or select a “Location” or whatever your taxnomy term is. It will bypass that selection and query *all* posts based on whatever the user searched for.
The second IF statement will search for whatever the user typed in AND whatever tax term (location) they selected. I hope this helps and doesn’t get moderated. Good luck!
Forum: Fixing WordPress
In reply to: best way to search for taxonomy termsI was able to resolve my particular issue by creating a custom search.php that uses the $_GET data from searchform.php to build a special query_posts(); function.
Forum: Fixing WordPress
In reply to: Search Form with Custom Taxonomy DropdownOk.. After much frustration and hours worth of work, I finally got it all fixed. And of course it was easier than I thought. Let us keep in mind that when searching for keywords in a specific taxonomy, it is not related to the URL. What is important is the $_GET data.
here’s my searchform.php
[Code moderated as per the Forum Rules. Please use the pastebin]
and here’s some custom code you can place in your main content area in the search.php page that I made using query_posts and the respective taxonomy array.
[Code moderated as per the Forum Rules. Please use the pastebin]
might be a little messy, but it works pretty well.
Forum: Fixing WordPress
In reply to: best way to search for taxonomy termsHere’s what I have for my searchform.php. I have created a little function that grabs all the tax terms for the “My_Taxonomy” taxonomy and displays them in a drop down.
<form role="search" method="get" id="searchform" action="<?php bloginfo('home'); ?>"> <input type="text" value="" name="s" id="s" /> <?php function get_terms_dropdown($taxonomies, $args){ $myterms = get_terms($taxonomies, $args); $selected = "selected"; $output ="<select><option selected='".$selected."'>Select a Category</option>'"; foreach($myterms as $term){ $term_taxonomy=$term->My_Taxnomy; $term_slug=$term->slug; $term_name =$term->name; $output .="<option name='".$term_slug."'>".$term_name."</option>"; } $output .="</select>"; return $output; } $taxonomies = array('My_Taxonomy'); $args = array('order'=>'ASC','hide_empty'=>true); echo get_terms_dropdown($taxonomies, $args); ?> <input type="submit" id="searchsubmit" value="Search" /> </form>
it obviously passes the ?s= portion of the URL, and at one point I had it form the URL as such: /?s=searchterm&taxonomy=taxterm but as you said the URL is not related.
So how exactly could I take the values of the dropdown term selector, and make it a part of the search (search.php) results? Would I remove the current loop that I have in search.php and use WP_Query(); instead?