Jump to content

web-port.pl

Members
  • Posts

    28
  • Joined

  • Last visited

About web-port.pl

  • Birthday 06/05/1983

Contact Methods

Profile Information

  • Location
    Kudowa Zdrój
  • Activity
    Developer

Recent Profile Visitors

926 profile views

web-port.pl's Achievements

Newbie

Newbie (1/14)

6

Reputation

1

Community Answers

  1. One Tip Put: {hook h='displayAfterBodyOpeningTag'} {hook h='displayBeforeBodyClosingTag'} Together in header.tpl under BODY tag less problems!
  2. This only work only for one custom on product page (THX for niltona) minimalism for validation field :): Mod for 3 files no more: - product-add-to-cart.tpl A. Make false button in file example: <div id="ajouter_panier" class="ajouter_panier"> Ajouter au panier </div> B. Style button in CSS and hide original buttton - ps_shoppingcart.js A. Add funciotn to file: $('.product-message').keyup(function () { this.value = this.value.replace(/[^0-9\.]/g,''); }); $( "#ajouter_panier" ).on( "click", function() { var warnning_message = 'S’il vous plaît entrez la taille Désirée'; if( !$('.product-message').val() ) { //$('.product-message').addClass('warning'); alert(warnning_message); } else { var formActionAttribute_url = $(".product-customization form").attr('action'); var formActionAttribute_name_field = $(".product-customization form .product-message").attr("name"); var formActionAttribute_value_field = $('.product-message').val(); var submitCustomizedData = 'submitCustomizedData'; var data = {}; data[formActionAttribute_name_field] = formActionAttribute_value_field; data[submitCustomizedData] = 'submitCustomizedData'; $.post( formActionAttribute_url, data ).done(function( data ) { $('.add-to-cart').removeAttr('disabled'); $('.add-to-cart').click(); }); } });
  3. If you want i can write free module to do this but i need a little help in coding ...
  4. Works perfect on default theme in prestashop 1.6.0.9 and 1.6.0.14 tested. Please provied url of shop.
  5. Please post every SOLUTION to every version Prestashop
  6. cut and copy before and after line /*----------------------------------------------------------------------------------------------*/ to desired function in JS file
  7. it can be done global in file controllers\admin\AdminProductsController.php, search for $this->allow_export = true; and change for false
×
×
  • Create New...