Jump to content

Prestashop Tüm Kurları Ürün Sayfasında Göstermek....


Şahin YILDIZ

Recommended Posts

classes/controller/FrontController.php
 
93 satıra aşağıdaki kodu ekleyin...
 

public static function ConvertPrice($value,$currencyFrom,$currencyTo){
        $currency_from = new currency($currencyFrom);
        $currency_to = new Currency($currencyTo);
        return Tools::displayPrice(Tools::convertPriceFull($value,$currency_from,$currency_to),$currency_to);
    }    

 
XrFcD6e.png
 
 
themes/temaadı/product.tpl
 
istediğiniz alana aşağıdaki kodu ekleyin...
 

{convertPrice price=FrontController::ConvertPrice($product->price,$cookie->id_currency,2)}

Kodun en sonunda bulunan 2 bu alana getireceğiniz kurun id numarasıdır...

aşağıda gösterdiğim alanda 2 numaranın euro id numarası olduğunu görüyorsunuz...
 
yemolZN.png
 
 
Dl0oYWJ.png
 
 
Sonuç olarak aşağıdaki görüntüyü alırsınız...
 
9XMGcMO.png

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...