Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Language keeps changing

Status Resolved
Add-on / Version Publisher 1.6.1
Severity
EE Version 2.9.2

Karen Bosch

May 08, 2015

Hello again,

I think I might have found a bug. I’m using publisher in combination with Expresso store for a webshop. My default language is Dutch and my second language is English. When I remove an item from my cart, it redirects like it should, but it changes the language to English. I’m not sure if this is a bug in Expresso Store or in Publisher, but as far as I’m concerned I’m not doing anything wrong. Could you take a look at this? Thank you! Here’s my code:

{exp:store:checkout
    form_class="form-horizontal"
    next="/webshop/category/{freebie_3}/checkout2"}

    {if no_items}
        <div class="bg-danger"  10px;">{phrase:winkelwagen_leeg}</div>
    {/if}
    <div class="row">
        <section class="col-sm-12 main-content">
            <div class="wrapper">
                <h1>Winkelwagen</h1>
<p>                </p><table class="table table-striped">
                    <thead>
                        <tr>
                            <th >Artikel</th>
                            <th></th>
                            <th>{phrase:prijs}</th>
                            <th>{phrase:hoeveelheid}</th>
                            <th >{phrase:totaal}</th>
                        </tr>
                    </thead>
                    <tbody>
                        {items}
                            <tr class="item">
                                <td>
                                    <a href="/webshop/category/{freebie_3}">{title}</a>
                                    <p><small>
                                        {modifiers}
                                            <b>{modifier_name}</b>: {modifier_value} {if price_mod_val}({price_mod}){/if}<br />
                                        {/modifiers}
                                    </small></p>
<p>                                </p>
</td>
<p>                                {exp:channel:entries channel="producten" url_title="{url_title}" dynamic="no"}<br />
                                    </p><td>
<p>                                        <a href="/webshop/category/{freebie_3}"><br />
                                            {exp:ce_img:single<br />
                                                src="{producten_afbeelding}"<br />
                                                width="70"<br />
                                                height="77"<br />
                                            }<br />
                                        </a><br />
                                    </p>
</td>
<p>                                {/exp:channel:entries}<br />
                                </p><td>{price}</td>
<p>                                </p><td>{item_qty}</td>
<p>                                </p><td >{item_subtotal}</td>
<p>                                </p><td>
<p>                                    <input type="submit" name="remove_items[{key}]" class="remove" value="<br />
" /><br />
                                </p>
</td>
<p>                            </p>
</tr>
<p>                        {/items}</p>

<p>                    </p>
</tbody>
<p>                    </p><tfoot>
<p>                        </p><tr>
<p>                            </p><th></th>
<p>                            </p><td></td>

<p>                            </p><td colspan="2">{phrase:subtotaal}</td>
<p>                            </p><td >{order_subtotal}</td>
<p>                            </p><td></td>
<p>                        </p>
</tr>
<p>                        </p><tr>
<p>                            </p><th></th>
<p>                            </p><td></td>

<p>                            </p><td colspan="2">Verzendkosten</td>
<p>                            </p><td >{order_shipping}</td>
<p>                            </p><td></td>
<p>                        </p>
</tr>
<p>                        </p><tr class="total">
<p>                            </p><th></th>
<p>                            </p><td></td>

<p>                            </p><th colspan="2">{phrase:totaal}</th>
<p>                            </p><td >{order_total}</td>
<p>                            </p><td></td>
<p>                        </p>
</tr>
<p>                    </p>
</tfoot>
<p>                </p>
</table>
<p>            </p>
</div>
<p>        </p>
</section>
<p>    </p>
</div>
<p>    </p><div class="row">
<p>        </p><div class="col-sm-12">
<p>            <span class="empty pull-right" ><input type="submit" name="empty_cart" value="{phrase:leeg_winkelwagen}"></span><br />
        </p>
</div>
<p>    </p>
</div>
<p>    </p><div class="row">
<p>        </p><div class="col-sm-12">
<p>            </p><span  class="btn btn-default col-xs-12 col-sm-5 col-md-3 pull-right" ><p><input type="submit" name="next" value="{phrase:ga_verder}" /></span><br />
        </p>
</div>
<p>    </p>
</div>
<p>{/exp:store:checkout}

 

#1

BoldMinded (Brian)

What does the rendered form tag look like? Specifically the form opening tag.

#2

Karen Bosch

<form method="post" class="form-horizontal" data-publisher-updated="true">
<div >
<input type="hidden" name="return_url" value="nl/webshop">
<input type="hidden" name="next_url" value="/webshop/category/ral-boeken/checkout2">
<input type="hidden" name="ACT" value="44">
<input type="hidden" name="RET" value="en/webshop/">
<input type="hidden" name="site_id" value="1">
<input type="hidden" name="csrf_token" value="71d4a16e20af1e19bf5943fbc8bf71fba96610ee">
<input type="hidden" name="_params" value="/UWTbxG2atOmeMlf1l1z96KFs8boo6CtNWAI5N7LqPCdU7xse22OmvecBTSNcav2TZFcMkVCdx/PQCqnuXIZcor5NQAwlZH2ENPATM1DayAlyCONSe5+S/58AZW1PfK0790YwudZto3ewv0JjNIMFEqaNOnTY7Rg7GYAntmvRJBzF1CtpgiSJJnTb3LTTjScmqC2xyx+iBD4l1qn3YGnJg==">
</div>


                <div class="row">
                    <section class="col-sm-12 main-content">
                        <div class="wrapper">
                            <h1>Winkelwagen</h1>
                            <table class="table table-striped">
                                <thead>
                                    <tr>
                                        <th >Artikel</th>
                                        <th></th>
                                        <th>Prijs</th>
                                        <th>Aantal</th>
                                        <th >Totaal</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    
                                        <tr class="item">
                                            <td>
                                                <a href="/webshop/category/ral-boeken">Dit is een product</a>
                                                <small>
                                                    
                                                </small>
                                            </td>
                                            
                                                <td>
                                                    <a href="/webshop/category/ral-boeken">
                                                        /assets/cache/images/assets/uploads/images/buch-farben-der-hotels_70_77.png
                                                    </a>
                                                </td>
                                            
                                            <td>€100.00</td>
                                            <td>2</td>
                                            <td >€200.00</td>
                                            <td>
                                                <input type="submit" name="remove_items[38]" class="remove" value="">
                                            </td>
                                        </tr>
                                    

                                </tbody>
                                <tfoot>
                                    <tr>
                                        <th></th>
                                        <td></td>

                                        <td colspan="2">Subtotaal</td>
                                        <td >€200.00</td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <th></th>
                                        <td></td>

                                        <td colspan="2">Verzendkosten</td>
                                        <td >€0.00</td>
                                        <td></td>
                                    </tr>
                                    <tr class="total">
                                        <th></th>
                                        <td></td>

                                        <th colspan="2">Totaal</th>
                                        <td >€200.00</td>
                                        <td></td>
                                    </tr>
                                </tfoot>
                            </table>
                        </div>
                    </section>
                </div>
                <div class="row">
                    <div class="col-sm-12">
                        <span class="empty pull-right"><input type="submit" name="empty_cart" value="Leeg winkelwagen"></span>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-12">
                        <span class="btn btn-default col-xs-12 col-sm-5 col-md-3 pull-right"><input type="submit" name="next" value="Ga verder"></span>
                    </div>
                </div></form>
#3

BoldMinded (Brian)

Comment has been marked private.

#4

Karen Bosch

This does fix the first bug, but brings another error with it. When I navigate to the page where I can delete store items, I see this error on the top of the page:

A PHP Error was encountered

Severity: Warning

Message: DOMDocument::loadHTML(): Tag section invalid in Entity, line: 14

Filename: Service/Parser.php

Line Number: 305
#5

BoldMinded (Brian)

Comment has been marked private.

#6

Karen Bosch

That did it! Thank you!

#7

BoldMinded (Brian)

Excellent! This will be included in the next release.

Login to reply