Kimsion Posted June 15, 2013 Share Posted June 15, 2013 Hi, I have make a website for my company , it is very good and beautiful for using Prestashop but I have found the problem, it is about the search and reference part About Search Bug For example one of my product's model number is T-509 If I just input the name T-509, and I search 509, the stupid search cannot find it...... I need to input T509 or 509 in the reference part, the search can find it out About the reference OK....I decide to input more information in reference part, for the purpose for search. but can I hide this "Reference" part? Can you give me a hand? Link to comment Share on other sites More sharing options...
vekia Posted June 15, 2013 Share Posted June 15, 2013 to hide reference on product page: open the product.tpl file located in your theme directory, you've got there something like: <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}> <label for="product_reference">{l s='Reference:'} </label> <span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span> </p> just remove / comment it, for example, like that: {* <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}> <label for="product_reference">{l s='Reference:'} </label> <span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span> </p> *} 2 Link to comment Share on other sites More sharing options...
NemoPS Posted June 15, 2013 Share Posted June 15, 2013 And in addition to what vekia said, you might want to add an alias for 509 (preferences->search->aliases tab) such as t509 2 Link to comment Share on other sites More sharing options...
Kimsion Posted June 17, 2013 Author Share Posted June 17, 2013 HI , Vekia I just follow your instruction, but I cannot find the code in product.tpl file located in theme directory I just find this reference}style="display: none;"{/if}> {l s='Reference:'} {$product->reference|escape:'htmlall':'UTF-8'} but after I remove / comment it, there is error page May I know how to do? Link to comment Share on other sites More sharing options...
vekia Posted June 17, 2013 Share Posted June 17, 2013 you have to be sure that you deleted it correctly, can you please paste here FULL content of the code related to the reference? (i mean if conditions near it) Link to comment Share on other sites More sharing options...
Kimsion Posted June 17, 2013 Author Share Posted June 17, 2013 {* * 2007-2012 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 * @copyright 2007-2012 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {include file="$tpl_dir./errors.tpl"} {if $errors|@count == 0} // <![CDATA[ // PrestaShop internal settings var currencySign = '{$currencySign|html_entity_decode:2:"UTF-8"}'; var currencyRate = '{$currencyRate|floatval}'; var currencyFormat = '{$currencyFormat|intval}'; var currencyBlank = '{$currencyBlank|intval}'; var taxRate = {$tax_rate|floatval}; var jqZoomEnabled = {if $jqZoomEnabled}true{else}false{/if}; //JS Hook var oosHookJsCodeFunctions = new Array(); // Parameters var id_product = '{$product->id|intval}'; var productHasAttributes = {if isset($groups)}true{else}false{/if}; var quantitiesDisplayAllowed = {if $display_qties == 1}true{else}false{/if}; var quantityAvailable = {if $display_qties == 1 && $product->quantity}{$product->quantity}{else}0{/if}; var allowBuyWhenOutOfStock = {if $allow_oosp == 1}true{else}false{/if}; var availableNowValue = '{$product->available_now|escape:'quotes':'UTF-8'}'; var availableLaterValue = '{$product->available_later|escape:'quotes':'UTF-8'}'; var productPriceTaxExcluded = {$product->getPriceWithoutReduct(true)|default:'null'} - {$product->ecotax}; var reduction_percent = {if $product->specificPrice AND $product->specificPrice.reduction AND $product->specificPrice.reduction_type == 'percentage'}{$product->specificPrice.reduction*100}{else}0{/if}; var reduction_price = {if $product->specificPrice AND $product->specificPrice.reduction AND $product->specificPrice.reduction_type == 'amount'}{$product->specificPrice.reduction|floatval}{else}0{/if}; var specific_price = {if $product->specificPrice AND $product->specificPrice.price}{$product->specificPrice.price}{else}0{/if}; var product_specific_price = new Array(); {foreach from=$product->specificPrice key=key_specific_price' item='specific_price_value'} product_specific_price['{$key_specific_price}] = '{$specific_price_value}'; {/foreach} var specific_currency = {if $product->specificPrice AND $product->specificPrice.id_currency}true{else}false{/if}; var group_reduction = '{$group_reduction}'; var default_eco_tax = {$product->ecotax}; var ecotaxTax_rate = {$ecotaxTax_rate}; var currentDate = '{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'}'; var maxQuantityToAllowDisplayOfLastQuantityMessage = {$last_qties}; var noTaxForThisProduct = {if $no_tax == 1}true{else}false{/if}; var displayPrice = {$priceDisplay}; var productReference = '{$product->reference|escape:'htmlall':'UTF-8'}'; var productAvailableForOrder = {if (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}'0'{else}'{$product->available_for_order}'{/if}; var productShowPrice = '{if !$PS_CATALOG_MODE}{$product->show_price}{else}0{/if}'; var productUnitPriceRatio = '{$product->unit_price_ratio}'; var idDefaultImage = {if isset($cover.id_image_only)}{$cover.id_image_only}{else}0{/if}; var stock_management = {$stock_management|intval}; {if !isset($priceDisplayPrecision)} {assign var='priceDisplayPrecision' value=2} {/if} {if !$priceDisplay || $priceDisplay == 2} {assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)} {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)} {elseif $priceDisplay == 1} {assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL, $priceDisplayPrecision)} {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} {/if} var productPriceWithoutReduction = '{$productPriceWithoutReduction}'; var productPrice = '{$productPrice}'; // Customizable field var img_ps_dir = '{$img_ps_dir}'; var customizationFields = new Array(); {assign var='imgIndex' value=0} {assign var='textFieldIndex' value=0} {foreach from=$customizationFields item='field' name='customizationFields'} {assign var="key" value="pictures_`$product->id`_`$field.id_customization_field`"} customizationFields[{$smarty.foreach.customizationFields.index|intval}] = new Array(); customizationFields[{$smarty.foreach.customizationFields.index|intval}][0] = '{if $field.type|intval == 0}img{$imgIndex++}{else}textField{$textFieldIndex++}{/if}'; customizationFields[{$smarty.foreach.customizationFields.index|intval}][1] = {if $field.type|intval == 0 && isset($pictures.$key) && $pictures.$key}2{else}{$field.required|intval}{/if}; {/foreach} // Images var img_prod_dir = '{$img_prod_dir}'; var combinationImages = new Array(); {if isset($combinationImages)} {foreach from=$combinationImages item='combination' key='combinationId' name='f_combinationImages'} combinationImages[{$combinationId}] = new Array(); {foreach from=$combination item='image' name='f_combinationImage'} combinationImages[{$combinationId}][{$smarty.foreach.f_combinationImage.index}] = {$image.id_image|intval}; {/foreach} {/foreach} {/if} combinationImages[0] = new Array(); {if isset($images)} {foreach from=$images item='image' name='f_defaultImages'} combinationImages[0][{$smarty.foreach.f_defaultImages.index}] = {$image.id_image}; {/foreach} {/if} // Translations var doesntExist = '{l s='This combination does not exist for this product. Please choose another.' js=1}'; var doesntExistNoMore = '{l s='This product is no longer in stock' js=1}'; var doesntExistNoMoreBut = '{l s='with those attributes but is available with others' js=1}'; var uploading_in_progress = '{l s='Uploading in progress, please wait...' js=1}'; var fieldRequired = '{l s='Please fill in all required fields, then save the customization.' js=1}'; {if isset($groups)} // Combinations {foreach from=$combinations key=idCombination item=combination} var specific_price_combination = new Array(); specific_price_combination['reduction_percent'] = {if $combination.specific_price AND $combination.specific_price.reduction AND $combination.specific_price.reduction_type == 'percentage'}{$combination.specific_price.reduction*100}{else}0{/if}; specific_price_combination['reduction_price'] = {if $combination.specific_price AND $combination.specific_price.reduction AND $combination.specific_price.reduction_type == 'amount'}{$combination.specific_price.reduction}{else}0{/if}; specific_price_combination['price'] = {if $combination.specific_price AND $combination.specific_price.price}{$combination.specific_price.price}{else}0{/if}; specific_price_combination['reduction_type'] = '{if $combination.specific_price}{$combination.specific_price.reduction_type}{/if}'; addCombination({$idCombination|intval}, new Array({$combination.list}), {$combination.quantity}, {$combination.price}, {$combination.ecotax}, {$combination.id_image}, '{$combination.reference|addslashes}', {$combination.unit_impact}, {$combination.minimal_quantity}, '{$combination.available_date}', specific_price_combination); {/foreach} {/if} {if isset($attributesCombinations)} // Combinations attributes informations var attributesCombinations = new Array(); {foreach from=$attributesCombinations key=id item=aC} tabInfos = new Array(); tabInfos['id_attribute'] = '{$aC.id_attribute|intval}'; tabInfos['attribute'] = '{$aC.attribute}'; tabInfos['group'] = '{$aC.group}'; tabInfos['id_attribute_group'] = '{$aC.id_attribute_group|intval}'; attributesCombinations.push(tabInfos); {/foreach} {/if} //]]> {include file="$tpl_dir./breadcrumb.tpl"} {if isset($adminActionDisplay) && $adminActionDisplay} {l s='This product is not visible to your customers.'} {/if} {if isset($confirmation) && $confirmation} {$confirmation} {/if} {if $have_image} {l s='View full size'} {else} {l s='View full size'} {/if} {if isset($images) && count($images) > 0} {if isset($images) && count($images) > 3}{l s='Previous'}{/if} {if isset($images)} {foreach from=$images item=image name=thumbnails} {assign var=imageIds value="`$product->id`-`$image.id_image`"} {/foreach} {/if} {if isset($images) && count($images) > 3}{l s='Next'}{/if} {/if} {if isset($images) && count($images) > 1} {l s='Display all pictures'} {/if} {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} {l s='Print'} {if $have_image && !$jqZoomEnabled} {/if} {$product->name|escape:'htmlall':'UTF-8'} {if $product->description_short OR $packItems|@count > 0} {if $product->description_short} {$product->description_short} {/if} {if $product->description} {l s='More details'} {/if} {if $packItems|@count > 0} {l s='Pack content'} {foreach from=$packItems item=packItem} {$packItem.pack_quantity} x {$packItem.name|escape:'htmlall':'UTF-8'} {$packItem.description_short} {/foreach} {/if} {/if} {*{if isset($colors) && $colors} {l s='Pick a color:' js=1} {foreach from=$colors key='id_attribute' item='color'} {if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}{/if} {/foreach} {/if}*} {if ($product->show_price AND !isset($restricted_country_mode)) OR isset($groups) OR $product->reference OR (isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS)} quantity > 0}class="hidden"{/if} action="{$link->getPageLink('cart')}" method="post"> {if isset($groups)} {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count} {$group.name|escape:'htmlall':'UTF-8'} : {assign var="groupName" value="group_$id_attribute_group"} {if ($group.group_type == 'select')} {$group_attribute|escape:'htmlall':'UTF-8'} {elseif ($group.group_type == 'color')} {assign var="default_colorpicker" value=""} {foreach from=$group.attributes key=id_attribute item=group_attribute} {if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')} {/if} {if ($group.default == $id_attribute)} {$default_colorpicker = $id_attribute} {/if} {/foreach} {elseif ($group.group_type == 'radio')} {foreach from=$group.attributes key=id_attribute item=group_attribute} {$group_attribute|escape:'htmlall':'UTF-8'} {/foreach} {/if} {/if} {/foreach} {/if} reference}style="display: none;"{/if}> {l s='Reference:'} {$product->reference|escape:'htmlall':'UTF-8'} quantity <= 0) OR $virtual OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> {l s='Quantity:'} minimal_quantity > 1}onkeyup="checkMinimalQuantity({$product->minimal_quantity});"{/if} /> minimal_quantity <= 1 OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> {l s='This product is not sold individually. You must select at least'} {$product->minimal_quantity} {l s='quantity for this product.'} {if $product->minimal_quantity > 1} checkMinimalQuantity(); {/if} quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> {l s='Availability:'} quantity <= 0} class="warning_inline"{/if}> {if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if} {if ($display_qties == 1 && !$PS_CATALOG_MODE && $product->available_for_order)} quantity <= 0} style="display: none;"{/if}> {$product->quantity|intval} quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='item in stock'} quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'} {/if} quantity > 0} style="display: none;"{/if}> {$HOOK_PRODUCT_OOS} quantity > $last_qties OR $product->quantity <= 0) OR $allow_oosp OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'} {if $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {if $product->online_only} {l s='Online only'} {/if} {if !$priceDisplay || $priceDisplay == 2} {assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)} {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)} {elseif $priceDisplay == 1} {assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL, $priceDisplayPrecision)} {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} {/if} {if $priceDisplay >= 0 && $priceDisplay <= 2} {convertPrice price=$productPrice} {/if} {if $product->on_sale} {l s='On sale!'} {elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutReduction > $productPrice} {l s='Reduced price!'} {/if} {if $priceDisplay == 2} {convertPrice price=$product->getPrice(false, $smarty.const.NULL)} {l s='tax excl.'} {/if} specificPrice OR $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}>{if $product->specificPrice AND $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if} specificPrice OR $product->specificPrice.reduction_type != 'amount' && $product->specificPrice.reduction|intval ==0} style="display:none"{/if}>{if $product->specificPrice AND $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|intval !=0}-{convertPrice price=$product->specificPrice.reduction|floatval}{/if} {if $product->specificPrice AND $product->specificPrice.reduction} {if $priceDisplay >= 0 && $priceDisplay <= 2} {if $productPriceWithoutReduction > $productPrice} {convertPrice price=$productPriceWithoutReduction} {/if} {/if} {/if} {if $packItems|@count && $productPrice < $product->getNoPackPrice()} {l s='instead of'} {convertPrice price=$product->getNoPackPrice()} {/if} {if $product->ecotax != 0} {l s='include'} {if $priceDisplay == 2}{$ecotax_tax_exc|convertAndFormatPrice}{else}{$ecotax_tax_inc|convertAndFormatPrice}{/if} {l s='for green tax'} {if $product->specificPrice AND $product->specificPrice.reduction} {l s='(not impacted by the discount)'} {/if} {/if} {if !empty($product->unity) && $product->unit_price_ratio > 0.000000} {math equation="pprice / punit_price" pprice=$productPrice punit_price=$product->unit_price_ratio assign=unit_price} {convertPrice price=$unit_price} {l s='per'} {$product->unity|escape:'htmlall':'UTF-8'} {/if} {*close if for show price*} {/if} {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} {l s='Add to cart'} {else} {/if} {if isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS}{$HOOK_PRODUCT_ACTIONS}{/if} {/if} {if isset($HOOK_EXTRA_RIGHT) && $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if} {if (isset($quantity_discounts) && count($quantity_discounts) > 0)} {l s='Quantity discount'} {l s='product'} {l s='from (qty)'} {l s='discount'} {foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'} {if (isset($quantity_discount.attributes) && ($quantity_discount.attributes))} {$product->getProductName($quantity_discount.id_product, $quantity_discount.id_product_attribute)} {else} {$product->getProductName($quantity_discount.id_product)} {/if} {$quantity_discount.quantity|intval} {if $quantity_discount.price >= 0 OR $quantity_discount.reduction_type == 'amount'} -{convertPrice price=$quantity_discount.real_value|floatval} {else} -{$quantity_discount.real_value|floatval}% {/if} {/foreach} {/if} {if isset($HOOK_PRODUCT_FOOTER) && $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if} {if (isset($product) && $product->description) || (isset($features) && $features) || (isset($accessories) && $accessories) || (isset($HOOK_PRODUCT_TAB) && $HOOK_PRODUCT_TAB) || (isset($attachments) && $attachments) || isset($product) && $product->customizable} {if $product->description}{l s='More info'} {/if} {if $features}{l s='Data sheet'} {/if} {if $attachments}{l s='Download'} {/if} {if isset($accessories) AND $accessories}{l s='Accessories'} {/if} {if isset($product) && $product->customizable}{l s='Product customization'} {/if} {$HOOK_PRODUCT_TAB} {if isset($product) && $product->description} {$product->description} {/if} {if isset($features) && $features} {foreach from=$features item=feature} {if isset($feature.value)} {$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'} {/if} {/foreach} {/if} {if isset($attachments) && $attachments} {foreach from=$attachments item=attachment} {$attachment.name|escape:'htmlall':'UTF-8'} {$attachment.description|escape:'htmlall':'UTF-8'} {/foreach} {/if} {if isset($accessories) AND $accessories} {foreach from=$accessories item=accessory name=accessories_list} {if ($accessory.allow_oosp || $accessory.quantity > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode)} {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)} {$accessory.name|escape:'htmlall':'UTF-8'} {if $accessory.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} - {if $priceDisplay != 1}{displayWtPrice p=$accessory.price}{else}{displayWtPrice p=$accessory.price_tax_exc}{/if}{/if} {$accessory.description_short|strip_tags|truncate:400:'...'} {l s='View'} {if !$PS_CATALOG_MODE} {l s='Add to cart'} {/if} {/if} {/foreach} {/if} {if isset($product) && $product->customizable} {l s='After saving your customized product, remember to add it to your cart.'} {if $product->uploadable_files} {l s='Allowed file formats are: GIF, JPG, PNG'}{/if} {if $product->uploadable_files|intval} {l s='Pictures'} {counter start=0 assign='customizationField'} {foreach from=$customizationFields item='field' name='customizationFields'} {if $field.type == 0} {assign var='key' value='pictures_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} {if isset($pictures.$key)} {/if} {if !empty($field.name)}{$field.name}{else}{l s='Please select an image file from your hard drive'}{/if}{if $field.required}*{/if} {counter} {/if} {/foreach} {/if} {if $product->text_fields|intval} {l s='Text'} {counter start=0 assign='customizationField'} {foreach from=$customizationFields item='field' name='customizationFields'} {if $field.type == 1} {assign var='key' value='textFields_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} {if !empty($field.name)}{$field.name}{/if}{if $field.required}*{/if} {if isset($textFields.$key)}{$textFields.$key|stripslashes}{/if} {counter} {/if} {/foreach} {/if} * {l s='required fields'} {/if} {if isset($HOOK_PRODUCT_TAB_CONTENT) && $HOOK_PRODUCT_TAB_CONTENT}{$HOOK_PRODUCT_TAB_CONTENT}{/if} {/if} {if isset($packItems) && $packItems|@count > 0} {l s='Pack content'} {include file="$tpl_dir./product-list.tpl" products=$packItems} {/if} {/if} Link to comment Share on other sites More sharing options...
vekia Posted June 17, 2013 Share Posted June 17, 2013 it looks like you've got bug here: {/if} reference}style="display: none;"{/if}> {l s='Reference:'} {$product->reference|escape:'htmlall':'UTF-8'} exactly here: {/if} reference} what is this? Link to comment Share on other sites More sharing options...
NemoPS Posted June 17, 2013 Share Posted June 17, 2013 it looks like part of the template is missing. Was that supposed to be the default product.tpl? Link to comment Share on other sites More sharing options...
Kimsion Posted June 19, 2013 Author Share Posted June 19, 2013 Thanks mate, but it is really copied from the file...here is the file I put to this location.... http://www.hkoac.com/product.tpl Link to comment Share on other sites More sharing options...
vekia Posted June 19, 2013 Share Posted June 19, 2013 but your store with this fille works well? no 500 internal error? Link to comment Share on other sites More sharing options...
Kimsion Posted June 19, 2013 Author Share Posted June 19, 2013 work with no problem.....how can I fix it?? Link to comment Share on other sites More sharing options...
Kimsion Posted June 19, 2013 Author Share Posted June 19, 2013 my website www.kimsion.com but I found another problem, the "Preferences" in admim part has missing Link to comment Share on other sites More sharing options...
NemoPS Posted June 19, 2013 Share Posted June 19, 2013 THere definitely is something wrong. If you didn't edit core files, replace all of them with a fresh version (download the zip and copy over all folders BUT config) Link to comment Share on other sites More sharing options...
Adam Akhirat Posted January 24, 2014 Share Posted January 24, 2014 to hide reference on product page: open the product.tpl file located in your theme directory, you've got there something like: <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}> <label for="product_reference">{l s='Reference:'} </label> <span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span> </p> just remove / comment it, for example, like that: {* <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}> <label for="product_reference">{l s='Reference:'} </label> <span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span> </p> *} thankz a lot ! work great man =D Link to comment Share on other sites More sharing options...
vekia Posted January 24, 2014 Share Posted January 24, 2014 to hide reference on product page: open the product.tpl file located in your theme directory, you've got there something like: <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}> <label for="product_reference">{l s='Reference:'} </label> <span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span> </p> just remove / comment it, for example, like that: {* <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}> <label for="product_reference">{l s='Reference:'} </label> <span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span> </p> *} thankz a lot ! work great man =D hmmm your post is probably empty? you quoted me and... just nothing below quotation, can you write it once again? just worried that something doesnt work! Link to comment Share on other sites More sharing options...
Adam Akhirat Posted January 25, 2014 Share Posted January 25, 2014 hmmm your post is probably empty? you quoted me and... just nothing below quotation, can you write it once again? just worried that something doesnt work! Hello, i need help for setting for shipping cost i want to make : 1) shipping to USA is USD6.00 2) others(worldwide) is USD11.. hope someone can help me.. thank you Adam Link to comment Share on other sites More sharing options...
vekia Posted January 26, 2014 Share Posted January 26, 2014 it's easy to achieve, take a look: you can define cost of shipping based on continents http://doc.prestashop.com/display/PS15/Managing+Shipping Link to comment Share on other sites More sharing options...
Recommended Posts