What's New
- AuthorPosts
The whole idea is not to have warnings… just better than to have them. What do you think about this solution in themes/panda/templates/catalog/_partials/product-prices.tpl:
{if $product.has_discount && $product.specific_prices.to && $product.specific_prices.to != '0000-00-00 00:00:00'}<meta itemprop="priceValidUntil" content="{$product.specific_prices.to|date_format:'%Y-%m-%d'}"> {else} <meta itemprop="priceValidUntil" content="{($smarty.now + (60*60*24*15))|date_format:"%Y-%m-%d"}"> {/if}
While testing, I noticed one small issue with ” Image elements do not have explicit width and height”. It is related to an image uploaded via theme editor/general section/payment icon. Is there a solution how to add the width and height?
Hi,
1. Please replace the \modules\ststickers\views\js\admin.js file with my attached one, then clear the browser cache.
2. Do you mean it works fine in ps 1.7.7.4 with the default theme? could you tell me what’s version of Prestashop and the theme you are using?
3. I think the best way is to contact the module developer to help you add the link quickly, who knows the module everywhere better than me.
Best regards.Attachments:
Hi,
1/ thank you but currency exchange doesn’t work I’m afraid.
a/ it doesn’t subtract shipping, it is now price of product ($94.72) and shipping ($19.84) = $114.56 – and text is there. It should not be there because the product is < 100
it was working fine with this:
{if ($cart.totals.total.amount - $cart.subtotals.shipping.amount) > 100}
but not with this:
{if Tools::convertPrice($cart.totals.total.amount - $cart.subtotals.shipping.amount) > 100}
b/ the second issue is that the conversion is not working. The code appears when there is a cart value ¥1,077 in Japanese currency but that is only 6.99 in default currency. I need the text to appear when the cart value is above 100 in default currency which is about ¥16,791.
Maybe it is related to 1.7.7 because I found this information:
After take a look to new prestashop template 1.7 (templates/catalog/_partials/product-prices), it seems they do not use convertPrice anymore.
In 1.7.* you can use:{assign var=currency value=Context::getContext()->currency} {Tools::displayPrice($yourprice,$currency)}
3/ I understand, can you just help me with the following code? I want to hide the link when the code has already been added to cart. There is similar code in the file already… but this is not working:
{if Tools::convertPrice($cart.totals.total.amount - $cart.subtotals.shipping.amount) > 100 && $voucher.code !== 'MYVOUCHER'}<div class="free-product"><a href="link" style="text-decoration: underline;">text</a></div> {/if}
4/ can you confirm that the correct file is \themes\panda\templates\checkout\cart.tpl file and the correct place is as on the image attached?
Attachments:
- AuthorPosts
You must be logged in to reply to this topic.