GA4 view_item and add_to_cart Events for WooCommerce
Sends GA4 ecommerce events when a shopper views a product page and when they add a product to the cart, from the product page or with AJAX buttons on shop pages.
Snippet Library
3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.
Sends GA4 ecommerce events when a shopper views a product page and when they add a product to the cart, from the product page or with AJAX buttons on shop pages.
Gives every product saved without a SKU an automatic one based on a prefix and the product ID, for example "SHOP-0142".
Changes the "Menu" text next to the hamburger icon in GeneratePress, or removes it so only the icon shows.
Replaces the "Built with GeneratePress" footer line with your own copyright text and the current year, without the premium plugin.
Removes the previous and next post links from the end of single posts in GeneratePress, keeping categories and tags.
Adds geo.region, geo.placename, geo.position and ICBM meta tags with your business location to every page, a small extra local signal for some search engines and directories.
Adds a "Gift wrap this order" checkbox to the classic checkout for a small fee and flags the order so your packers can spot it.
Grants chosen capabilities to individual user accounts, for example letting one editor manage plugins, without creating a new role.
Adds an accessible name to the search field of theme search forms that have no label, so screen reader users hear "Search" instead of an unlabeled text field.
Adds "Additional roles" checkboxes to the user edit screen so an administrator can give someone a second role, for example Editor plus Shop Manager.
Gives a custom post type its own permissions and lets a chosen role (for example Author) manage it fully, including others' items, without extra rights elsewhere.
When a search returns exactly one result, opens that result directly instead of showing a results page.
Adds a "wpide-gradient-text" class that fills a heading's letters with a color gradient, for standout hero titles and highlighted words.
Charges an extra handling fee for each unit from a shipping class such as "fragile" or "oversized", listed as its own line in the totals.
Adds a small "Questions about your order?" box with your contact details at the top of the checkout page.
Adds a short note above the subscriptions list in the MemberPress account page explaining how to change plans or get billing help.
Adds a short hint above the MemberPress login button with a link to reset the password, which cuts down on "I can't log in" emails.
Adds a short "Questions about your order?" box with your phone number and email to the bottom of customer order emails.
Shows a short explanation above the lost password form telling people what will happen next and where to get help if the email does not arrive.
Removes the "Add Existing User" form on subsite Users > Add New for site admins, so they cannot pull people from other sites on the network.
Removes the "Edit with Elementor" links under post titles in admin lists and the "Edit with Elementor" button in the editor for users who are not administrators. They can still edit text in the regular editor.
Removes the My Sites menu from the toolbar for everyone except super admins, so members of several sites are not distracted by the network structure.
Hides the ACF fields you choose in the editor for everyone except administrators, such as internal notes or technical settings.
Removes administrator accounts from the Users screen for anyone who is not an administrator, for example shop managers on a WooCommerce site.