KöveZoli Posted April 11, 2016 Share Posted April 11, 2016 Sziasztok, Ti hogyan oldanátok meg, hogy figyelmeztessen, ha a vásárló még nem érte el az ingyenes szállításhoz szükséges értéket? Köszi! Link to comment Share on other sites More sharing options...
pattila01 Posted April 14, 2016 Share Posted April 14, 2016 Vannak a neten tutorialok amik bemutatják, hogyan építsd be a kódot például a kosárba, mely kijelzi, hogy mennyi érték hiányzik az ingyenes szállításhoz. Például egy ilyen a kosár összesítőben (rendelés összesítő): {assign var='freeshipping_price' value=Configuration::get('PS_SHIPPING_FREE_PRICE')} {if $freeshipping_price} {assign var='freeshipping_price_converted' value={toolsConvertPrice price=$freeshipping_price[spam-filter] {math equation='a-b' a=$total_price b=$total_shipping assign='total_without_shipping'} {math equation='a-b' a=$freeshipping_price_converted b=$total_without_shipping assign='remaining_to_spend'} {if $remaining_to_spend > 0} <p align="center"><strong><font size="4"; color=1A9DA3>{l s='A rendelésed összértéke (szállítási költség nélkül): '} {convertPrice price=$total_without_shipping}</font></strong></p> <p align="center"><strong><font size="4"; color=1A9DA3>{l s='XXX Ft felett csökken a kiszállítási díj! '} </font></strong></p> <p align="center"><img src="/img/favicon_30x30.jpg" alt="kép"><strong><font size="4"; color=f15c02>{l s=' Ha még'} {convertPrice price=$remaining_to_spend}{' összegért vásárolsz XXX terméket, akkor a rendelésed ingyen szállítjuk! '} </strong></font></p> {/if} {/if} Link to comment Share on other sites More sharing options...
KöveZoli Posted April 14, 2016 Author Share Posted April 14, 2016 (edited) Megkerestem a fenti kódot. Ha beírom a < Div id = "HOOK_SHOPPING_CART" > {$ HOOK_SHOPPING_CART} </ div > elé, nem működik a kosár. Update: illetve, beállítottam, hogy az ingyenes szállítás kezdődik: 45000 forint, de nem látom sehol a figyelmeztetést Edited April 14, 2016 by Quechua (see edit history) Link to comment Share on other sites More sharing options...
pattila01 Posted April 14, 2016 Share Posted April 14, 2016 A fenti kód egyedi, nem tudod megtalálni mert az eredeti PS kódban nincs benne. A témád shopping-cart.tpl-jébe tedd bele, a <div id="order-detail-content" class="table_block table-responsive"> fölé, ha van ilyen sorod. Link to comment Share on other sites More sharing options...
KöveZoli Posted April 14, 2016 Author Share Posted April 14, 2016 Jah, a megkeresést én a netre gondoltam http://nemops.com/prestashop-show-free-shipping/#.Vw962PmLSUl Link to comment Share on other sites More sharing options...
KöveZoli Posted April 14, 2016 Author Share Posted April 14, 2016 (edited) Valami nem jó. Nem jön be a domainnev/order, ha a kód benne van. Kód módosítás után törlöm a gyorsítótárat. Edited April 14, 2016 by Quechua (see edit history) Link to comment Share on other sites More sharing options...
KöveZoli Posted April 22, 2016 Author Share Posted April 22, 2016 Ezzel a sorral van baja: " {assign var='freeshipping_price_converted' value={toolsConvertPrice price=$freeshipping_price[spam-filter] " Ok, kimaradt 2 db }, de a spam-filtert akkor sem tudja értelmezni. Link to comment Share on other sites More sharing options...
pattila01 Posted April 25, 2016 Share Posted April 25, 2016 "Nem jön be a domainnev/order, ha a kód benne van." A developer módot be kell kapcsolni ilyenkor, hogy lépni lehessen ha valami nem oké. Nem írtál verziószámot a prestashop-odhoz. 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