This is a snippet for Oxy Ultimate Woo plugin that allows you to change the default “No product in cart” to anything you like. Credit to the Developer, you can see the original code here
Fo those using Oxy Ultimate Woo Cart component, this is a snippet to change the text on the checkout button to anything you need. This is courtesy of the developer and work perfectly, see original here
Note: Do not use this if you want to use Gutenberg. Only if you are using Classing editor. If you are using Scripts Organizer set it as Code block, Trigger location > Everywhere.
This can be placed in Oxygen code block or you can make it as short-code. It will display excerpt if user is not logged in or didn’t purchased specific product. Replace XXXXX with your product ID on line 9
Quite simply add this near the apply_filters or do_action.
Add the following PHP code snippet in your favorite code manager plugin like Scripts organizer and set it to load on front end
WordPress by default will preserve capitalization in filename for images. To make filenames lowercase automatically. Add the following PHP code snippet in your favorite code manager plugin like Scripts organizer and set it to load on front end:
Oxygen page builder Image element does provide the feature to insert an Image-type custom field’s Alt text using the dynamic data. but if you need overwrite then see 2nd option. Step for show alt tag for image. Ensure that your Image field’s Return Format is set to Image Array in your ACF field group. Step 2 Option 1 Option…
As Oxygen Builder disables the theme, so as there is no sidebar is available for using widgets from WordPress Admin area and WordPress Customizer. Here is the code to add a sidebar (widget area) as a solution. As a developer and having knowledge of Oxygen, you can do it in Oxygen natively but for the…
Another little Woo Commerce polish to make your store look even more customised
This is a quality of life improvement for an ecommerce store.
By default WordPress search query looks for the searched text in Post Title and Post Content as well. But that makes the search very robust and doesn’t feel a useful search. So here is the code if you want the WordPress default search query to look only in Post Title.
Credit: https://businessbloomer.com/ for this one. Check out his website, he has hundreds of useful Woo snippets. When talking about UX, or for very specific WooCommerce shops, you might need to tell the user a product is already in the Cart before re-adding it or increasing its quantity from the Shop/Category/Loop and Single Product pages. This…
If you set up a one page checkout on oxygen or have a sidecart, you don’t want to see this pop up, as people may click it and go to the cart page (which you want to skip altogether), this hides that pop up.
Credit: https://businessbloomer.com/ for this one. Check out his website, he has hundreds of useful Woo snippets. This is useful so that your customer only sees your current stock.
Sometimes the zoom feature is useful, but it can also be very jarring to your customers. I prefer to have this off on every site and use a light box instead.
Sometimes you have a situation where you want the customer to log in, like a donation page, but you don’t want them to end up at /my-account/ but rather be taken back to the page where they were when they started. This code is useful for donation sites, as well as refer a friend scenarios.
Click anywhere within code block to automatically copy to clipboard. Code is taken from WPJohny’s plugin. But to reduce number of plugins I moved it to Scripts Organizer.
This snippet is good for e-commerce stores or anywhere that customers can be logged in, it ensures they don’t see the default WordPress login page, but are instead taken to the home page.
This snippet allows you to style the very top of your website on a mobile device for that extra touch of professionalism. Change “#000000” to your brand colour. This is a HTML snippet.
3rd party plugins admin after_body Alt archive Blocks Category clean up composite elemenets core CPT CSS Custom Custom Post Dashboard flexslider Front End FSE full site editing Gallery hook HTML Image load styles Must Have notice Oxygen Password Permalink plugins Post List Publish Date repeater settings page share single product Taxonomy Taxonomy Term themes Tips Topbar WooCommerce wordpress WP Admin WPML