Jump to content

sparhawk

Members
  • Posts

    26
  • Joined

  • Last visited

sparhawk's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank you for answer. And internet address ending in .html (printed-dress-3.html) or without ending .html (printed-dress-3) also does not effect to SEO ?
  2. Hello, I ask you for advice which of the internet addresses is SEO friendly ? with endings .html 1. http://demo.com/casual-dresses/printed-dress-3.html or without endings .html 2. http://demo.com/casual-dresses/printed-dress-3 It is better to give ID at the end of the product name ? Thank you for your answers
  3. Hi there, you can set in the module productscategory don't show the products associated with category Home ? Product has associated in two categories (Home and t-shirt) and I do not want to show me also different products of the category Home. Can you advise me how don't show products associated also to category home in module productscategory ? thank you Petr
  4. Hi, can you please advise me how to set the default data on dashboard - graphs Visits in module - dashtrends and traffic in module dashgoals ? Module DashGoals in the file dashboard_zone_two.tpl i can set the default value on traffic added to class active. Just do not know how to set the default chart on traffic ? <label class="btn btn-default active"> <input type="radio" name="options" onchange="selectDashgoalsChart('traffic');"/><i class="icon-circle" style="color:{$colors[0]}"></i> {l s='Traffic' mod='dashgoals'} </label> Thank you for your advice
  5. Hello everybody, please help me. I have on prestashop database new table name: to_delete Here in table to_delete I have id product and reference product for deletion. This is my php code which works. But now I needed to add control when the product was updated table ps_ product columns date_upd. When the product on columns date_upd older than six months (or a specific date) will be deleted. Just do not know how to add code conditions. Please help me.
  6. Hi, I need advice. I have specified units for all products. A unit would need display in the invoice. Units need to get to the table ps_order_detail. Do I have put the table ps_order_detail on the last column instead of unity. Please advice me
  7. Hello ibndawood, thanks for your modification for sort attributes (file /override/controllers/front/ProductController.php) Modification works great but now I encountered a problem. When in the administration in Preferences \ Product switch Display unavailable product attributes on the product page to NO I dont see attributes Size and Color but I see twice the same color attributes. When the switch is in the administration Display unavailable product attributes on the product page to Yes I see the attribute Size and Color. Could you please advise me how to debug this ? thank you in advance
  8. Pascal, thank you for your response. I attach the full code shopping-cart.tpl. I tried to change $free_ship with $amount_until_free_shipping but it did not work. Now does not display zero in the remaining amount for free shipping. Can you please advise me. many thanks Petr {* * 2007-2013 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-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {capture name=path}{l s='Your shopping cart'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"} <h1 id="cart_title">{l s='Shopping-cart summary'}</h1> {if isset($account_created)} <p class="success"> {l s='Your account has been created.'} </p> {/if} {assign var='current_step' value='summary'} {include file="$tpl_dir./order-steps.tpl"} {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' js=1}"; var txtProducts = "{l s='products' js=1}"; var deliveryAddress = {$cart->id_address_delivery|intval}; // ]]> </script> <p style="display:none" id="emptyCartWarning" class="warning">{l s='Your shopping cart is empty.'}</p> {if isset($lastProductAdded) AND $lastProductAdded} <div class="cart_last_product"> <div class="cart_last_product_header"> <div class="left">{l s='Last product added'}</div> </div> <a class="cart_last_product_img" href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, $lastProductAdded.id_shop)|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($lastProductAdded.link_rewrite, $lastProductAdded.id_image, 'small_default')|escape:'html'}" alt="{$lastProductAdded.name|escape:'htmlall':'UTF-8'}"/></a> <div class="cart_last_product_content"> <p class="s_title_block"><a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'htmlall':'UTF-8'}">{$lastProductAdded.name|escape:'htmlall':'UTF-8'}</a></p> {if isset($lastProductAdded.attributes) && $lastProductAdded.attributes}<a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'htmlall':'UTF-8'}">{$lastProductAdded.attributes|escape:'htmlall':'UTF-8'}</a>{/if} </div> <br class="clear" /> </div> {/if} <p>{l s='Your shopping cart contains:'} <span id="summary_products_quantity">{$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if}</span></p> <div id="order-detail-content" class="table_block"> <table id="cart_summary" class="std"> <thead> <tr> <th class="cart_product first_item">{l s='Product'}</th> <th class="cart_description item">{l s='Description'}</th> <th class="cart_ref item">{l s='Ref.'}</th> <th class="cart_unit item">{l s='Unit price'}</th> <th class="cart_quantity item">{l s='Qty'}</th> <th class="cart_total item">{l s='Total'}</th> <th class="cart_delete last_item"> </th> </tr> </thead> <tfoot> {if $use_taxes} {if $priceDisplay} <tr class="cart_total_price"> <td colspan="5">{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if}</td> <td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td> </tr> {else} <tr class="cart_total_price"> <td colspan="5">{if $display_tax_label}{l s='Total products (tax incl.)'}{else}{l s='Total products'}{/if}</td> <td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td> </tr> {/if} {else} <tr class="cart_total_price"> <td colspan="5">{l s='Total products'}</td> <td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td> </tr> {/if} <tr{if $total_wrapping == 0} style="display: none;"{/if}> <td colspan="5"> {if $use_taxes} {if $display_tax_label}{l s='Total gift wrapping (tax incl.):'}{else}{l s='Total gift-wrapping cost:'}{/if} {else} {l s='Total gift-wrapping cost:'} {/if} </td> <td colspan="2" class="price-discount price" id="total_wrapping"> {if $use_taxes} {if $priceDisplay} {displayPrice price=$total_wrapping_tax_exc} {else} {displayPrice price=$total_wrapping} {/if} {else} {displayPrice price=$total_wrapping_tax_exc} {/if} </td> </tr> {if $total_shipping_tax_exc <= 0 && !isset($virtualCart)} <tr class="cart_total_delivery" style="{if !isset($carrier->id) || is_null($carrier->id)}display:none;{/if}"> <td colspan="5">{l s='Shipping'}</td> <td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td> </tr> {else} {if $use_taxes && $total_shipping_tax_exc != $total_shipping} {if $priceDisplay} <tr class="cart_total_delivery" {if $total_shipping_tax_exc <= 0} style="display:none;"{/if}> <td colspan="5">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td> <td colspan="2" class="price" id="total_shipping">{displayPrice price=$total_shipping_tax_exc}</td> </tr> {else} <tr class="cart_total_delivery"{if $total_shipping <= 0} style="display:none;"{/if}> <td colspan="5">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td> <td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping}</td> </tr> {/if} {else} <tr class="cart_total_delivery"{if $total_shipping_tax_exc <= 0} style="display:none;"{/if}> <td colspan="5">{l s='Total shipping'}</td> <td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping_tax_exc}</td> </tr> {/if} {/if} <tr class="cart_total_voucher" {if $total_discounts == 0}style="display:none"{/if}> <td colspan="5"> {if $display_tax_label} {if $use_taxes && $priceDisplay == 0} {l s='Total vouchers (tax incl.):'} {else} {l s='Total vouchers (tax excl.)'} {/if} {else} {l s='Total vouchers'} {/if} </td> <td colspan="2" class="price-discount price" id="total_discount"> {if $use_taxes && $priceDisplay == 0} {assign var='total_discounts_negative' value=$total_discounts * -1} {else} {assign var='total_discounts_negative' value=$total_discounts_tax_exc * -1} {/if} {displayPrice price=$total_discounts_negative} </td> </tr> {if $use_taxes && $show_taxes} <tr class="cart_total_price"> <td colspan="5">{l s='Total (tax excl.)'}</td> <td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td> </tr> <tr class="cart_total_tax"> <td colspan="5">{l s='Total tax'}</td> <td colspan="2" class="price" id="total_tax">{displayPrice price=$total_tax}</td> </tr> {/if} <tr class="cart_total_price"> <td colspan="5" id="cart_voucher" class="cart_voucher"> {if $voucherAllowed} {if isset($errors_discount) && $errors_discount} <ul class="error"> {foreach $errors_discount as $k=>$error} <li>{$error|escape:'htmlall':'UTF-8'}</li> {/foreach} </ul> {/if} <form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher"> <fieldset> <p class="title_block"><label for="discount_name">{l s='Vouchers'}</label></p> <p class="discount_name_block"> <input type="text" class="discount_name" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" /> </p> <p class="submit"><input type="hidden" name="submitDiscount" /><input type="submit" name="submitAddDiscount" value="{l s='OK'}" class="button" /></p> </fieldset> </form> {if $displayVouchers} <p id="title" class="title_offers">{l s='Take advantage of our exclusive offers:'}</p> <div id="display_cart_vouchers"> {foreach $displayVouchers as $voucher} {if $voucher.code != ''}<span onclick="$('#discount_name').val('{$voucher.code}');return false;" class="voucher_name">{$voucher.code}</span> - {/if}{$voucher.name}<br /> {/foreach} </div> {/if} {/if} </td> {if $use_taxes} <td colspan="2" class="price total_price_container" id="total_price_container"> <p>{l s='Total'}</p> <span id="total_price">{displayPrice price=$total_price}</span> </td> {else} <td colspan="2" class="price total_price_container" id="total_price_container"> <p>{l s='Total'}</p> <span id="total_price">{displayPrice price=$total_price_without_tax}</span> </td> {/if} </tr> <tr class="cart_free_shipping"> <td colspan="5" style="white-space: normal;">{l s='Remaining amount to be added to your cart in order to obtain free shipping:'}</td> <td colspan="2" id="free_shipping" class="price">{displayPrice price=$amount_until_free_shipping}</td> </tr> </tfoot> <tbody> {assign var='odd' value=0} {foreach $products as $product} {assign var='productId' value=$product.id_product} {assign var='productAttributeId' value=$product.id_product_attribute} {assign var='quantityDisplayed' value=0} {assign var='odd' value=($odd+1)%2} {assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId) || count($gift_products)} {* Display the product line *} {include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first} {* Then the customized datas ones*} {if isset($customizedDatas.$productId.$productAttributeId)} {foreach $customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] as $id_customization=>$customization} <tr id="product_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}" class="product_customization_for_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval}{if $odd} odd{else} even{/if} customization alternate_item {if $product@last && $customization@last && !count($gift_products)}last_item{/if}"> <td></td> <td colspan="3"> {foreach $customization.datas as $type => $custom_data} {if $type == $CUSTOMIZE_FILE} <div class="customizationUploaded"> <ul class="customizationUploaded"> {foreach $custom_data as $picture} <li><img src="{$pic_dir}{$picture.value}_small" alt="" class="customizationUploaded" /></li> {/foreach} </ul> </div> {elseif $type == $CUSTOMIZE_TEXTFIELD} <ul class="typedText"> {foreach $custom_data as $textField} <li> {if $textField.name} {$textField.name} {else} {l s='Text #'}{$textField@index+1} {/if} {l s=':'} {$textField.value} </li> {/foreach} </ul> {/if} {/foreach} </td> <td class="cart_quantity" colspan="2"> {if isset($cannotModify) AND $cannotModify == 1} <span style="float:left">{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}</span> {else} <div class="cart_quantity_button"> <a rel="nofollow" class="cart_quantity_up" id="cart_quantity_up_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "add=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery}&id_customization={$id_customization}&token={$token_cart}")|escape:'html'}" title="{l s='Add'}"><img src="{$img_dir}icon/quantity_up.gif" alt="{l s='Add'}" width="14" height="9" /></a><br /> {if $product.minimal_quantity < ($customization.quantity -$quantityDisplayed) OR $product.minimal_quantity <= 1} <a rel="nofollow" class="cart_quantity_down" id="cart_quantity_down_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "add=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery}&id_customization={$id_customization}&op=down&token={$token_cart}")|escape:'html'}" title="{l s='Subtract'}"> <img src="{$img_dir}icon/quantity_down.gif" alt="{l s='Subtract'}" width="14" height="9" /> </a> {else} <a class="cart_quantity_down" style="opacity: 0.3;" id="cart_quantity_down_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}" href="#" title="{l s='Subtract'}"> <img src="{$img_dir}icon/quantity_down.gif" alt="{l s='Subtract'}" width="14" height="9" /> </a> {/if} </div> <input type="hidden" value="{$customization.quantity}" name="quantity_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}_hidden"/> <input size="2" type="text" value="{$customization.quantity}" class="cart_quantity_input" name="quantity_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}"/> {/if} </td> <td class="cart_delete"> {if isset($cannotModify) AND $cannotModify == 1} {else} <div> <a rel="nofollow" class="cart_quantity_delete" id="{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_customization={$id_customization}&id_address_delivery={$product.id_address_delivery}&token={$token_cart}")|escape:'html'}">{l s='Delete'}</a> </div> {/if} </td> </tr> {assign var='quantityDisplayed' value=$quantityDisplayed+$customization.quantity} {/foreach} {* If it exists also some uncustomized products *} {if $product.quantity-$quantityDisplayed > 0}{include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first}{/if} {/if} {/foreach} {assign var='last_was_odd' value=$product@iteration%2} {foreach $gift_products as $product} {assign var='productId' value=$product.id_product} {assign var='productAttributeId' value=$product.id_product_attribute} {assign var='quantityDisplayed' value=0} {assign var='odd' value=($product@iteration+$last_was_odd)%2} {assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId)} {assign var='cannotModify' value=1} {* Display the gift product line *} {include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first} {/foreach} </tbody> {if sizeof($discounts)} <tbody> {foreach $discounts as $discount} <tr class="cart_discount {if $discount@last}last_item{elseif $discount@first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}"> <td class="cart_discount_name" colspan="3">{$discount.name}</td> <td class="cart_discount_price"><span class="price-discount"> {if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if} </span></td> <td class="cart_discount_delete">1</td> <td class="cart_discount_price"> <span class="price-discount price">{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}</span> </td> <td class="price_discount_del"> {if strlen($discount.code)}<a href="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}?deleteDiscount={$discount.id_discount}" class="price_discount_delete" title="{l s='Delete'}">{l s='Delete'}</a>{/if} </td> </tr> {/foreach} </tbody> {/if} </table> </div> {if $show_option_allow_separate_package} <p> <input type="checkbox" name="allow_seperated_package" id="allow_seperated_package" {if $cart->allow_seperated_package}checked="checked"{/if} autocomplete="off"/> <label for="allow_seperated_package">{l s='Send available products first'}</label> </p> {/if} {if !$opc} {if Configuration::get('PS_ALLOW_MULTISHIPPING')} <p> <input type="checkbox" {if $multi_shipping}checked="checked"{/if} id="enable-multishipping" /> <label for="enable-multishipping">{l s='I would like to specify a delivery address for each individual product.'}</label> </p> {/if} {/if} <div id="HOOK_SHOPPING_CART">{$HOOK_SHOPPING_CART}</div> {* Define the style if it doesn't exist in the PrestaShop version*} {* Will be deleted for 1.5 version and more *} {if !isset($addresses_style)} {$addresses_style.company = 'address_company'} {$addresses_style.vat_number = 'address_company'} {$addresses_style.firstname = 'address_name'} {$addresses_style.lastname = 'address_name'} {$addresses_style.address1 = 'address_address1'} {$addresses_style.address2 = 'address_address2'} {$addresses_style.city = 'address_city'} {$addresses_style.country = 'address_country'} {$addresses_style.phone = 'address_phone'} {$addresses_style.phone_mobile = 'address_phone_mobile'} {$addresses_style.alias = 'address_title'} {/if} {if ((!empty($delivery_option) AND !isset($virtualCart)) OR $delivery->id OR $invoice->id) AND !$opc} <div class="order_delivery clearfix"> {if !isset($formattedAddresses) || (count($formattedAddresses.invoice) == 0 && count($formattedAddresses.delivery) == 0) || (count($formattedAddresses.invoice.formated) == 0 && count($formattedAddresses.delivery.formated) == 0)} {if $delivery->id} <ul id="delivery_address" class="address item"> <li class="address_title">{l s='Delivery address'} <span class="address_alias">({$delivery->alias})</span></li> {if $delivery->company}<li class="address_company">{$delivery->company|escape:'htmlall':'UTF-8'}</li>{/if} <li class="address_name">{$delivery->firstname|escape:'htmlall':'UTF-8'} {$delivery->lastname|escape:'htmlall':'UTF-8'}</li> <li class="address_address1">{$delivery->address1|escape:'htmlall':'UTF-8'}</li> {if $delivery->address2}<li class="address_address2">{$delivery->address2|escape:'htmlall':'UTF-8'}</li>{/if} <li class="address_city">{$delivery->postcode|escape:'htmlall':'UTF-8'} {$delivery->city|escape:'htmlall':'UTF-8'}</li> <li class="address_country">{$delivery->country|escape:'htmlall':'UTF-8'} {if $delivery_state}({$delivery_state|escape:'htmlall':'UTF-8'}){/if}</li> </ul> {/if} {if $invoice->id} <ul id="invoice_address" class="address alternate_item"> <li class="address_title">{l s='Invoice address'} <span class="address_alias">({$invoice->alias})</span></li> {if $invoice->company}<li class="address_company">{$invoice->company|escape:'htmlall':'UTF-8'}</li>{/if} <li class="address_name">{$invoice->firstname|escape:'htmlall':'UTF-8'} {$invoice->lastname|escape:'htmlall':'UTF-8'}</li> <li class="address_address1">{$invoice->address1|escape:'htmlall':'UTF-8'}</li> {if $invoice->address2}<li class="address_address2">{$invoice->address2|escape:'htmlall':'UTF-8'}</li>{/if} <li class="address_city">{$invoice->postcode|escape:'htmlall':'UTF-8'} {$invoice->city|escape:'htmlall':'UTF-8'}</li> <li class="address_country">{$invoice->country|escape:'htmlall':'UTF-8'} {if $invoice_state}({$invoice_state|escape:'htmlall':'UTF-8'}){/if}</li> </ul> {/if} {else} {foreach from=$formattedAddresses key=k item=address} <ul class="address {if $address@last}last_item{elseif $address@first}first_item{/if} {if $address@index % 2}alternate_item{else}item{/if}"> <li class="address_title">{if $k eq 'invoice'}{l s='Invoice address'}{elseif $k eq 'delivery' && $delivery->id}{l s='Delivery address'}{/if}{if isset($address.object.alias)} <span class="address_alias">({$address.object.alias})</span>{/if}</li> {foreach $address.ordered as $pattern} {assign var=addressKey value=" "|explode:$pattern} <li> {foreach $addressKey as $key} <span class="{if isset($addresses_style[$key])}{$addresses_style[$key]}{/if}"> {if isset($address.formated[$key])} {$address.formated[$key]|escape:'htmlall':'UTF-8'} {/if} </span> {/foreach} </li> {/foreach} </ul> {/foreach} <br class="clear"/> {/if} </div> {/if} <p class="cart_navigation"> {if !$opc} <a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&back={$back}')}{else}{$link->getPageLink('order', true, NULL, 'step=1')}{/if}" class="exclusive standard-checkout" title="{l s='Next'}">{l s='Next'} »</a> {if Configuration::get('PS_ALLOW_MULTISHIPPING')} <a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&back={$back}')}{else}{$link->getPageLink('order', true, NULL, 'step=1')}{/if}&multi-shipping=1" class="multishipping-button multishipping-checkout exclusive" title="{l s='Next'}">{l s='Next'} »</a> {/if} {/if} <a href="{if (isset($smarty.server.HTTP_REFERER) && strstr($smarty.server.HTTP_REFERER, 'order.php')) || isset($smarty.server.HTTP_REFERER) && strstr($smarty.server.HTTP_REFERER, 'order-opc') || !isset($smarty.server.HTTP_REFERER)}{$link->getPageLink('index')}{else}{$smarty.server.HTTP_REFERER|escape:'htmlall':'UTF-8'|secureReferrer}{/if}" class="button_large" title="{l s='Continue shopping'}">« {l s='Continue shopping'}</a> </p> {if !empty($HOOK_SHOPPING_CART_EXTRA)} <div class="clear"></div> <div class="cart_navigation_extra"> <div id="HOOK_SHOPPING_CART_EXTRA">{$HOOK_SHOPPING_CART_EXTRA}</div> </div> {/if} {/if}
  9. Hi Pascal, thank you for your answer. Yes I meant this file themes/<your theme folder>/shopping-cart.tpl To a file shopping-cart.tpl i tried to add this code (I took the code from prestashop 1.4 - file shopping-cart.tpl) {if $use_taxes} <td colspan="2" class="price total_price_container" id="total_price_container"> <p>{l s='Total'}</p> <span id="total_price">{displayPrice price=$total_price}</span> </td> {else} <td colspan="2" class="price total_price_container" id="total_price_container"> <p>{l s='Total'}</p> <span id="total_price">{displayPrice price=$total_price_without_tax}</span> </td> {/if} </tr> <tr class="cart_free_shipping"> <td colspan="5" style="white-space: normal;">{l s='Remaining amount to be added to your cart in order to obtain free shipping:'}</td> <td colspan="2" id="free_shipping" class="price">{displayPrice price=$free_ship}</td> </tr> </tfoot> <tbody> this code i added to the file shopping-cart.tpl <tr class="cart_free_shipping"> <td colspan="5" style="white-space: normal;">{l s='Remaining amount to be added to your cart in order to obtain free shipping:'}</td> <td colspan="2" id="free_shipping" class="price">{displayPrice price=$free_ship}</td> </tr> But this code in Prestashop version 1.5 does not work thx Petr
  10. Hi Pascal, thank you for your answer. In the shopping cart is displayed free shipping. I have modified code correctly in themes/<your theme folder/modules/blockcart/blockcart.tpl. just do not know how to get the remaining amount for free shipping to the file: themes/<your theme folder/shopping-cart.tpl I attach a screenshot
  11. Hi Pascal, I modified files according to your post #7. The shopping cart shows me free shipping. But after clicking the checkout and the redirection to the shopping-cart summary still displays in free shipping 0.00 €. I added to the file themes>default>shopping-cart.tpl code: <tr class="cart_free_shipping"> <td colspan="5">{l s='Remaining amount to be added to your cart in order to obtain free shipping:'}</td> <td colspan="2" class="price" id="free_shipping">{displayPrice price=$free_ship}</td> </tr> just do not know if this code is correct - displayPrice price=$free_ship ? Could you advise me please ?
  12. Hello everyone, does anyone know how to remove html entities for manual order creation. Entity appears when writing characters š ý á í é ú. Letters changes in the entity when you click outside the text box on manual orders field - Order message. Entities are stored in the database – table ps_message. For these characters: ě č ř ž ů the html entities not displayed (these characters are ok). Does anyone know how to remove these html entities? Prestashop 1.5.6.0 Please advice me
  13. Free shipping in the cart displays. But what added to the file shopping-cart.tpl that the remaining amount of free shipping to appear here? I try added this code: <tr class="cart_free_shipping"> <td colspan="5">{l s='Remaining amount to be added to your cart in order to obtain free shipping:'}</td> <td colspan="2" class="price" id="free_shipping">{displayPrice price=$free_ship}</td> </tr> but instead amounts to free shipping is here 0. When you change the number of products line disappears please advise me
  14. Hi Vekia, Great thanks Now everything works Would I just wanted to ask if the code is correct ? in function public function viewAccess($disable = false) { if (!Configuration::updateValue('MY_STATUS', (int)Tools::getValue('choose_my_status'))) return false; It has to be here: if (!Configuration::updateValue('MY_STATUS', '1')) return false; beginning of the php file public function viewAccess($disable = false) { $result = true; return $result; } function install() { if (parent::install() == false) { return false; } if (!Configuration::updateValue('MYPOKUS_NAME', 'John Malinski')) return false; if (!Configuration::updateValue('MY_STATUS', (int)Tools::getValue('choose_my_status'))) return false; And code on the end of the php file Configuration::updateValue('MY_STATUS', Tools::getValue('choose_my_status')); It has to be here: Configuration::updateValue('MY_STATUS', $_POST['MYPOKUS_pole2']); private function _postProcess() { $imageInput = 'MY_imagefile'; if (isset($_FILES[$imageInput]['tmp_name']) AND !empty($_FILES[$imageInput]['tmp_name'])) { // Delete old image if (file_exists($this->_image_name)) @unlink($this->_image_name); if (is_uploaded_file($_FILES[$imageInput]['tmp_name'])) { move_uploaded_file($_FILES[$imageInput]['tmp_name'], _PS_ROOT_DIR_ . '/modules/' . $this->name . '/img/' . $_FILES[$imageInput]['name']); Configuration::updateValue('MY_STAMP', $_FILES[$imageInput]['name']); } } if (Tools::isSubmit('submitMYPOKUS')) { Configuration::updateValue('MYPOKUS_NAME', $_POST['MYPOKUS_pole1']); Configuration::updateValue('MY_STATUS', Tools::getValue('choose_my_status')); In the function on begin php file public function viewAccess($disable = false) { and function private function _postProcess() { on the end php file have the same row Configuration::updateValue('MY_STATUS', Tools::getValue('choose_my_status')); This code is correct ? It is all right and the end of the row ? Tools::getValue('choose_my_status') parameter 'choose_my_status' is not unnecessary ? Thank you very much for the quick help
  15. Hi Vekia, thanks for the answer. It should be the choice No: <option value="0" or <option value="1" ? <option value="0" '.(Configuration::get('MY_STATUS')==0 ? 'selected="selected"' : '').'>'.$this->l('No').'</option> This is the beginning of the file php public function viewAccess($disable = false) { $result = true; return $result; } function install() { if (parent::install() == false) { return false; } if (!Configuration::updateValue('MYPOKUS_NAME', 'John Malinski')) return false; if (!Configuration::updateValue('MY_STATUS', (int)Tools::getValue('choose_my_status'))) return false; if (!$id_tab) { $tab = new Tab(); $tab->class_name = $this->tabClassName; $tab->id_parent = Tab::getIdFromClassName($this->tabParentName); $tab->module = $this->name; $languages = Language::getLanguages(); foreach ($languages as $language) $tab->name[$language['id_lang']] = $this->displayName; $tab->add(); $this->installConfig(); $this->installConfig2(); $this->pdfshopname(); } return true; } Thi is the middle the php file public function renderForm() { $this->_image_name = Configuration::get('MY_STAMP'); if (!empty($_POST)) $this->_postProcess(); $this->_html .= ' <form method="post" action="" enctype="multipart/form-data"> <fieldset><legend><img src="../img/admin/appearance.gif" /> ' . $this->l('Settings') . '</legend> <div style="clear: both; padding-top:15px;"> <label>' . $this->l('Name:') . '</label> <div class="margin-form" style="padding-top:5px;"> <input type="text" size="50" name="MYPOKUS_pole1" value="' . Configuration::get('MYPOKUS_NAME') . '" /> <p style="clear:both">' . $this->l('Name') . '</p> </div> </div> <div style="clear: both; padding-top:15px;"> <label>'.$this->l('Choose status:').'</label> <div class="margin-form" style="padding-top:5px;"> <select id="choose_my_status" name="choose_my_status"> <option value="1" '.(Configuration::get('MY_STATUS')==1 ? 'selected="selected"' : '').'>'.$this->l('Yes').'</option> <option value="1" '.(Configuration::get('MY_STATUS')==0 ? 'selected="selected"' : '').'>'.$this->l('No').'</option> </select> </div> </div> This is the end of file php private function _postProcess() { $imageInput = 'MY_imagefile'; if (isset($_FILES[$imageInput]['tmp_name']) AND !empty($_FILES[$imageInput]['tmp_name'])) { // Delete old image if (file_exists($this->_image_name)) @unlink($this->_image_name); if (is_uploaded_file($_FILES[$imageInput]['tmp_name'])) { move_uploaded_file($_FILES[$imageInput]['tmp_name'], _PS_ROOT_DIR_ . '/modules/' . $this->name . '/img/' . $_FILES[$imageInput]['name']); Configuration::updateValue('MY_STAMP', $_FILES[$imageInput]['name']); } } if (Tools::isSubmit('submitMYPOKUS')) { Configuration::updateValue('MYPOKUS_NAME', $_POST['MYPOKUS_pole1']); Configuration::updateValue('MY_STATUS', Tools::getValue('choose_my_status')); $this->_html .= $this->displayConfirmation($this->l('Settings updated')); } }
×
×
  • Create New...