Gfinfo web Posted November 13, 2024 Share Posted November 13, 2024 Hello I am having trouble with New product flag showing in the wrong position. It is on top of name. But only on brands lists. For categories or home page lists, its showing normal. Its a child theme of classic theme. Anyone who can give a tip i apreciate. Link to comment Share on other sites More sharing options...
JBW Posted November 14, 2024 Share Posted November 14, 2024 Check the CSS using the inspect function of the browser or post a link to example site here Link to comment Share on other sites More sharing options...
Prestashop Addict Posted November 14, 2024 Share Posted November 14, 2024 Please can you specify theme Link to comment Share on other sites More sharing options...
Gfinfo web Posted November 14, 2024 Author Share Posted November 14, 2024 2 hours ago, JBW said: Check the CSS using the inspect function of the browser or post a link to example site here Sure here is the link: https://www.novaeletricaeiluminacao.com.br/brand/1-tramontina 1 hour ago, Prestashop Addict said: Please can you specify theme The theme is a child theme I made from the classic theme. Is that what you asked? English is not my first language.😅 Link to comment Share on other sites More sharing options...
JBW Posted November 14, 2024 Share Posted November 14, 2024 Seems you moved the position of product flags in your child theme. In original classic theme it's below product-description. Moving it back the flags appear correctly again Link to comment Share on other sites More sharing options...
Gfinfo web Posted November 14, 2024 Author Share Posted November 14, 2024 I see, but I dont understand why is doing that. I did not change it on the child theme. I dont even have a product.tpl on the child theme. I am using the original product.tpl of the classic theme. the include flag is outside description. <div class="product-description"> {block name='product_name'} {if $page.page_name == 'index'} <h3 class="h3 product-title"><a href="{$product.url}" content="{$product.url}">{$product.name|truncate:30:'...'}</a></h3> {else} <h2 class="h3 product-title"><a href="{$product.url}" content="{$product.url}">{$product.name|truncate:30:'...'}</a></h2> {/if} {/block} {block name='product_price_and_shipping'} {if $product.show_price} <div class="product-price-and-shipping"> {if $product.has_discount} {hook h='displayProductPriceBlock' product=$product type="old_price"} <span class="regular-price" aria-label="{l s='Regular price' d='Shop.Theme.Catalog'}">{$product.regular_price}</span> {if $product.discount_type === 'percentage'} <span class="discount-percentage discount-product">{$product.discount_percentage}</span> {elseif $product.discount_type === 'amount'} <span class="discount-amount discount-product">{$product.discount_amount_to_display}</span> {/if} {/if} {hook h='displayProductPriceBlock' product=$product type="before_price"} <span class="price" aria-label="{l s='Price' d='Shop.Theme.Catalog'}"> {capture name='custom_price'}{hook h='displayProductPriceBlock' product=$product type='custom_price' hook_origin='products_list'}{/capture} {if '' !== $smarty.capture.custom_price} {$smarty.capture.custom_price nofilter} {else} {$product.price} {/if} </span> {hook h='displayProductPriceBlock' product=$product type='unit_price'} {hook h='displayProductPriceBlock' product=$product type='weight'} </div> {/if} {/block} {block name='product_reviews'} {hook h='displayProductListReviews' product=$product} {/block} </div> {include file='catalog/_partials/product-flags.tpl'} And it only doing it on the brand pages, the others it is working normaly. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now