Gerhard Potgieter
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Clearing Woocommerce cart on certain pagesHi, try the following code
function my_empty_cart(){ if ( is_page( woocommerce_get_page_id( 'thanks' ) ) ) { global $woocommerce; $woocommerce->cart->empty_cart(); } } add_action('init', 'my_empty_cart');For others experiencing this, please add the following css to your theme’s custom.css file
.woocommerce span.soldout, .woocommerce-page span.soldout { z-index: 999; }Lyse, seems like the URL’s got stripped, can you pop me a mail through my contact form on http://gerhardpotgieter.com with the details?
Lyse, could you also please give me the URL to your site and point out a product that is sold out?
Nana, do you mind providing me with a link to your site so I can have a look for you?
Forum: Plugins
In reply to: [WooCommerce Sold Out Products] Sold Old Only Displays on Product Pagetiffany2014, do you mind posting a link to your site and point out a product that is sold out so I can have a look?
Forum: Plugins
In reply to: [CampTix PayFast Payment Gateway] Change text on 'Register' buttonHi Evangelia
That is part of the camptix plugin and not the payment gateway, you should be able to change it through localization with a plugin like codestyling.
Forum: Plugins
In reply to: [WooCommerce Sold Out Products] Sold Old Only Displays on Product PageHi auniakahn
if you can provide me with the URL to the site I can have a quick look, but some themes override the WooCommerce templates with their own and then do not keep the required hooks for extensions to function correctly.
Hi visualxl
This is not really related to the plugin but here goes, the following code will detect if a product is sold out
global $product; if ( ! $product->is_in_stock() ) { // your code here to execute when out of stock }Forum: Plugins
In reply to: [WooCommerce Sold Out Products] Move the location of the icon?Hi wabwab
To move it to the bottom right add the following css to your theme’s custom.css file
.woocommerce span.soldout, .woocommerce-page span.soldout { bottom: 0; }Thanks for posting the resolution Annie.
Hi Lyse
Can you test this with your theme switched to twenty thirteen and see if it shows there?
Forum: Plugins
In reply to: [WooCommerce] It is possible to build in WooCommerce…Hi Samual
This can be done using product variations http://docs.woothemes.com/document/product-variations/ where you can define variations of a product with a different price for each option, like the quality.
Then for the last two questions you can use product add-ons and define a dropdown asking if they are providing their own figure that adds to the price if the customer choose no and define a text field using the product add-ons extension to have a notes field.
You will require the WooCommerce Subscriptions extension to take recurring payments http://www.woothemes.com/products/woocommerce-subscriptions/
The integrates automatically with PayPal standard bundled with WooCommerce for taking the payments.
Forum: Plugins
In reply to: [WooCommerce Sold Out Products] Sold Old Only Displays on Product PageHi, can you test this by switching to the twenty thirteen theme and see if this works? The only reason the badge will not show on the archive pages is if your theme is overriding the core template and removed some of the core hooks.