How to change prices per number ordered in WooCommerce [closed]

Not a standard option, there’s a plugin for that: Dynamic Pricing Alternatively, you can hide the quantity buttons: div.quantity { display: none !important; } or disable it entirely: function woocommerce_quantity_input() {} though both these alternative solutions do this for your entire shop.

How to Add a Website Background Image to One Page?

Use Conditional Tags: http://codex.wordpress.org/Conditional_Tags Or a custom template for homepage: http://codex.wordpress.org/Stepping_Into_Templates Then it’s a matter of applying a style / class when, for example, is_front_page() (or sometimes) is_home() (for conditionals), or on your custom template. It’s mostly a matter of CSS then. Update/Alternative: Use Chrome to learn body class. Apply style accordingly: body.home { background:url(images/home_background.png) … Read more

woocommerce create subscription for user using functions / hooks provided

private function createWooComSubscription($user_id, $product_name, $total, $payment_id) { $arr = explode(“-“, $product_name); $product_title = trim($arr[0]); $product_subscription = trim($arr[1]); $product = $this->getWooComProduct($product_title); if ($product == null) { $this->getController()->log(“Product not found ! woo com create subscription failed”); return; } $variation = $this->getWooComVariation($product, $product_subscription); if ($variation == null) { $this->getController()->log(“Variation not found ! woo com create subscription failed”); return; … Read more

Woocommerce Export Orders with Order Item Meta

Vance I can tell you this is not possible with the stock plugin. I had this same issue on my site. My developer had to edit the plugin code so I could get the meta data in the CSV export. I have a site that deals strictly in personalization so this info is vital.

Add product category to post_class

Untested, but adapting from the Codex example for filtering the post class… basically changing get_the_categories() to get_the_terms and accounting for the name of the Product Category taxonomy. // add category nicenames to post class function product_category_class($classes) { global $post; foreach((get_the_terms($post->ID, ‘product_cat’)) as $term) $classes[] = $term->name; return $classes; } add_filter(‘post_class’, ‘product_category_class’);

WordPress: code structure

I find that very easily my views become cluttered with logic, e.g. null checks, email validation, and retrieving values from the post object. How would you separate this out in WordPress? Is there any sort of MVC framework? There is no clear separation enforced by WordPress and there is extremely wide range of styles and … Read more

how to display the page content in popup window?

I use Plugin for display the page content in popup window Check official website for live demo Plugin advantage -Easy to configuration. -Unblockable. -HTML Editor to add popup contact. -Plugin supports Chrome, Firefox, Safari and IE 7,8,9,10