Gerhard Potgieter
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Product search returns blank pageThis kind of problem is usually caused by either a conflict with your theme or with another plugin.
The best way to determine this is to
- temporarily switch your theme to Storefront
- disable all plugins except for WooCommerce
- repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Forum: Plugins
In reply to: [WooCommerce] Custom Subscription Price set by Customer?Hi, what you are looking for is Name Your Price https://woocommerce.com/products/name-your-price/
Forum: Plugins
In reply to: [WooCommerce] product quantity drop-downTry the following, if you have issues then I suggest you hire a developer for assistance.
function woocommerce_quantity_input() { global $product; $defaults = array( 'input_name' => 'quantity', 'input_value' => '1', 'max_value' => apply_filters( 'woocommerce_quantity_input_max', '', $product ), 'min_value' => apply_filters( 'woocommerce_quantity_input_min', '', $product ), 'step' => apply_filters( 'woocommerce_quantity_input_step', '1', $product ), 'style' => apply_filters( 'woocommerce_quantity_style', 'float:left; margin-right:10px;', $product ) ); if ( ! empty( $defaults['min_value'] ) ) $min = $defaults['min_value']; else $min = 1; if ( ! empty( $defaults['max_value'] ) ) $max = $defaults['max_value']; else $max = $product->get_stock_quantity( 'edit' ); if ( ! empty( $defaults['step'] ) ) $step = $defaults['step']; else $step = 1; $options = ''; for ( $count = $min; $count <= $max; $count = $count+$step ) { $options .= '<option value="' . $count . '">' . $count . '</option>'; } echo '<div class="quantity_select" style="' . $defaults['style'] . '"><select name="' . esc_attr( $defaults['input_name'] ) . '" title="' . _x( 'Qty', 'Product quantity input tooltip', 'woocommerce' ) . '" class="qty">' . $options . '</select></div>'; }Forum: Plugins
In reply to: [WooCommerce] product quantity drop-downHi,
$product->get_stock_quantity( 'edit' )will return the the quantity available for the sale for the specific product. So you will need to set$maxto$product->get_stock_quantity( 'edit' )Forum: Plugins
In reply to: [WooCommerce] action after add to cartFor our own Cart Fragments functionality we use the following jQuery trigger
$( document.body ).on( 'added_to_cart removed_from_cart'You should be able to use the same to have it fire at the right time.
- This reply was modified 7 years, 5 months ago by Gerhard Potgieter.
Forum: Plugins
In reply to: [WooCommerce] Cannot Add To Cart – Your Cart Is Currently EmptyIt is possible that is related to a plugin or theme conflict. Can you please disable all plugins except WooCommerce and then switch your theme to a default one like Twentyseventeen and then test if you get the same results?
You can then enable the plugins one by one testing in-between and finally switching your theme back to find the offending plugin or theme.
Forum: Plugins
In reply to: [WooCommerce] Change text “Become a Vendor”Hi, that text is not default WooCommerce text and probably from a plugin you are running to add vendor functionality to your site.
In order to translate it you will need to install a translations plugin like Loco Translate https://wordpress.org/plugins/loco-translate/ and then use that to translate the string in your plugin that is adding the functionality.
Forum: Plugins
In reply to: [WooCommerce] Cart not Emptying after CheckoutHi, can you confirm that the payment was actually successful? WooCommerce will only empty the cart upon a successful payment response from your payment provider.
If you can confirm then check for any JavaScript issues on your checkout page and also do a test by disabling all plugins except WooCommerce and by switching your theme to a default one like Storefront or Twentyseventeen.
You can use the standard WooCommerce stock management functionality and then use an extension like this to set fixed quantities a product can be bought in https://wordpress.org/plugins/woocommerce-fixed-quantity/
Forum: Plugins
In reply to: [WooCommerce] Syncing stock to external tableHi, there are no hooks that fire directly when changing the stock, but you can use the woocommerce_before_product_object_save hook which will fire every time stock is adjusted as it triggers a product save and will include all the data including the stock status and quantity when orders get placed.
Forum: Plugins
In reply to: [WooCommerce] Weird Order IDHi, by default WooCommerce just uses the database ID as the order ID. This ID is shared amongst posts, pages, products and orders and a bunch of other custom post types, as such the ID does not follow a standard sequence.
If you want sequential order numbering have a look at this extension https://woocommerce.com/products/sequential-order-numbers-pro/
Forum: Plugins
In reply to: [WooCommerce] CSV Import Attributes for CategoriesHi, you will need the Product CSV Import Suite for this as the default importer does not support taxonomies https://woocommerce.com/products/product-csv-import-suite/
You can then use the tax: header, see the documentation here https://docs.woocommerce.com/document/product-csv-import-suite-column-header-reference/#section-4
Forum: Plugins
In reply to: [WooCommerce] CSV Import Process For Attribute and BrandsHi, unfortunately, the importer and exporters only support meta data for the products and not for the different categories or attributes.
Categories and Attributes are taxonomies and stored as different objects in the database and then just linked to the product, adding data to those taxonomies would require custom functionality to attach meta data to each of the categories.
If you want to add the custom data to the product itself and not the category then see the section titled FAQ here for adding support for custom field imports and exports https://docs.woocommerce.com/document/product-csv-importer-exporter/#section-7
If you use the offial brands extension there is a way to add support for that by following the guide here https://docs.woocommerce.com/document/wc-brands/#section-19
Hi, that example you provided uses a variable product. Variable products are used for selling a single item like in the example a phone case that has different options.
Variations are usually also used for things such as Clothing where you have different sizes and colors for a specific item.
For more information on setting up a variable product see https://docs.woocommerce.com/document/variable-product/
Forum: Plugins
In reply to: [WooCommerce] order page showing 404 errorHi, orders are viewed through the My-Account -> Orders page. WooCommerce uses endpoints which can be changed via WP-Admin under WooCommerce -> Settings -> Advanced -> Page Setup but those endpoints must be related to the my-account page
So my guess is your orders can be viewed via yoururl.com/my-account/orders/ instead of just yoururl.com/orders/