Jump to content
  • 0

w koszyku dodaje do ceny dostawę - jak wyłączyć


uzytkownik78

Question

wieć jak widać + dostawa = cena całkowita  ale chcę wyświetlać cenę bez dostawy - jak to zrobić? widzę kod php ale nie wiem jak definiowana jest cena bez dostawy

<div class="cart-prices-line last-line">
								<span class="price cart_block_total ajax_block_cart_total">{$total}</span>
								<span>{l s='Total' mod='blockcart'}</span>
							</div>
							{if $use_taxes && $display_tax_label == 1 && $show_tax}
								<p>
								{if $priceDisplay == 0}
									{l s='Prices are tax included' mod='blockcart'}
								{elseif $priceDisplay == 1}
									{l s='Prices are tax excluded' mod='blockcart'}
								{/if}
								</p>
							{/if}

xBlOr6z.jpg

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

w blockart.php znajdziesz

$totalToPay = $params['cart']->getOrderTotal($useTax);

spróbuj zamienić na
$totalToPay = $params['cart']->getOrderTotal($useTax, Cart::BOTH_WITHOUT_SHIPPING);


oczywiście w templatce koszyka będziesz musiał wyłączyć wyświetlanie kosztów wysyłki
 

Link to comment
Share on other sites

  • 0

zakomentuj ten kod lub dodaj style="display:none;"

około wiersza 143
 

<div class="cart-prices-line first-line">
    <span class="price cart_block_shipping_cost ajax_cart_shipping_cost{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
        {if $shipping_cost_float == 0}
             {if !($page_name == 'order-opc') && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
        {else}
            {$shipping_cost}
        {/if}
    </span>
    <span{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} class="unvisible"{/if}>
        {l s='Shipping' mod='blockcart'}
    </span>
</div>

i około wiersza 278
 

<div class="layer_cart_row">
    <strong class="dark{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
        {l s='Total shipping' mod='blockcart'} {if $display_tax_label}{if $priceDisplay == 1}{l s='(tax excl.)' mod='blockcart'}{else}{l s='(tax incl.)' mod='blockcart'}{/if}{/if}
    </strong>
    <span class="ajax_cart_shipping_cost{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
        {if $shipping_cost_float == 0}
             {if (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
        {else}
            {$shipping_cost}
        {/if}
    </span>
</div>
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...