tr-opencart

     
avatar Şuanki Zaman: 03-29-2024, 09:31 AMHoşgeldin Misafir !
  Şifremi Hatırlat   kayıt ol
opencart temaları

Seçenek fiyatını kasada göstermek istiyorum

Konuyu görüntüleyenler: 1 Misafir
 
Değerlendir:
  • 0 Oy - 0 Yüzde
  • 1
  • 2
  • 3
  • 4
  • 5
%
Cevapla  Gönder 
v  v
Yazar  nickelaj - Görüntüleme - Okunma  1378 - Yorum  0

nickelajv
Üye
***
Üye user avatar
Çevrimdışı

Mesajlar: 99
Konular: 21
Katılma Tarihi: Feb 2012
Rep Puanı: 1
Teşekkürler: 63
4 Mesajına, 5 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 12-03-2018 09:01 PM

Merhaba,

Bazı seçeneklerde ek fiyat var ve onları da kasa sayfasında göstermek istiyorum.
Örneğin 3TL üründe +1 seçenek ilavesi var. Kasada direk 4 gösteriyor ama altta seçeneğin yanında da bu ilave fiyatı göstermenin yolunu arıyorum. Versiyon 2 için modül buldum ama uyarlayamadım.

PHP Kod:
<file path="system/library/cart.php"
        <
operation>
            <
search><![CDATA[=> ($price $option_price),]]></search>
            <
add position="replace"><![CDATA[=> $price,
                                                
'op_price'        => $option_price,]]></add>
        </
operation>
        <
operation>
            <
search><![CDATA[$tax_rates $this->tax->getRates($product['price'], $product['tax_class_id']);]]></search>
            <
add position="after"><![CDATA[                                $tax_rates_op $this->tax->getRates($product['op_price'], $product['tax_class_id']);]]></add>
        </
operation>
        <
operation>
            <
search><![CDATA[return $tax_data;]]></search>
            <
add position="before" offset="4"><![CDATA[                foreach ($tax_rates_op as $tax_rate) {
                    if (!isset(
$tax_data[$tax_rate['tax_rate_id']])) {
                        
$tax_data[$tax_rate['tax_rate_id']] = ($tax_rate['amount'] * $product['quantity']); 
                    } else {
                        
$tax_data[$tax_rate['tax_rate_id']] += ($tax_rate['amount'] * $product['quantity']);
                    }
                            } 
            ]]></
add>
        </
operation>
    </
file>
    <
file path="catalog/controller/checkout/cart.php">   
        <
operation>
            <
search><![CDATA['name'  => $option['name'],]]></search>
            <
add position="before"><![CDATA[                                                 'price_formatted' => $this->currency->format($this->tax->calculate($option['price'], $product['tax_class_id'], $this->config->get('config_tax')) * $product['quantity']),
                                               
'op_prix'=> $option['price'],
                                               
'op_type'=> $option['type'],]]></add>
        </
operation>
    </
file>
    <
file path="catalog/controller/common/cart.php">   
        <
operation>
            <
search><![CDATA['name'  => $option['name'],]]></search>
            <
add position="before"><![CDATA[                                         'price_formatted' => $this->currency->format($this->tax->calculate($option['price'], $product['tax_class_id'], $this->config->get('config_tax')) * $product['quantity']),
                                       
'op_prix'=> $option['price'],
                                       
'op_type'=> $option['type'],]]></add>
        </
operation>
    </
file>
    <
file path="catalog/controller/checkout/confirm.php">   
        <
operation>
            <
search><![CDATA['name'  => $option['name'],]]></search>
            <
add position="before"><![CDATA[                                                 'price_formatted' => $this->currency->format($this->tax->calculate($option['price'], $product['tax_class_id'], $this->config->get('config_tax')) * $product['quantity']),
                                               
'op_prix'=> $option['price'],
                                               
'op_type'=> $option['type'],]]></add>
        </
operation>
    </
file>
    <
file path="catalog/view/theme/*/template/common/cart.tpl">   
        <
operation>
            <
search><![CDATA[- <small><?php echo $option['name']; ?> <?php echo $option['value']; ?></small>]]></search>
            <add position="replace"><![CDATA[<?php if ($option['op_type'] != 'radio' && $option['op_type'] != 'checkbox' && $option['op_type'] != 'image' && $option['op_type'] != 'select'  ) echo '<br /><small style="float:left;">' $option['name'] . ': ' $option['value'] . '</small> '?>]]></add>
        </operation>
        <operation>
            <search><![CDATA[<?php echo $product['total']; ?></td>]]></search>
            <add position="replace"><![CDATA[          <?php echo $product['total']; ?>
          
           <?php foreach ($product['option'] as $option) {
                 if(
$option['op_prix'] == 0$option['price_formatted'] = '- &nbsp;';
                 if (
$option['op_type'] == 'radio'||$option['op_type'] == 'select'||$option['op_type'] == 'image'||$option['op_type'] == 'checkbox') echo' <br /><small style="float:left;padding:0;margin:0;">' $product['quantity'] . ' x ' $option['name'] . ': ' $option['value'] . ' :   </small> ' $option['price_formatted']; } ?>
              
          </td>]]></add>
        </operation>
    </file>
    <file path="catalog/view/theme/*/template/checkout/cart.tpl">   
        <operation>
            <search><![CDATA[<small><?php echo $option['name']; ?><?php echo $option['value']; ?></small>]]></search>
            <add position="replace"><![CDATA[ <?php if ($option['op_type'] != 'radio' && $option['op_type'] != 'checkbox' && $option['op_type'] != 'image' && $option['op_type'] != 'select'  ) echo '<br /><small style="float:left;">' $option['name'] . ': ' $option['value'] . '</small> '?>]]></add>
        </operation>
        <operation>
            <search><![CDATA[<?php echo $product['total']; ?></td>]]></search>
            <add position="replace"><![CDATA[          <?php echo $product['total']; ?>
          
           <?php foreach ($product['option'] as $option) {
                if(
$option['op_prix'] == 0$option['price_formatted'] = '- &nbsp;';
                 if (
$option['op_type'] == 'radio'||$option['op_type'] == 'select'||$option['op_type'] == 'image'||$option['op_type'] == 'checkbox') echo '<br /><small style="float:left;">' $product['quantity'] . ' x ' $option['name'] . ': ' $option['value'] . ' :   </small> ' $option['price_formatted']; } ?>
              
          </td>]]></add>
        </operation>
    </file>
    <file path="catalog/view/theme/*/template/checkout/confirm.tpl">   
        <operation>
            <search><![CDATA[&nbsp;<small> - <?php echo $option['name']; ?><?php echo $option['value']; ?></small>]]></search>
            <add position="replace"><![CDATA[ <?php if ($option['op_type'] != 'radio' && $option['op_type'] != 'checkbox' && $option['op_type'] != 'image' && $option['op_type'] != 'select'  ) echo '<br /><small style="float:left;">' $option['name'] . ': ' $option['value'] . '</small> '?>]]></add>
        </operation>
        <operation>
            <search><![CDATA[<?php echo $product['total']; ?></td>]]></search>
            <add position="replace"><![CDATA[          <?php echo $product['total']; ?>
          
           <?php foreach ($product['option'] as $option) {
                if(
$option['op_prix'] == 0$option['price_formatted'] = '- &nbsp;';
                 if (
$option['op_type'] == 'radio'||$option['op_type'] == 'select'||$option['op_type'] == 'image'||$option['op_type'] == 'checkbox') echo '<br /><small style="float:left;">' $product['quantity'] . ' x ' $option['name'] . ': ' $option['value'] . ' :   </small> ' $option['price_formatted']; } ?>
              
          </td>]]></add>
        </operation>
    </file> 
Alıntı Yaparak Cevapla
Paylaş!

« Önceki | Sonraki »
Cevapla  Gönder 

Bu Konudaki Mesajlar
Seçenek fiyatını kasada göstermek istiyorum - nickelaj - 12-03-2018 09:01 PM

Seçenek fiyatını kasada göstermek istiyorum Konusunun Linki Direk Link
Seçenek fiyatını kasada göstermek istiyorum Konusunun HTML Kodu HTML Link
Seçenek fiyatını kasada göstermek istiyorum Konusu BBCode Linki BBCode Link
Seçenek fiyatını kasada göstermek istiyorum Konusunu Paylaş Sosyal Paylaş

Benzeyen Konular
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
  Ana menüdeki açılır menüyü sabit hale getirmek istiyorum. Bir türlü yapamadım. Yardım kaimeric 0 933 01-25-2021 01:14 PM
Son Mesaj: kaimeric
  OpenCart 3x Seçenek Fiyatı simurg 0 861 12-09-2020 04:30 PM
Son Mesaj: simurg
  sepette ürün birim fiyatını kdv siz gösterme nco_90000 3 1,840 12-02-2020 08:43 PM
Son Mesaj: nsercan
  Seçenek Bölümünde Resim Yok Adalente 4 893 05-20-2020 11:35 PM
Son Mesaj: teknohiz
  Opencart 3.x Seçenek Fiyatını Ana Fiyat Olarak Ayarlama yapmakistiyorum. ironamn 3 1,622 05-16-2019 01:51 AM
Son Mesaj: ertug
  Ürün sayfasında Hem TL hem Usd fiyatı göstermek ? aydd 2 1,681 02-01-2019 02:14 AM
Son Mesaj: aydd
  Admin ürün sayfasına ek alan eklemek istiyorum nickelaj 9 2,445 11-01-2018 06:02 PM
Son Mesaj: e-ticaretdersleri
  ürünleri tek satırda slide olarak göstermek için ne yapmam lazım? isilcetn 1 1,039 05-27-2018 09:54 PM
Son Mesaj: Ozanbey
  Seçenek fiyatlarını nasıl kaldırabilirim? storcom 5 1,751 04-20-2018 04:06 PM
Son Mesaj: storcom

Seçenek fiyatını kasada göstermek istiyorum indir, Seçenek fiyatını kasada göstermek istiyorum Videosu, Seçenek fiyatını kasada göstermek istiyorum online izle, Seçenek fiyatını kasada göstermek istiyorum Bedava indir, Seçenek fiyatını kasada göstermek istiyorum Yükle, Seçenek fiyatını kasada göstermek istiyorum Hakkında, Seçenek fiyatını kasada göstermek istiyorum nedir, Seçenek fiyatını kasada göstermek istiyorum Free indir, Seçenek fiyatını kasada göstermek istiyorum oyunu, Seçenek fiyatını kasada göstermek istiyorum download


Forum Atla: