Jump to content

sidro

Global Moderators
  • Posts

    299
  • Joined

  • Last visited

2 Followers

About sidro

  • Birthday 08/02/1985

Profile Information

  • Activity
    Agency

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

sidro's Achievements

Newbie

Newbie (1/14)

6

Reputation

  1. replace in blocktopmenu.php $html = ''; foreach ($categories as $key => $category) { if ($category['level_depth'] > 1) { with: $html = ''; foreach ($categories as $key => $category) { if ($category['level_depth'] > 0) {
  2. fix by deleting category id_category=2 from all mysql tables (ps_category, ps_category_group, ps_category_lang, ps_category_product, ps_category_shop) and set root id_category=1 as is_root_category =1 also put parent category (ps_category) on other subcategories assigned before to category 2 ; assign them to parent category 1 after deletion of category2
  3. other way to remove just new condition: in \themes\default-bootstrap\product.tpl replace <p id="product_condition"> <label>{l s='Condition:'} </label> {if $product->condition == 'new'} <link itemprop="itemCondition" href="https://schema.org/NewCondition"/> <span class="editable">{l s='New product'}</span> {elseif $product->condition == 'used'} <link itemprop="itemCondition" href="https://schema.org/UsedCondition"/> <span class="editable">{l s='Used'}</span> {elseif $product->condition == 'refurbished'} <link itemprop="itemCondition" href="https://schema.org/RefurbishedCondition"/> <span class="editable">{l s='Refurbished'}</span> {/if} </p> with: <p id="product_condition"> {if $product->condition == 'new'} <link itemprop="itemCondition" href="https://schema.org/NewCondition"/> <span class="editable"><label>{l s=''} </label>{l s=''}</span> {elseif $product->condition == 'used'} <link itemprop="itemCondition" href="https://schema.org/UsedCondition"/> <span class="editable"><label>{l s='Condition:'} </label>{l s='Used'}</span> {elseif $product->condition == 'refurbished'} <link itemprop="itemCondition" href="https://schema.org/RefurbishedCondition"/> <span class="editable"><label>{l s='Condition:'} </label>{l s='Refurbished'}</span> {/if} </p>
  4. follow this tutorial and you will succed ! tested on 1.6.1.11beta version! https://www.prestashop.com/forums/topic/368680-scroll-bar-in-blockcart-module/?p=2488737
  5. follow this tutorial and you will succed ! tested on 1.6.1.11beta version! themes\your_theme\css\modules\blockcart add .scrollvertical{ overflow-y:scroll; height:300px; } height: your desire height of cart extended themes\your_theme\modules\blockcart\blockcart.tpl replace this : <dl class="products"> with: <dl class="products {if $products|@count>3}scrollvertical{/if}"> count> number of products you want scroll to begin with. themes\your_theme\js\modules\blockcart\ajax-cart.js replace this : //send the ajax request to the server $.ajax({ type: 'POST', headers: { "cache-control": "no-cache" }, url: baseUri + '?rand=' + new Date().getTime(), async: true, cache: false, dataType : "json", data: 'controller=cart&add=1&ajax=true&qty=' + ((quantity && quantity != null) ? quantity : '1') + '&id_product=' + idProduct + '&token=' + static_token + ( (parseInt(idCombination) && idCombination != null) ? '&ipa=' + parseInt(idCombination): '' + '&id_customization=' + ((typeof customizationId !== 'undefined') ? customizationId : 0)), success: function(jsonData,textStatus,jqXHR) { // add appliance to whishlist module if (whishlist && !jsonData.errors) WishlistAddProductCart(whishlist[0], idProduct, idCombination, whishlist[1]); if (!jsonData.hasError) { if (contentOnly) window.parent.ajaxCart.updateCartInformation(jsonData, addedFromProductPage); else ajaxCart.updateCartInformation(jsonData, addedFromProductPage); if (jsonData.crossSelling) $('.crossseling').html(jsonData.crossSelling); if (idCombination) $(jsonData.products).each(function(){ if (this.id != undefined && this.id == parseInt(idProduct) && this.idCombination == parseInt(idCombination)) if (contentOnly) window.parent.ajaxCart.updateLayer(this); else ajaxCart.updateLayer(this); }); else $(jsonData.products).each(function(){ if (this.id != undefined && this.id == parseInt(idProduct)) if (contentOnly) window.parent.ajaxCart.updateLayer(this); else ajaxCart.updateLayer(this); }); if (contentOnly) parent.$.fancybox.close(); } else { if (contentOnly) window.parent.ajaxCart.updateCart(jsonData); else ajaxCart.updateCart(jsonData); if (addedFromProductPage) $('#add_to_cart button').removeProp('disabled').removeClass('disabled'); else $(callerElement).removeProp('disabled'); } emptyCustomizations(); with: //send the ajax request to the server $.ajax({ type: 'POST', headers: { "cache-control": "no-cache" }, url: baseUri + '?rand=' + new Date().getTime(), async: true, cache: false, dataType : "json", data: 'controller=cart&add=1&ajax=true&qty=' + ((quantity && quantity != null) ? quantity : '1') + '&id_product=' + idProduct + '&token=' + static_token + ( (parseInt(idCombination) && idCombination != null) ? '&ipa=' + parseInt(idCombination): '' + '&id_customization=' + ((typeof customizationId !== 'undefined') ? customizationId : 0)), success: function(jsonData,textStatus,jqXHR) { // add appliance to whishlist module if (whishlist && !jsonData.errors) WishlistAddProductCart(whishlist[0], idProduct, idCombination, whishlist[1]); if (!jsonData.hasError) { if (contentOnly) window.parent.ajaxCart.updateCartInformation(jsonData, addedFromProductPage); else ajaxCart.updateCartInformation(jsonData, addedFromProductPage); if (jsonData.crossSelling) $('.crossseling').html(jsonData.crossSelling); if (idCombination) $(jsonData.products).each(function(){ if (this.id != undefined && this.id == parseInt(idProduct) && this.idCombination == parseInt(idCombination)) if (contentOnly) window.parent.ajaxCart.updateLayer(this); else ajaxCart.updateLayer(this); }); else $(jsonData.products).each(function(){ if (this.id != undefined && this.id == parseInt(idProduct)) if (contentOnly) window.parent.ajaxCart.updateLayer(this); else ajaxCart.updateLayer(this); }); if (contentOnly) parent.$.fancybox.close(); } else { if (contentOnly) window.parent.ajaxCart.updateCart(jsonData); else ajaxCart.updateCart(jsonData); if (addedFromProductPage) $('#add_to_cart button').removeProp('disabled').removeClass('disabled'); else $(callerElement).removeProp('disabled'); } /* JS Scroll Vertical */ if($('.cart_block_list:first dl.products dt').length > 2) $('.cart_block_list:first dl.products').addClass('scrollvertical'); else $('.cart_block_list:first dl.products').removeClass('scrollvertical'); /* JS Scroll Vertical */ emptyCustomizations(); and in the same file themes\your_theme\js\modules\blockcart\ajax-cart.js replace this : //remove a product from the cart via ajax remove : function(idProduct, idCombination, customizationId, idAddressDelivery){ //send the ajax request to the server $.ajax({ type: 'POST', headers: { "cache-control": "no-cache" }, url: baseUri + '?rand=' + new Date().getTime(), async: true, cache: false, dataType : "json", data: 'controller=cart&delete=1&id_product=' + idProduct + '&ipa=' + ((idCombination != null && parseInt(idCombination)) ? idCombination : '') + ((customizationId && customizationId != null) ? '&id_customization=' + customizationId : '') + '&id_address_delivery=' + idAddressDelivery + '&token=' + static_token + '&ajax=true', success: function(jsonData) { ajaxCart.updateCart(jsonData); if ($('body').attr('id') == 'order' || $('body').attr('id') == 'order-opc') deleteProductFromSummary(idProduct+'_'+idCombination+'_'+customizationId+'_'+idAddressDelivery); }, with: //remove a product from the cart via ajax remove : function(idProduct, idCombination, customizationId, idAddressDelivery){ //send the ajax request to the server $.ajax({ type: 'POST', headers: { "cache-control": "no-cache" }, url: baseUri + '?rand=' + new Date().getTime(), async: true, cache: false, dataType : "json", data: 'controller=cart&delete=1&id_product=' + idProduct + '&ipa=' + ((idCombination != null && parseInt(idCombination)) ? idCombination : '') + ((customizationId && customizationId != null) ? '&id_customization=' + customizationId : '') + '&id_address_delivery=' + idAddressDelivery + '&token=' + static_token + '&ajax=true', success: function(jsonData) { ajaxCart.updateCart(jsonData); if ($('body').attr('id') == 'order' || $('body').attr('id') == 'order-opc') deleteProductFromSummary(idProduct+'_'+idCombination+'_'+customizationId+'_'+idAddressDelivery); /* JS Scroll Vertical */ if(($('.cart_block_list:first dl.products dt').length-1) > 2) $('.cart_block_list:first dl.products').addClass('scrollvertical'); else $('.cart_block_list:first dl.products').removeClass('scrollvertical'); /* JS Scroll Vertical */ }, clear cache / force recompile to see changes
  6. Solved this way : replace : <section class="blockcategories_footer footer-block col-xs-12 col-sm-2"> with: <section class="footer-block col-xs-12 col-sm-2"> file : prestashop\themes\default-bootstrap\modules\blockcategories\blockcategories_footer.tpl default-bootstrap or your theme or leave this file intact: prestashop\themes\default-bootstrap\modules\blockcategories\blockcategories_footer.tpl and in the \themes\your-theme\css\global.css file replace this: .footer-container #footer .blockcategories_footer { clear: left; } with this : .footer-container #footer .blockcategories_footer ul li {float:left; display:inline-block; width:50%}
  7. Solved this way : replace : <section class="blockcategories_footer footer-block col-xs-12 col-sm-2"> with: <section class="footer-block col-xs-12 col-sm-2"> file : prestashop\themes\default-bootstrap\modules\blockcategories\blockcategories_footer.tpl default-bootstrap or your theme
  8. also when importing with link rewrite if doesn't have cat id; it gives same error. import without link rw no error at all
  9. .sf-menu { margin: auto; in superfish-modified.css
  10. din fisierele astea poti sterge campurile si poti modifica care sa fie obligatorii si care nu. cele obligatorii au * (stelute). …/prestashop/themes/prestashop/authentification.tpl ..../prestashop/themes/prestashop/order-opc-new-account.tpl Campuri obligatorii sunt marcate asa: <sup>*</sup>{l s='Required field'} daca nu vrei sa fie obligatorii stergi <sup>*</sup> de la sfarsitul paragrafului campului respectiv si inlocuiesti <p class="required text"> cu <p class="text"> Vrei sa stergi nr. de tel. fix; stergi urmatoarele: <p class="text"> <label for="phone_invoice">{l s='Home phone'} </label> <input type="text" class="text" name="phone_invoice" id="phone_invoice" value="" /> <sup>*</sup> </p>
  11. interesant.... de unde le ai ??? :cheese: sunt pentru versiuni pana la 1.3 inclusiv
  12. fisierele anterioare erau pentru versiuni prestashop pana la 1.3 si 1.3 inclusiv. pentru 1.4 este necesara modificarea urmatoarelor fisiere: 1. …/prestashop/classes/Address.php 2. …/prestashop/adminXXX/tabs/AdminAddresses.php 3. …/prestashop/themes/prestashop/address.tpl 4. …/prestashop/themes/prestashop/authentification.tpl 5. ../prestashop/themes/prestashop/order-opc-new-account.tpl 5. pdf Momentan ... realizat... in teste pe 1.4.2.5 update 12.2012 : functional pe v1.4.6.2
×
×
  • Create New...