Jump to content

Salus

Members
  • Posts

    97
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    Romania
  • Activity
    Other

Salus's Achievements

Newbie

Newbie (1/14)

3

Reputation

  1. One more thought: which one is the correct syntax: <script> {literal} (google function) {/lieral} </script> OR {literal} <script> (google function) </script> {/literal} ???
  2. Hey, guys, I know this is an old topic, but I hope someone still looks at it. I have the same problem (google analytics showing status TACKING NOT INSTALLED even after 2 weeks of installing and configuring google analitics module on my prestashop). I tried inserting the tracking script into my header, just as explained above, but I get the following error message: Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/salus/public_html/themes/default_oszlopos/header.tpl" on line 66 "(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){" - Unexpected "[", expected one of: "}" , " " , ATTR' in /home/salus/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /home/salus/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/salus/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(64, '[') #2 /home/salus/public_html/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(64, '[') #3 /home/salus/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(206): Smarty_Internal_Smarty in/home/salus/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667 The google tracking code looks like this: <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-xxxxxx-x', 'auto'); ga('send', 'pageview'); </script> Of course I xxxxx-ed the tracing code. Any ideeas why it gives me this error? BIG UPDATE: Sorry, my bad, I didnt read through the whole topic and forgot about the {literal}...{/literal} thing. Why on earth dont they tell us about these things? What if there WOULD BE NO VEKIA TO TELL US? Thanks, Vekia
  3. Hi everyone, I need some help please. Sigh... Ya see, when I started making this shop of ours, I knew NOTHING about SEO and organic search and friendly urls... I still dunno too much, but I already know that I did something terribly wrong form SEO perspective. I have enabled friendly url-s, but I have csv-uploaded that column with product codes. So my url-s now look something like www.mywebshop.com/category123/1001-1254/2357-586. I named everything so I can understand the content of the page, not the customer. Those numbers mean subcategories, and sub-subcategories, and finally a product code. I did this for a better communication with my accounting software. Anyway, now I realized that friendly urls are supposed to be friendly to the customer, not to me example: http://www.salus-tehnomed.ro/fesi-bandaje-elastice/816-1487-1487.html Problem is, I have 1300+ products active. I`m searching for a solution to DEACTIVATE friendy ulr-s somehow, then REGENERATE the whole thing based on product name. Is that possible through prestashop, or shoud I export the ps_product_lang table, do it manually or via excel, then reimport it? I`ve already rewritten all the category names to a more friendly version (as you can see from the examlpe), but I still have all the products. Any advice of making that faster? And after this, do I have to rebuild the whole index and the whole cache? Logical answer would be yes. Problem is that we are online, so I cannot stop the shop anymore for testing... So, the essence of the question is: if I disable the friendly-url`s from Preferences/SEO&URL, will they be deleted from the database and regenerated if reenabled? Using version 1.5.6 Cheers, and thanks in advance.
  4. Hi, everybody, I just dropped by to say a big THANK YOU for all your help in creating our online store. It was an interesting journey that I started more than a year ago ( somewhere around january 2014) without any knowdlegde at all of html, css, prestashop, online marketing or whatsoever. A year has passed, and our store is online now, working. It`s not the fanciest, or hasnt got all the features, still has many bugs, but it is working, and I love it. I know that thousands of online stores grow daily on the net, like mushrooms after rain, but it is the first for us, and it is ours. And this is mainly thanks to you, Prestashop community. You people were the ones who helpded us in the way, solving our problems, disecting and analizing our code and design, proposing solutions for every problem, even the most simple ones. I will not mention any names, because it`d be a long list, so I just say THANK YOU, PRESTASHOP COMMUNITY!! I OWE YOU A BIG ONE... It`s not my intention to use this topic as a marketing tool, but if anyone of the contributors wants to see what YOU/we created, here is the link: www.salus-tehnomed.ro Of course any comment/critic/suggestion is more than welcome I tried to make it as simple as possible, only to the point, no needless things to lure away attention.
  5. One word about this issue again: i tried to replace the image link with a standard large button (for design matters), but I cant convince it to work with the button. What would be the proper code to replace the image input type with button input type? I managed to add the button all right, but it doesnt confirm the order, cart stays full and cant go to "order successful" confirmation page. Not true anymore, I managed to add a working button on a second try, there was a logical error - I`m not much of a coder ya know... But seems to be working now, thanks. <form action="{$link->getModuleLink('cashondelivery', 'validation', [], true)|escape:'html'}" method="post"> <input type="hidden" name="confirm" value="1" /> <p class="cart_navigation" id="cart_navigation"> <input type="submit" id="final_gomb" name="final_gomb" class="button" value="Trimiteti comanda"> </p> </form>
  6. Hello and a happy new year to everyone. I see someone has changed the style of the forum... nice, but I think the old one was better :S So here is my problem. I`m struggling with this for almost a year now. I keep editing my email template for order_confirmation to a certain model, wich works fine for a while, then turns back into a screwed format i dont like. Let me show you: - first image is how it turns to be, with the first column screwed - second image is how it should be, how I keep editing it and how the template looks if I open it by itself from folder mails/ro: I can attach the original html file, for you to see. It looks ok. But somewhere, something overwrites my master template, and I want to find that somethig and KILL it. Please someone help me find that something. Thank you order_conf.html
  7. Nice solution, it seems to be working fine our my site too. Been looking for this for a while... Thank you.
  8. Ok, I`m not sure i`m following you, but let me put it down what I comprehend of what you said: I take adress.php for example, and put the two lines somewhere, outside of any function, using a valid adress id, like this? public static $definition = array( 'table' => 'address', 'primary' => 'id_address', 'fields' => array( 'id_customer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_manufacturer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_supplier' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_warehouse' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_country' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_state' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId'), 'alias' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 32), 'company' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64), 'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'vat_number' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'address1' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128), 'address2' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'size' => 128), 'postcode' => array('type' => self::TYPE_STRING, 'validate' => 'isPostCode', 'size' => 12), 'city' => array('type' => self::TYPE_STRING, 'validate' => 'isCityName', 'required' => true, 'size' => 64), 'other' => array('type' => self::TYPE_STRING, 'validate' => 'isMessage', 'size' => 300), 'phone' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'phone_mobile' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'dni' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 16), 'deleted' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat', 'copy_post' => false), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat', 'copy_post' => false), 'testJ' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), ), ); $test = 102; $test->testJ ..and see if anythig happens?
  9. Yes, very likely because above solution is takent it`s values from cache. Since I already build up my database and have edited 98% of the products, there is no way i can do (and I wont do) that again manually.
  10. Yes, at least this is what happened to me. If product has combos, then the listing is not made form ps_product anymore, but from a complicated query between ps_product and ps_product_attributes and god knows what else, so the on_sale value is not being taken into account (because it is not part of the default query). Sigh, i think this is pretty blurry said...
  11. I did again everything step by step explained in the above tuttorial, and it is not working... I cannot add the new fields to the adress form, since they are not there.
  12. Thank you, nemo, I already did look into that tutorial, but in version 1.5.6, which I am using, the thing was implemented in another way. As yourself stated in the above tutorial, i already did the first step, my adress.php looks like this: public static $definition = array( 'table' => 'address', 'primary' => 'id_address', 'fields' => array( 'id_customer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_manufacturer' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_supplier' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_warehouse' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId', 'copy_post' => false), 'id_country' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_state' => array('type' => self::TYPE_INT, 'validate' => 'isNullOrUnsignedId'), 'alias' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 32), 'company' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64), 'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'vat_number' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'address1' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'required' => true, 'size' => 128), 'address2' => array('type' => self::TYPE_STRING, 'validate' => 'isAddress', 'size' => 128), 'postcode' => array('type' => self::TYPE_STRING, 'validate' => 'isPostCode', 'size' => 12), 'city' => array('type' => self::TYPE_STRING, 'validate' => 'isCityName', 'required' => true, 'size' => 64), 'other' => array('type' => self::TYPE_STRING, 'validate' => 'isMessage', 'size' => 300), 'phone' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'phone_mobile' => array('type' => self::TYPE_STRING, 'validate' => 'isPhoneNumber', 'size' => 32), 'dni' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 16), 'deleted' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat', 'copy_post' => false), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat', 'copy_post' => false), 'testJ' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), ), ); bolded the changes At this point, the changed field and the new field should be visible in lcalization->country, isnt it? The modify of adminadresscontroller.php would be the next step, for visualization of the fields, but I never get to this since my fields dont even show up...
  13. Ok, please someone help me out with this, couse I`m going crazy. I gave up on modifying anything on existing fields, instead I created new field manually in the ps_adress table. I followed ever possible tutorial on how to make it visible on back office, some ppl even say you dont have to make any override, it will be shown. I tried everything, made override as instructed, or not, clearing controller cache, restoring database and home directory to a previous state, everything, still, the data field added DOES NOT SHOW UP where is shoud: localization -> countries ->mycountry ->edit -> adress format -> add fields form list. I use prestashop 1.5.6.1. I have 3 new fields added, none of them are shown into back office. So pelase someone tell me what am I missing here? Some screenshots about table BO. We are talking about last 4 records, from id 25-28 Compilaton is on forced, cache disabled in performance tab. I aint got no class_index.php to delete anywhere in classes folder, before you ask. THANKS.
  14. desigur. am incercat si varianta din zip-ul tau, si creat manual... baza de date e in regula, doar nicicum nu reusesc sa le vad in BO. ultimul, testJ este adaugat de mine, am incercat sa-i fac un override separat, nu merge. ceva nu e in regula...
  15. Cred ca am facut eu o eroare, pentru ca am incercat sa transform campul DNI in regcom, si nu am reusit. Reincarc acum back-upul de ieri, inclusiv intregul home directory, si voi relua procesul, Voi reveni... pasul 5: nu mai am un class_index.php pe care sa-l sterg... optiunile acestea le am dupa update (nici o schimbare)
×
×
  • Create New...