Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

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

stathis's Achievements


Newbie (1/14)



  1. Many thanks Daresh! I was just posting the very same solution i found in another post: https://www.prestashop.com/forums/topic/300347-cannot-edit-product-save-or-save-and-stay-not-work/page-3?hl=+cannot%20+save
  2. Hi, I'm having a very strange problem when i try to save product changes. All of a sudden, i cannot save changes i make to any of my products using the PS admin. When i press the save button, PS reloads without saving. Sometimes, after failing for several times, it finally saves the changes i make but i cannot understand the reason or pattern. I tried to disable all overrides and all non-prestashop modules with no luck. Any advice / suggestion is more than welcome. Thanks!
  3. Same with it here, i'm using PS version Can you please help?
  4. I use PS version and the module works fine except from the deletion feature. Once you create a tab in module's settings you cannot delete it but this is not a real problem since you can disable it and it will not be visible in the Front Office. Other than that, the module is fantastic, congratulations and thanks!
  5. answering that in case someone else needs it: This applies to v1.6 Best way to copy/rename a theme is using Prestashop's own mechanism, read more here: http://doc.prestashop.com/display/PS16/Laying+the+Theme's+Foundations Go the "Themes" preference page. Click on the "Add new theme" button, at the top right of the screen. In the "Import theme" screen that opens, scroll down to the "Create new theme" section and click on the "Create new theme" button. In the creation form that appears, fill-in the various fields: Name of the theme. Give it your own unique name – you can prefix it with your company's name or initials, for instance. Make sure to check on the Addons website that no other theme is already using that name, even more so if you plan to eventually sell that theme online. Preview image for the theme. Since you do not yet have the final design for your theme, this can be done later. Default left column / Default right column. Do you plan for your theme to have a sidebar of content? If so, on which side of the page? Check the options accordingly. Number of products per page. Another informational field which you can edit later on. Name of the theme's directory. You should use the same name as your theme, in lowercase and with spaces replaced by hyphens. For instance, "My Test Theme" would yield "my-test-theme" as a folder name. Copy missing files from existing theme. This is where you indicate the theme to copy files from. This is very important! You can choose the default theme, or any other available which you want to build your theme from. Responsive. Do you plan on your theme's design to adapt to any screen size? If so, switch this option to "Yes". Click on the "Save" button.
  6. I was searching too with no luck for a similar solution. After many many attempts, i've come up with this: https://www.prestashop.com/forums/topic/478524-a-solution-for-using-authors-functionality-in-a-bookstore-shop/ I hope it helps you.
  7. In bookstore related stores, each book may have one ore more Authors. There is not such or similar functionality in Prestashop that allows making an one-to-many relationship (one product to many authors). In addition, the shop must have unique Author's pages that displays some information and lists all books by that author. From my understanding, not a single theme or module supports this, so it is a common question in the forum. Step1 - How to have an Authors Page with information about the Author and a List of the books he authored The solution is to use product categories for this purpose. First create a master category and name it bookauthors (or something similar). This category will not be displayed anywhere. Then, add a subcategory for each Book Author. This way, you can have an Author's page with a friendly url and the ability to add text, images etc. Step 2 - How to add this information to Product's page: Next step is to display the Author(s) inside the product's page. 2.1: You need to make an addition to classes/product.php file (yes, i know - that tweeks the core functionality). Prestashop v1.6 has remove function "getProductCategoriesParent" while previous versions still have it. In either way, make sure that the function is the one bellow: public static function getProductCategoriesParent($id_product = '', $id_parent = '', $id_lang = null) { if (!$id_lang) $id_lang = Context::getContext()->language->id; $ret = array(); $row = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT cp.`id_category`, cl.`name`, cl.`link_rewrite` FROM `'._DB_PREFIX_.'category_product` cp LEFT JOIN `'._DB_PREFIX_.'category` c ON (c.id_category = cp.id_category) LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON (cp.`id_category` = cl.`id_category`'.Shop::addSqlRestrictionOnLang('cl').') '.Shop::addSqlAssociation('category', 'c').' WHERE cp.`id_product` = '.(int)$id_product.' AND c.`id_parent` = '.(int)$id_parent.' AND cl.`id_lang` = '.(int)$id_lang //<-- bug was in this line - originally there's cl.'id_parent' ); foreach ($row as $val) $ret[$val['id_category']] = $val; return $ret; } 2.2: Next, you add the code bellow to product.tpl page, in any place you want to display book's Authors: <ul> {foreach from=Product::getProductCategoriesParent(Tools::getValue('id_product'),[add here the bookauthors category ID]) item=cat} <li><a href="{$link->getCategoryLink({$cat.id_category})}" title="{$cat.name}">{$cat.name}</a></li> {/foreach} </ul> PLEASE NOTE: You MUST change the [add here the bookauthors category ID] with the category ID of the bookauthors master category. I hope this helps someone out there!
  8. Καλό θα ήταν να το έγραφες εδώ ώστε να βοηθήσεις και κάποιον άλλο χρήστη που αντιμετωπίζει το ίδιο θέμα.
  9. You will have to use css for that. Add a css file in mymodulename/css folder and then use a hook to load it: public function hookDisplayBackOfficeHeader() { $this->context->controller->addCSS($this->_path . 'css/mycssfile.css'); } Inside the css file you will have: .icon-AdminControllerParentClassName:before{ content: "\f019"; }
  10. At last, after a week of trying, a working example! MANY thanks!
  11. Τι ακριβώς εννοείς; Μπορείς να ανεβάσεις ένα screenshot; Γενικά, ανάλογα με το τι modules έχεις εγκαταστήσει, αυτό μπορεί να οφείλεται και σε κάποια εικόνα που χρησιμοποιείς και υπάρχει αποθηκευμένο το path που παραπέμπει στο παλιό server. Ανάλογα με τον browser που χρησιμοποιείς, αυτό μπορείς να το δεις και από τα developer tools. Στον chrome για παράδειγμα, αν ανοίξεις το tab sources, βλέπεις όλες τις πηγές από όπου γίνονται κλήσεις.
  12. Hi, I need to create a script (probably module) in order to be able to create & update product combinations and it's quantities automatically. The idea is to have a csv file that will be exported from another source/system that will contain detailed quantities for each product combination. The script will have to check if the product combination exists and if not, it will create it and then, it will update the quantity. Also, i would like to add functionality in order to insert product images too, specifically for each product combination. I would like prior to start developing to check if something similar exists, it's always a bad idea to reinvent the wheel! Do you have something in mind to begin with?
  13. Many thanks Axel, fantastic module! A quick question: The login as customer functionality works great when i press the Login button inside customer's detail view. When i press the Login button that is inside the drop down list in the customers grid view it does nothing. I've PS Does it suppose to work there too?
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More