vankaa
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Sending proccessing order emailHere is a gist on how to add emails to the email:
https://gist.github.com/vanbo/e34f3ec144d547e88d71f56806d9cdb3
Forum: Plugins
In reply to: [WooCommerce] Payments methods block stuck in checkoutIt seems that the security nonce is not validated for the
update_order_review
, so it returns-1
. Try checking how the nonce is generated and validatedForum: Plugins
In reply to: [WooCommerce] Out-of-stock items – can’t make payment any more.You can allow backorders, which will keep the product purchasable even without stock.
You can also use the in stock filter
woocommerce_product_is_in_stock
to keep the product in stock when the customer is on the Pay page or needed times.Forum: Plugins
In reply to: [WooCommerce] Multiple cart on cart page separated by root product categoryThis is possible, but there are quite a few changes that you will need to do.
Here are some steps to achieve this:
– The WC cart will be one, you will be separating the cart items by a meta key
1. Add identification meta key to each cart items, on add to cart. This way you can identify and group the items.2. Modify the cart template to match your requirements. Different tables for each item group or some sort of visual identification mark.
3. Updating the cart should be pretty straight forward as there are no multiple carts there are just items groups, so you can just update the cart item as normal.
4. If you are to checkout each cart item group as a separate cart item, you will have to keep track of the cart items and modify the totals accordingly on both cart and checkout.
5. The minimum order amount you can cover by just checking against the cart item group total.
Forum: Plugins
In reply to: [WooCommerce] Format of product tabsWell, you should really use a child theme as you will loss the css on update, plus you can modify things without worrying when it comes time to update the theme.
Different themes prefer the tabs structured in different ways.
Forum: Plugins
In reply to: [WooCommerce] Restricting Free Shipping Over a Certain AmountYes, add that to the top of the function
if ( $coupons = WC()->cart->get_coupons() ) { /** * @var WC_Coupon $coupon */ foreach ( $coupons as $code => $coupon ) { // Check against a single code you add the codes to an array and check that if ( 'your-coupont-code' == $coupon->get_code() ) { // Bail return $is_available; } } }
Forum: Plugins
In reply to: [WooCommerce] Format of product tabsYou should add the code to the theme style.css file, possibly at the bottom.
Forum: Plugins
In reply to: [WooCommerce] free shipping when ordering a special productHere is a gist how to do that: https://gist.github.com/vanbo/af185f82de890a758d6e2513a89dbfa3
Forum: Plugins
In reply to: [WooCommerce] Hide empty categories in widgetCan’t reproduce that behavior, WC 3.2.1. If the products are Draft, the category is not shown. Tried with parent and child categories. We are talking about “Product Categories” widget, right?
May be give some steps to reproduce or exact settings and setup.
Forum: Plugins
In reply to: [WooCommerce] JS not being loaded in some product pagejQuery is not loaded properly on the page, that is why all js fails. You are loading jquery
<script type="text/rocketscript" data-rocketsrc="https://www.x1motorsports.com/wp-includes/js/jquery/jquery.js?ver=1.12.4"></script>
, which means that you will need to use rocketloader and need to adddata-cfasync='true
. See here for more info about it: https://support.cloudflare.com/hc/en-us/articles/200168056-What-does-Rocket-Loader-do-Include it properly and things will work.
Forum: Plugins
In reply to: [WooCommerce] Format of product tabsHere is simple css to make them horizontal, the way you saw it: https://gist.github.com/vanbo/c05e9b9512bd53e3680c82e1c6e4e6a3
But please understand that saying that you are creating a store, want to modify it and need help, then saying that you are ignorant of all things coding, kinda doesn’t help you cause. It’s like saying, just do everything for me, I don’t want to learn.
Forum: Plugins
In reply to: [WooCommerce] Restricting Free Shipping Over a Certain AmountSorry, the filter hook should be
add_filter
, notapply_filters
. My bad.Forum: Plugins
In reply to: [WooCommerce] first price repeated down the listAre you modifying the price at all or you are just using the WC settings? The product used to get the price seems to be the same, but looking at the list, nothing else in each item repeats as the price repeats. Are you overwriting any templates? Look at the price.php template for any problems.
Forum: Plugins
In reply to: [WooCommerce] problem with REST ApiHow are you generating your JSON data? Try using consistent generation may be
json_encode
an array and send it then. The API runs ajson_decode
on the body, so if the json_encode is used for the encoding you should pass the validation.Forum: Plugins
In reply to: [WooCommerce] V3.2.1 404 CheckoutIt seems that a function(basel_get_opt) is missing. Are you using a child theme? Is this function from the parent theme or another theme? May be you changed the main theme or the function was replaced with something else? Try looking in that direction.