Why a customize button that i added open randomly the cart page??

Topic summary

A user added a custom “size guide” button to their product page that opens a pop-up with a sizing table. However, on the Flow theme specifically, clicking this button unexpectedly redirects visitors to the cart page instead of displaying the pop-up. The same code works correctly on the Dawn theme without this issue.

Root Cause Identified:
A respondent diagnosed that the button code was incorrectly placed inside the add-to-cart form element, causing the cart redirect behavior.

Proposed Solution:
The helper provided a screenshot showing where to locate the problematic button code and suggested updating its placement to resolve the issue. The solution involves moving the button outside of the form structure to prevent it from triggering cart-related actions.

Status: The discussion appears to have a clear diagnosis and proposed fix, pending implementation by the original poster.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

https://covifqnjx7eo9gkd-61323608109.shopifypreview.com
I created a button “size guide” on the product page that opens a simple pop-up with a table.

only on theme FLOW for some reason, it takes the visitor to the cart page. I have no idea why.

I tried it on a Dwan theme and it didn’t happen.

does anybody know why?


    
    
    

    

    

    
        ## SIZE GUIDE
        

Our bras and panties&garter are flexible and have adjustable straps.

        #### Bra size
        

Choose based on the cup size(A , B , C , D , DD) as the band size is flexible

        
        <table>

            
                <tr>

                    <th colspan="4">

PANTIES & GARTER SIZE

</th>

                </tr>

                <tr>

                    <th>

Sizes

</th>

                    <th>

Fits 
 (Dress Size)

</th>

                    <th>

Waist
 (inch)

</th>

                    <th>

Hip 
(inch)

</th>

                </tr>

                <tr>

                    <td>

XS/S

</td>

                    <td>

0-4

</td>

                    <td>

24-27.5"

</td>

                    <td>

34-37.5"

</td>

                </tr>

                <tr>

                    <td>

M/L

</td>

                    <td>

4-10

</td>

                    <td>

28-31.5"

</td>

                    <td>

38-40.5"

</td>

                </tr>

            
        </table>
        

*Currently 30A, 36D , 38D, 38DD are unavailable Sizes

        

If you have any questions about the size, you can reach out via the live chat or [email](https://exteasy.shop/pages/contact) us at exteasy@exteasy.store

    

    

Hi @orhl1234

I made sure you added the code into add to the add-to-cart form; that is why you got this issue. Please find all button code


And update it to this to solve the issue

```markup

![Screenshot 2024-05-03 at 15.44.08.png|1156x461](upload://9M3ZAxImXdlcxXac0JgyrFvkD20.png)