Browse documentation

Wishlist Buttons & Placement

Manual placement with shortcode or block

Bring the wishlist action into custom product templates with flexible placement tools that preserve your store’s own layout and shopping rhythm.

Place it where your design needs it

Automatic placement is ideal for standard WooCommerce templates. When your product layouts are custom-built, GoScript Advanced Wishlist for WooCommerce gives you direct placement options, so the save action can remain part of the experience you have carefully designed.

1. Use the Site Editor blocks

For block-based WooCommerce templates, add the GoScript block exactly where customers should see the save action. This is a strong option when you want visual placement control without editing theme files.

  1. Open the relevant template in the WordPress Site Editor.
  2. Add the GoScript Wishlist Button block in a single-product context.
  3. For product-grid templates, use GoScript Wishlist Button for Product Grids inside the product loop where appropriate.
  4. Save the template and test it with a real product on the front end.

2. Use the shortcode or theme helper

Classic WooCommerce templates and shortcode-ready content areas can use the same customer-facing action without changing its underlying wishlist behaviour.

ShortcodeUse [goscript_wishlist_button] where the current product context is available. You can also provide a specific product_id when needed.
Theme helperIn theme code, use goscript_wishlist_button() to return the button markup for the current or supplied product.
Wishlist counterUse the Wishlist Counter block or goscript_wishlist_counter() to give customers a convenient route back to saved products.

3. Test the product context

Manual placement gives you creative freedom, but the save action still needs a valid product context. Test it from the same product and loop views your customers will use, then make sure it remains clear at every breakpoint.

  • Confirm the button saves the product visible on the page or product card.
  • For a variable product, choose the desired variation before saving and confirm it is retained.
  • Check a signed-in customer flow, including the saved state and My Wishlist destination.
  • Check a signed-out visitor flow and confirm login or registration guidance is helpful.
  • Make sure automatic placement is not also active in the same location, which could produce a duplicate button.

Next steps

Refine the action’s look, or give signed-out visitors an equally polished route into their account-based wishlist.

Need help with Advanced Wishlist?

Check the documentation first, or contact us if you still need a hand.

Contact Support