Jump to content

vcopleutre

Members
  • Posts

    23
  • Joined

  • Last visited

About vcopleutre

  • Birthday 04/26/1992

Contact Methods

Profile Information

  • Location
    In my code (or bar)
  • First Name
    Vianney
  • Last Name
    Copleutre

Recent Profile Visitors

417 profile views

vcopleutre's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Collaborator Rare
  • One Year In Rare
  • Week One Done Rare
  • One Month Later Rare

Recent Badges

5

Reputation

  1. Getting back on my own post, proof that lacking of documentation is sometimes hard. So for people still on 1.6 and @MrEduar For common translations : (no module or admin) $_LANG['name_of_your_tpl_file_MD5_of_the_translation_needed'] = 'Your translation'; with : for example name_of_your_tpl_file : the name of your tpl without the .tpl MD5_of_the_translation_needed : https://www.md5hashgenerator.com/ Which is gonna give you : (example for string 'Text #' and tpl : shopping-cart.ajax.main.tpl) $_LANG['shopping-cart.ajax.main_2fb3b950fd7711136f7f251ae5fbdbdc'] = 'Texte n°'; Do not forget the underscore between the name of the tpl and the MD5 hash. Note : the file to update can be the main translation file or the one in your theme folder (ie : themes/theme_name/lang/fr.php) (change the iso code)
  2. Hi, Thank you for dedicating so much time to this issue. I'm glad people still trust ASM in PS 1.6 as this has became a priced feature in 1.7 (oh i'm watching you, greedy prestashop company.). You found the culprit in the differences of stock in ASM regarding "real stock" and "available for sales stock". I fully agree with you regarding your "solution 1" : I think that it's the best way to solve your problems and it's not "tricking" the system, just using it in a good way. 2 is a way too but "cleaner" for database. It forces users to create a process for updating orders (as everything else, it can be fully automated). But maybe the best solution for solving all these problems would be to create a property for order status named "valid" and to set this property to 0 for all non valid status, ex : cancelled, payment cancelled, etc... Then change the StockManager method line 478 $query->where('os.shipped != 1'); $query->where('o.valid = 1 OR (os.id_order_state != '.(int)Configuration::get('PS_OS_ERROR').' AND os.id_order_state != '.(int)Configuration::get('PS_OS_CANCELED').')'); to $query->where('os.shipped != 1 AND os.valid == 1'); What do you think about this ? 🙂 Vianney P.S. : I'm currently updating a full shop to ASM for over 900 products and my goal is to have a correct stock after having (automatically) updating all the products to ASM. Funny job
  3. Hi, Digging an old subject but since there are no answers on the web, it could be useful : To translate a template that you fetch, you have to add the translation in the language translation file. Exemple for this case : $_MODULE['<{testaccueil}prestashop>listcoupdecoeur_c91e4ee170226d66e90f99ba917e4c20'] = 'Vue rapide'; Cheers
  4. Salut tout le monde, Je ne sais pas ce que ça vaut mais j'ai créé ce fix sur notre boutique et pour le moment ça tient : https://github.com/PrestaShop/PrestaShop/issues/9686 Tenez moi au courant si chez vous aussi Vianney
  5. Hi NicoX, Thank your for your concern. Here is the procedure 1. Customer return item Nothing happend for the stock I use refund to return product and add it back to stock Everything's fine for the stock 2. I want a refund statuts I set my order in "refund" statuts Physical stock remains the same For Sales stock decrease (issue) 3. I don't know how to fix it so I change the stock I have one for sale (real stock 2) I want two for sale I add one for sale with ASM and i have to know that my real stock is not 3 but 2 4. How to come back to normal I set my oder in a new status I manually correct my stock (due to 3.3 !) So yes, I change the stock because after "fixing" (4.1) the issue, I have 3 for sale and 3 in stock. So it's better to check my real stock If you touch nothing at all, you don't have to correct the stock. Btw we use Prestashop 1.6.17 and we faced this problem. This version is not "that" old. For many e-sellers, 1.7 is not the way to go !
  6. Hi everybody, Important answer for everyone using ASM and having troubles between available stock for sale and real stock, the answer lies in the "refund" order status. The orders in this status are not taken into account for increasing the real stock but are taken into account for decreasing stock for sale (lol). Even if you specifically said that the product HAS BEEN returned. So to solve your issues, first create a new refund status with the same parameters as shipped for exemple and then set your refunded orders to this new status. Then you can correct the stock by doing an inventory and using advanced stock management manually to adjust the stock (through backoffice, not database). BEWARE : in some cases, you'll have to dig in ps_order_detail to change values in refunded or returned products to be able to recreate a return of a product (through order detail back office page, not return !!). It will help you to "add" a product available to sale, without changing the real stock. Backup your table before doing this, one never knows... Damned. Two years to find the root of the problem and find solution.
  7. Hi @Naldinho, First glance your slider images are too heavy. Compress them using 70-80% quality jpeg. Same for your images quality in categories. 150kb X number of images = too much to download. Last but not least, use CCC. Cheers
  8. Hi everyone, In order to increase the loading time on my site I want to delay some CSS/JS calls to improve my critical path. To limit the parallel downloads, my CCC is activated. My question is : How to exclude some CSS and JS files from being included in CCC ? I'd like to have on constant CCC file (which includes like global.css, product_files.css, etc... main css files) and other CSS files which would be called depends on the page. It would greatly increase the rendering speed of my site. Any ideas ? thx
  9. Un rien à la bourre mais je viens d'avoir le problème et ça peut aider : Si tu n'as pas le choix car ton js fait appel à des variables qui passent dans tes tpl (allo avis vérifiés, on pense à vous, merci de mettre à jour votre module) et bien tu peux mettre en place un petit timeout le temps que jQuery soit chargé. setTimeout(function(){ //Exemple de code qui appelle les variables tpl chez avisverifies maxpage = Math.ceil(counted_reviews / {/literal}{$avisverifies_nb_reviews|escape:'htmlall':'UTF-8'}{literal}) ; }, 2000); //wait 2s for jQuery to be loaded Attention, ça veut dire pas d'activation du code possible avant 2s ! Si ton jQuery est pas chargé d'ici là bah dommage ! Il faut aussi penser aux interactions de l'utilisateur (dans ce cas, un bouton)
  10. Maybe you just uploaded a smaller picture ? Without access to code, I can't say Inspect the element and look at the href of the picture, is it the same type of the others pictures (calling the same "type" means : "tm_home_default" or similar)
  11. Hi, As i said, to get your logo on center of your page you have to modify a tpl file : yourtheme/header.tpl You have then to wrap your logo and your blockcart in responsive parts of the bootstrap grid (col-xs- col-sm- etc...) like the exemple below ! <div class="col-lg-3"><!-- Here is the left part of the grid (width : 3 on large screen, on a 12 width grid) --> </div> <div class="col-lg-6"> <!-- Here is the middle part of the grid containing the logo (width : 6 on large screen, on a 12 width grid) --> <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="img-responsive" src="{$img_ps_dir}logo.png?{$img_update_time}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> </a> </div> <div class="col-lg-3"> <!-- Here is the right part of the grid containing your cart (width : 3 on large screen, on a 12 width grid) --> {hook h='displayTop' mod='blockcart'} </div> It should work for the last color... your website is in maintenance so I don't know ! cheers
  12. Hi First of all when you are done with the modifications of css files, check your website in private mode or do ctrl+f5, (chrome browser) it will wipe the cache and your browser will download the updated css files. For the colour of shooping cart : line 30 of blockcart.css (default-bootstrap/modules/blockcart) For the background bottom : theme8.css in modules/themeconfigurator/css/themes (line 189) (For the image, you already have one but it's very little and on large screen it's not perfect) For the logo, check tpl file For the price, i let you search, this way you'll learn more
  13. If you use bootstrap you can try to change the header.tpl file in your theme with code like this : <div class="col-lg-3"> {hook h='diplayTop' mod='nameofthemoduleyouwanthere'} </div> <div class="col-lg-6"> <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="img-responsive" src="{$img_ps_dir}logo.png?{$img_update_time}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> </a> </div> <div class="col-lg-3"> {hook h='displayTop' mod='blockcart'} </div> Note : the module you want to display should be hooked to displayTop. Note 2 : try to change the tpl of the modules (themes/modules/nameofthemodule/) to be sure they fit with the space they are allowed to use (if it doesn't existe, create it by copying the tpl files in www/modules/nameofthemodule/ (if tpl are in folders, keep the folders) Note 3 : add some col-xs-12 depending on what you want to show for mobile-users. Note 4 : change css but have a look at scss
×
×
  • Create New...