• Resolved zoes0702

    (@zoes0702)


    Hi there, so when I’m using the WooCommerce block ‘Featured Product’ like so https://prnt.sc/rx5xhe, this defaults to the destination of the product in my ‘shop’, not the Amazon listing that I want it to go to.

    As the 3-column listing for ‘hand-picked product’ go directly to Amazon, I would like to be able to use the big, bold ‘featured product’ sometimes too, but I don’t want some links to go to my shop and some to go to Amazon.

    So you can see what I mean – this ‘Hand Picked Product’ row goes to Amazon: https://prnt.sc/rx5ykx.

    This one however, despite being set up exactly the same way in the ‘product’ section, only seems to go to the link in my webstore: https://prnt.sc/rx5yzg

    Please note the website is not live yet but hopefully the screenshots are sufficient.

    I know code can probably fix it but was wondering if I’m missing something really simple in the settings, or slipped up somewhere and can’t see it. Thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi!

    Thanks for taking the time to write this up. It sounds like your products are setup as External/Affiliate Product types correct?

    Currently the Featured Product block doesn’t provide the option to automatically link to the external url set for the product if the product is an External/Affiliate product type. The button for this block is set to default to the link to the product details page on your site.

    The buttons for the Hand Picked products block do link to the external urls because they are generating the link using the “Add to Cart” logic which automatically switches to external urls if those are present for the product type. That’s why you are seeing different behaviour between the blocks.

    I can understand why this might be confusing but ultimately it comes down to the difference between what each button is using as the source for the button link.

    I’ve created an issue for the Featured Product block because this sounds like something that would be useful.

    The good news is there is a workaround that you can use for the featured product block to get it to link to the amazon link. The button in the block is editable including what it links to. If you click the button in the featured product block while in the block editor, you’ll see a toolbar with a button that allows for changing the link. You can change the link address to whatever you want and then save the post/page containing the block. From that point forward the block should link to what you set. Here’s an image showing what you click:

    Screenshot showing where you click to edit button link

    Thread Starter zoes0702

    (@zoes0702)

    Hi Darren,

    Yes, that’s right regarding all products being set up as an affiliate product.

    This all sounds great!

    Yes, it’s easy enough to edit manually, so I will just do that until it’s possibly changed in the future. Thanks for the help! Appreciate that!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘When using ‘featured product’ block, link goes to ‘shop’ page product’ is closed to new replies.