Caleb Burks
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] i change by mistake the author_name in DBI mean, making direct database edits like that is asking for trouble ;p
My guess is that there is probably something else you’ve changed as well.
Forum: Plugins
In reply to: [WooCommerce] Add product to cart when coupon apliedOne thread per question please…
Replied here: https://wordpress.org/support/topic/add-product-to-cart-when-coupon-aplied-2/
Will auto-close if new topics are created for the same question.
Forum: Plugins
In reply to: [WooCommerce] order table column display errorYea, definitely a conflict happening. I’ve seen this a couple times, and it’s always a plugin causing it.
- This reply was modified 8 years, 2 months ago by Caleb Burks.
Forum: Plugins
In reply to: [WooCommerce] images won’t display after Woo 3.3.3 updateIn the customizer, some images in view are automatically regenerated to display and show you what the image settings will do.
It sounds like you might have cancelled the image regeneration. Try this plugin to regenerate all at once: https://wordpress.org/plugins/regenerate-thumbnails/
Forum: Plugins
In reply to: [WooCommerce] How to Setup random attributes for Products on FrontEndWhy does the attribute order need to be random?
Global attributes / terms will always be in a specific order, the order defined by dragging/dropping them at Products > Attributes.
Product level custom attribute will have the terms in whichever order they are listed.
Anything outside of those two default behaviors will require customization.
Forum: Plugins
In reply to: [WooCommerce] Add product to cart when coupon apliedYou need to primarily hook into the applied coupon hook, then add your product to the cart if a certain coupon was added.
Here is some untested code:
function wc_ninja_apply_coupon( $coupon_code ) { if ( 'test_code' === $coupon_code ) { $product_id = 99; WC()->cart->add_to_cart( $product_id ); } } add_action( 'woocommerce_applied_coupon', 'wc_ninja_apply_coupon' );Worth mentioning that this extension has this feature: https://woocommerce.com/products/url-coupons/
Forum: Plugins
In reply to: [WooCommerce] Scheduled (cronjob) transaction emails.The feature is hidden behind a filter now. Simply returning true with the
woocommerce_defer_transactional_emailswill enable this functionality 🙂add_filter( 'woocommerce_defer_transactional_emails', '__return_true' );Forum: Plugins
In reply to: [WooCommerce] Seems the Theme Breaks Woocommerce, but Maybe NotLooks like you’ve traced it down to the theme, and they are working on compatibility updates now 🙂
Here is a new helpful doc on this: https://docs.woocommerce.com/document/woocommerce-theme-developer-handbook/#section-7
- This reply was modified 8 years, 2 months ago by Caleb Burks.
Forum: Plugins
In reply to: [WooCommerce] Gallery images dont workAre you sure you’ve set up images correctly? There is a difference between gallery images and product featured images.
Some more info here: https://docs.woocommerce.com/document/adding-product-images-and-galleries/
- This reply was modified 8 years, 2 months ago by Caleb Burks.
What Ryan said is correct, the automatically generated pages like “shop” and “product categories” are not typical WP pages, so your custom header setting isn’t being read.
You would instead need to check if the current page is the shop page for example using conditionals like
is_shop(), then using thewc_get_page_id( 'shop' )function you can find the actual “page” that you’ve setup for the shop. And lastly, you can use this ID you’ve just found to substitute out the header.I’m afraid we can’t really help with customizations like this though. Might need to hire a developer:
– http://jobs.wordpress.net/
– https://codeable.io/
– https://woocommerce.com/experts/?project-scope%5B0%5D=1819Forum: Plugins
In reply to: [WooCommerce] Sometimes remove_cart_item does not removeing itemThe nonce is created here: https://github.com/woocommerce/woocommerce/blob/53d21d55595eb979a2a2d0cf8de95949e6c52ccd/includes/wc-template-functions.php#L2987
Then verified here: https://github.com/woocommerce/woocommerce/blob/46ab27e4e8e5c27ee8ac72b0e095cd722dad19c6/includes/class-wc-form-handler.php#L521
So tl;dr, try the
wc_get_cart_remove_urlfunction.As for what’s happening, I’m not 100% sure – but could be caching related?
Forum: Plugins
In reply to: [WooCommerce] Added to Cart Button /ViewCart buttonGotcha. So changing this is possible, but will require some custom code – JavaScript to be specific.
This is where the extra button is currently added: https://github.com/woocommerce/woocommerce/blob/ca317727102560dce7c8a65622ff9301a8f8380e/assets/js/frontend/add-to-cart.js#L96-L114. So could attach a custom event to change this behavior.
Or, you could also take advantage of the fact the main add to cart button has the
addedclass appended to the list once added. So you could do custom CSS to add an icon to the end of.ajax_add_to_cart.added {}for example, then hide the other button.- This reply was modified 8 years, 2 months ago by Caleb Burks.
Forum: Plugins
In reply to: [WooCommerce] change woocommerce product permalink structureOh, so you want it to be that way so you can change just the number, and the product name is automatically changed in the url as well?
That is some custom routing and not normal behavior for links. Definiltey not something you’ll be able to achieve without quite a bit of customization.
Forum: Plugins
In reply to: [WooCommerce] Sidebar issues (Bootstrap theme)I would imagine an extra closing div would have been spotted by now. So I doubt it’s that.
What templates are used depends on whether or not the theme declared WooCommerce support.
Now if your theme doesn’t declare WC support correctly, https://github.com/woocommerce/woocommerce/wiki/Declaring-WooCommerce-support-in-themes, then that would explain some changes between 3.2 and 3.3. Can read more about this here: https://woocommerce.wordpress.com/2017/12/09/wc-3-3-will-look-great-on-all-the-themes/
Forum: Plugins
In reply to: [WooCommerce] Separate the Variation with Product name in Email templateNot sure what the means…what is the “variation only”. If you mean showing attributes separately, then the above filter is how you achieve this.
If this is something you really need, I’d suggest hiring a developer:
– http://jobs.wordpress.net/
– https://codeable.io/
– https://woocommerce.com/experts/?project-scope%5B0%5D=1819