• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 11.10.19, 10:39
  • Opened by: Damien
  • Closed by: Marek
  • Closed on: 01.11.19, 18:57
  • Reason: Closed
  • Comment: Glad to help!

Ticket #15850 - Problem refreshing product page with combinations

Hello,
I have a problem regarding page refresh.

In my product page with combinations
https://www.sko-paris.com/shop/24-91-baskets-stairway-leo-gold.html If the first product is out of stock, i can’t order it. For now that’s normal but if i change to another size “36 to 37” for example, the sentence “Out of stock” is still displaying, the alert notification also though have some stock and i can add the product to the cart.

When i refresh manualy the page
https://www.sko-paris.com/shop/24-92-baskets-stairway-leo-gold.html#/3-pointure-37 The stock is well displayed.

This is very important because my client don’t buy because they think the product is out of stock but it is not in every size
How can i solve that.
Thank you for your help.

Comments

Damien 11 Oct 2019, 10:45

For more details, in the product page, i have moved this block

              {block name='product_availability'}
            <span class="product-availability dib">
              {if $product.show_availability && $product.availability_message}
                {if $product.availability == 'available'}
                  <span class="product-available">
                    <svg class="svgic"><use xlink:href="#si-done"></use></svg>
                    <span>{$product.availability_message}</span>
                  </span>
                {elseif $product.availability == 'last_remaining_items'}
                  <span class="product-last-items">
                    <svg class="svgic"><use xlink:href="#si-exclamation"></use></svg>
                    <span>{$product.availability_message}</span>
                  </span>
                {else}
                  <span class="product-unavailable">
                    <svg class="svgic"><use xlink:href="#si-cross"></use></svg>
                    <span>{$product.availability_message}</span>
                  </span>
                {/if}
              {/if}
            </span>
          {/block}

so that the sentence “produit en rupture de stock” appears at the top of the cart button.
before that it was under the cart button.
Could that be the reason of the problem?

Damien 11 Oct 2019, 11:35

I found what was the problem.
It was effectivly because of the position of the “Out of stock” sentence in the product-add-to-cart.tpl
but i still have the same problem with the plugin emailalert in the same page.
Where do i have to place it so that it refresh with other elements?

Damien 11 Oct 2019, 14:15

I have identify the problem. i am using page layout builder for the product page and i can’t disable

<div class="productButtons flex-container align-items-center">
                    {hook h='displayMoreButtons' product_id=$product.id}
                  </div>
 
                 {block name='product_additional_info'}
                   {include file='catalog/_partials/product-additional-info.tpl'}
                 {/block}

i would like to put it in the product-add-to-cart
how can i do this?
Thank you

Marek 11 Oct 2019, 20:02

Open the file /modules/pspagebuilder/views/templates/front/widgets/widget_productpagebuy.tpl and edit it as you like