sanch3x
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Page Widget] Presence on taxonomy pagesAny movement on this?
That looks like a solution that won’t break if I sneeze on it.
Thank you very much for taking the time.
Okay, so it’s not the most elegant solution but with the assumption that the client will continue to only support their default currency, the following currently works:
if( self::get_user_role() == 'wholesale_customer' ) { if( $wholesale_price = get_post_meta( $default_variation_id , 'wholesale_customer_wholesale_price' , TRUE ) ) { $price = $wholesale_price; } }Basically I check to see if the user role is a wholesale_customer (the only available wholesale role with the free version) and then check to see if the base/raw price exists. If it does I replace my default price value.
It seems to work but I know it would break in certain situations like, as mentioned, there are different currencies or the websites upgrades to the pro version.
Hi Josh,
Thank you for the quick reply, it’s much appreciated. The only problem with get_price_html() is that I want the numeric value of the price (without markup) because I use it to calculate the cost per unit. So a $20 box of 20 items is $1 per item. Basically it’s a quick way to show a client the best value.
Is there a similar call for just the numeric value? $variation_product->get_price() only returns the regular price.
Forum: Plugins
In reply to: [Search Everything] Search highlighting breaking HTMLSo the highlighting is applied to the_title, the_content, and the_exercpt filters. This means that a call to get_the_title() or the_title() will be highlighted (which makes total sense).
In the example above, I was placing the title in a HTML attribute to track click-through rates in my analytics. The solution was to echo out the title attribute instead of using the WP functions.
So from:
title="<?php the_title(); ?>"to:
title="<?php echo esc_attr( $post->post_title ); ?>"Hope that helps someone in the future.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Doubled search resultsThis was actually an error on my part. I noticed there were actual double entries! How embarassing…
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Doubled search resultHas this been resolved? My results are also doubled, each post comes up twice and I’m just using the basic content loop.
Forum: Fixing WordPress
In reply to: Hierarchical Taxonomy Slugs/URLs are not hierarchical?I was able to get it running with the answer found here:
It’s a little elaborate and I wasn’t able to get the permalink structure working for everything but I did hack up a solution that served my needs. Hope that helps anyone who gets lead here by Google (like I did).
Forum: Fixing WordPress
In reply to: Hierarchical Taxonomy Slugs/URLs are not hierarchical?Googling sent me here. Were you able to get an answer?
Forum: Networking WordPress
In reply to: Moving from subfolder to subdomainI was worried that because of all the differently named mysql tables that the export/import would have been much more complicated. After reevaluating my situation I realized that I don’t really need a network of sites so I will just be importing the data in a regular WP install.
I just wanted to thank you for the help. It’s really appreciated.
Forum: Themes and Templates
In reply to: Need advice on using templates for three level architectureOn a side note, sorry if this is too off topic, but aside from the codex is there a good resource on the best practices when design a theme? So far I’ve been getting things done pretty easily (since the site I’ve had to work with have been simple) but now that I have a few bigger projects I find myself a little at a loss at how I should approach it. Thanks again.
Forum: Networking WordPress
In reply to: Moving from subfolder to subdomainMy installation was initially on mydevserver.ca/website with a subfolder install. The problem is that the main site thought it’s address was mydevserve.ca which isn’t the case since I have other sites running on this dev server.
I decided to switch it to subdomains following steps from another thread but it didn’t quite do the trick since it was still looking in the subfolder. To remedy this I decided to create a new folder and install the multisite as subdomains instead. So now I want to move the data from the old main site to my new mainsite. It’s still on mydevserver.ca but it has a domain of website.mydevserver.ca. Phew, that’s a lot to chew on.
So from mydevserver.ca/website to website.mydevserver.ca
Does that make sense?
Forum: Networking WordPress
In reply to: Moving from subfolder to subdomainIf I have a site running as the main site on my current install, do you know of a good plugin that would export the site’s data which I could then import in a new install that was setup correctly from the get-go?
I just found myself in a doozie right now because I erroneously setup my multisite on the root folder of my development server where I had other sites running so it believes mydevserver.ca is the main site (hence why I was asking how to change it).
Thanks again
Hi, thank you for looking into this. I’m sorry to ask though, how do I download a specific revision? I tried looking into the SVN branches but I just see the source code.
Thank you
Hi Michal,
If I deactivate ckeditor qTranslate works as expected.
When I reactivate it I get the following javascript error (taken from firebug):
Error: tinyMCE is not defined
Source File: /ihfc/wp-admin/post-new.php?post_type=page
Line: 554