mareblu Posted November 10, 2013 Share Posted November 10, 2013 (edited) Hello, seem nobody knows an answer at the German board so I'll try here: I've done the 1Button-Fix solution for checkout and it works so far, only when a customer has chosen bnakwire he gets this message: Warning: Function getDiscounts() is deprecated in /home/seasons/public_html/cache/smarty/compile/57/fc/fe/57fcfe8ad308dacaf51c283638cb1dc4ed8a5a6c.file.shopping-cart_own.tpl.php on line 82in /home/seasons/public_html/classes/Tools.php on line 1845 How can I fix this, please? Also, the sentence next to the checkbox for accepting the terms of conditions is now in English again instead of German! Thank you so much, mare Edited November 10, 2013 by mareblu (see edit history) Link to comment Share on other sites More sharing options...
guest* Posted November 10, 2013 Share Posted November 10, 2013 Please post your question into the German Forum. In the English Forum there are nobody knowing about German solutions which can help you. You should clear your smarty cache, because schopping_cart_own.tpl is a new file. Link to comment Share on other sites More sharing options...
mareblu Posted November 10, 2013 Author Share Posted November 10, 2013 (edited) Sorry! I did, but got no answer so I tried here. Every customer who leaves his cart because he is confused about this is lost money. I cleared the cache but it is still there. Edit: I've deleted those two folders like you advised in another post about clearing the cache.....was it deleting these folders or open the folders and delete the contents? Edited November 10, 2013 by mareblu (see edit history) Link to comment Share on other sites More sharing options...
mareblu Posted November 10, 2013 Author Share Posted November 10, 2013 no change whatever I do. Cleared the cache over and over again, without success Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted November 10, 2013 Share Posted November 10, 2013 Hi, unfortunately I don't know what is the "1Button-Fix" solution but looks like you are using deprecated Cart::getDiscounts() function: /** * @deprecated 1.5.0, use Cart->getCartRules() */ public function getDiscounts($lite = false, $refresh = false) { Tools::displayAsDeprecated(); return $this->getCartRules(); } So you need use getCartRules() instead of getDiscounts() or disable messages about deprecated functions Regards Link to comment Share on other sites More sharing options...
mareblu Posted November 10, 2013 Author Share Posted November 10, 2013 Thanks for your answer! How and where do I make thoses changes? Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted November 10, 2013 Share Posted November 10, 2013 Judging by your report log in shopping-cart_own.tpl Link to comment Share on other sites More sharing options...
vekia Posted November 10, 2013 Share Posted November 10, 2013 can you show contents of youe .tpl file please? Link to comment Share on other sites More sharing options...
mareblu Posted November 10, 2013 Author Share Posted November 10, 2013 This is the content of that file: {** 2007-2011 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to [email protected] so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <[email protected]>* @copyright 2007-2011 PrestaShop SA* @version Release: $Revision: 8088 $* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*}<h1 id="cart_title">{l s='Shopping cart summary'}</h1><div id="Summary-Order-Info">{l s='Here you can check your order and change it, if you want to'}</div>{include file="$tpl_dir./errors.tpl"}{if isset($empty)} <p class="warning">{l s='Your shopping cart is empty.'}</p>{elseif $PS_CATALOG_MODE} <p class="warning">{l s='This store has not accepted your new order.'}</p>{else} <script type="text/javascript"> // <![CDATA[ var currencySign = '{$currencySign|html_entity_decode:2:"UTF-8"}'; var currencyRate = '{$currencyRate|floatval}'; var currencyFormat = '{$currencyFormat|intval}'; var currencyBlank = '{$currencyBlank|intval}'; var txtProduct = "{l s='product'}"; var txtProducts = "{l s='products'}"; // ]]> </script> <p style="display:none" id="emptyCartWarning" class="warning">{l s='Your shopping cart is empty.'}</p> <!-- MAIN Init SimoN Agostini //-->{$discounts=$cart->getDiscounts()}{$allSum=$cart->getSummaryDetails()}<div class="addresses"> <div id="cartSum" > <h2 class="opcH2" >{l s='Delivery Address'} <a id="address_update_sum" href="{$link->getPageLink('order.php', true)}?step=1{if isset($back) && $back}&back={$back}{/if}">{l s='change'}</a></h2> <div style="padding:5px;"> <b>{$allSum.delivery->firstname|capitalize} {$allSum.delivery->lastname|capitalize}</b><br/> {if $allSum.delivery->company!=""}<b>{$allSum.delivery->company|escape}</b><br/>{/if} {$allSum.delivery->address1|escape}<br/> {if $allSum.delivery->address2 !=''}{$allSum.delivery->address2|escape}<br/>{/if} {$allSum.delivery->postcode|intval} {$allSum.delivery->city|capitalize}<br/> {$allSum.delivery->country|capitalize}<br/> </div> </div> <div id="cartSumr" > <h2 class="opcH2">{l s='Invoice Address'} <a id="address_update_sum" href="{$link->getPageLink('order.php', true)}?step=1{if isset($back) && $back}&back={$back}{/if}">{l s='change'}</a></h2> <div style="padding:5px;"> <b>{$allSum.invoice->firstname|capitalize} {$allSum.invoice->lastname|capitalize}</b><br/> {if $allSum.invoice->company!=""}<b>{$allSum.invoice->company|escape}</b><br/>{/if} {$allSum.invoice->address1|escape}<br/> {if $allSum.invoice->address2 !=''}{$allSum.invoice->address2|escape}<br/>{/if} {$allSum.invoice->postcode|intval} {$allSum.invoice->city|capitalize}<br/> {$allSum.invoice->country|capitalize}<br /> </div> </div></div><div class="carrierSummary"> <div id="carrierSum"> <h2 class="opcH2" >{l s='Carrier'} <a id="address_update_sum" href="{$link->getPageLink('order.php', true)}?step=2{if isset($back) && $back}&back={$back}{/if}">{l s='change'}</a></h2> <div style="padding:5px;"> {if isset($cart->id_carrier)}<img src="{$img_ship_dir}{$cart->id_carrier|intval}.jpg" alt="{l s='Carrier'}" style="vertical-align:middle;" />{/if} {$allSum.carrier->name} : {$allSum.carrier->delay} </div> </div></div><p class="clear" style="padding:0px 0px 5px 0px;"> <div style="display:none;"> {l s='I have read the terms of service and agree with submit of my order with the conditions'} <a href="{if $lang_iso=='de'}{$link->getCMSLink('3','agbs')}?content_only=1{else}{$link->getCMSLink('3','terms-and-conditions-of-use')}?content_only=1{/if}" class="iframe" target="_blank">{l s='(read)'}</a> </div></p><div class="clear"></div><p class="cart_navigation_extra"> <span id="HOOK_SHOPPING_CART_EXTRA">{$HOOK_SHOPPING_CART_EXTRA}</span></p>{/if} Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted November 10, 2013 Share Posted November 10, 2013 Did you check solution from eleazar@? Link to comment Share on other sites More sharing options...
mareblu Posted November 11, 2013 Author Share Posted November 11, 2013 Thank you, your solution worked, eleazar! Why do you see a problem with German law? The 1button-fix was created because of German law and it workes in my shop. I only had this problem with the error message. I tried to get an answer in the German board, but unfortunately nobody seems to be able to help me with it (even they do an awesome job with those thousands of questions I ask them!). Thans again, mare Link to comment Share on other sites More sharing options...
mareblu Posted November 12, 2013 Author Share Posted November 12, 2013 Thank you, eleazar! I appreciate your help - and that of the others as well - a lot! Well, German law is insane, in my opinion in it being so....exaggerated, if I can put it this way. If there's somebody out there wanting to send you a written warning (I don't find the appropriate word for the famous German "Abmahnung") then he will find a way. It is disgusting, in my opinion. 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