sparkweb
Forum Replies Created
-
Forum: Plugins
In reply to: [FoxyShop] another foxyshop-single-product templateI would recommend just making another conditional inside of foxyshop-single-product.php.
Look in helperfunctions.php line 689 for some code for grabbing the current product category. Then…
if (category == “my-new-fancy-category”) :
show cool new stuff
else :
show old boring stuff
endif;You could even do includes out to other pages if you wanted.
EDIT: It’s not exactly line 689. Look around there for this “} elseif ($post->ID) {”
Forum: Plugins
In reply to: [FoxyShop] Adding product categories to main navigationI re-wrote the internal foxyshop function to call this and added levels. This will be available with the next version (3.2). For now, go into helperfunctions.php and remove the function around line 611 called
foxyshop_simple_category_children. Replace it with the code from http://pastie.org/private/hz9egddbswonul7ofkaewaNow you can do this:
echo '<ul class="menu FoxyShop_Show_Categories_widget">'; foxyshop_simple_category_children(0, -1); echo '</ul>';…to show all categories nested and using proper order. If you just want to do 2 levels, change the second argument from -1 to 2.
Forum: Plugins
In reply to: [FoxyShop] Adding product categories to main navigationYou can do
foxyshop_simple_category_children($parent_category_id)but it won’t show the sub-categories. Although I suppose it’s possible that it could be tweaked to do that. Do you need sub-categories? If you just want to show top-level cats, you can do this:foxyshop_simple_category_children(0)Forum: Plugins
In reply to: [FoxyShop] [Plugin: FoxyShop] Using All in one seo pack with FoxyshopGlad you got it figured out. I did test this a little bit a few weeks ago and found that selecting “Products” on the AIOSEO Settings Page did the trick and the panels showed up on the product page.
Thanks!
Forum: Plugins
In reply to: [Reliable Twitter] [Plugin: Reliable Twitter] Tweets not loadingHi Chavo, sorry for the delay in response. My RSS reader just picked this up. (Bad Google Reader!)
It is tough to say what could be causing the problem without actually seeing the url, but sometimes it can take a little while for Google to cache the twitter feed. Did you load in the correct user ID #? Is it working now?
Forum: Plugins
In reply to: [FoxyShop] FoxyShopThanks for the kind words. I’m glad to hear it is working out for you!
Forum: Plugins
In reply to: [FoxyShop] Comments on Product PagesIndeed there is. Just chuck this into your wp-config.php file before the
require_once(ABSPATH . 'wp-settings.php')line:define('FOXYSHOP_PRODUCT_COMMENTS',1);More here: http://www.foxy-shop.com/documentation/advanced-settings/
Forum: Plugins
In reply to: [FoxyShop] Accessing Categories and ProductsWell if you are wanting to make a purely graphical change, you can use CSS to narrow it down:
ul#category_list > li > ul > li > ul > li { treat this differently }If you need to actually do something different, though, you could do a modified version of helperfunctions.php > foxyshop_category_children(). I would also look at this function which was added to WP in 3.1: get_ancestors(). That will create an array of the taxonomy parents so you could look at the size of that array to see how deep in you are and do something differently. See this in action in foxyshop_breadcrumbs()
As a rule, if you are changing functions from the core plugins files, make sure you use a new function name and store those changes in your function.php file so the plugin can be upgraded later without overwriting your changes. And if you come up with something that could be tweaked in a core file to make it more adaptable for you and everyone I’m all ears for improving it.
Forum: Plugins
In reply to: [FoxyShop] Adding Variation Descriptions to SearchI’d also mention on this one that I have just finished doing some serious upgrades to variation setup for version 3.0. All the variations are now stored in one custom field so it is much more efficient and easier to search variations if you wanted to search that out. If you do want to try this out, send a support request from foxy-shop.com/contact and I’ll email you the 3.0 beta.
Forum: Plugins
In reply to: [FoxyShop] Adding product search to sidebarPerfect!
Forum: Plugins
In reply to: [FoxyShop] Accessing Categories and ProductsI don’t have any particularly good ideas on the organization, but it sounds like your suggestion might definitely work. To get category images, you’ll want to download the Taxonomy Images plugin. FoxyShop has been optimized to work directly with it.
Forum: Plugins
In reply to: [FoxyShop] Adding product categories to main navigationI tested this and it showed all my categories. One thing to keep in mind: by default it will only show categories that have something in them. Check the specs at http://codex.wordpress.org/Template_Tags/wp_list_categories and try adding
&hide_empty=0Forum: Plugins
In reply to: [FoxyShop] Adding product categories to main navigationNever mind, there’s a much better way to do it. You can just do wp_list_categories(“taxonomy=foxyshop_categories”). I think that will do it. Codex: http://codex.wordpress.org/Template_Tags/wp_list_categories
Forum: Plugins
In reply to: [FoxyShop] Adding product categories to main navigationI think in this case I would do get_terms and then inside that loop, I would do get_term_children (http://codex.wordpress.org/Function_Reference/get_term_children) for showing the children of each of the top-levels. You might have to do that a few times if you have more than two levels.
Forum: Plugins
In reply to: [FoxyShop] Adding Variation Descriptions to Searchwell, I was doing foxyshop-search.php and adding this to the $args:
$args['meta_query'] = array( array( 'key' => '_code', 'value' => $search, 'compare' => 'LIKE' ))And that was working, but only if I took out the ‘s’=>$search bit from the $args. If you look at the query with the blackbox plugin you can see that it’s using AND for the meta_query.
I wonder if it would be better to just do a completely custom query with $wpdb….