Jump to content
  • Posts

    15
  • Joined

  • Last visited

About [email protected]

  • Birthday 03/03/1984

Profile Information

  • Location
    Lidköping
  • Activity
    Developer

[email protected]'s Achievements

Newbie

Newbie (1/14)

2

Reputation

1

Community Answers

  1. For you who is interested I fixed this with a module that hooks actionAdminCartRulesControllerSaveAfter. In this hook, which is executed after saving the cart rule, I do like this: if (Shop::getContext() == Shop::CONTEXT_SHOP && $_POST['shop_restriction'] == 0) { //PrestaShopLogger::addLog('Test id: '.$_POST['id_cart_rule'], 1, null, 'Cart', 1, true); $where = "id_cart_rule = " . $_POST['id_cart_rule']; Db::getInstance()->update('cart_rule', array('shop_restriction' => 1), $where); Db::getInstance()->insert('cart_rule_shop', array( 'id_cart_rule' => $_POST['id_cart_rule'], 'id_shop' => Context::getContext()->shop->id )); } Not the prettiest of solutions but it worked for me.
  2. Hi, More question on the multistore subject. I am having a prestashop 1.6.0.9 installation with 3 active shops. I have for each store an employee only able to see one store. When this employee saves a new cart rule or updates an existing rule he/she will not see the shop restriction option and when saving the cart rule is not given any shop restriction. Is this really correct or is it a bug? Is it really ok for an employee only beeing able to access one of the three shops to add a cart rule for all three shops? Hopefully someone is going to be able to answer me on this post. Thank you in advance
  3. Hi all, I have a PS version 1.6.0.9 and enable 3 stores. All shops use the same products but have diffent descriptions, price, suppliers etc. I am having a problem when saving a product after editing it. Regardless of whcih tab i´m editing, when clicking save suppliers are also saved but with no box checked. Thanks to this all previously checked suppliers will be unchecked. Is this correct? Another question is if I can have different suppliers on a product depending on what shop I'm currently using? Our administration is getting quite tired of all the double work this is causing. Thank you in advance
  4. Hi Guys! I am having a problem on my stores. I am currently using PS 1.6.0.9 and have set up 2 different stores which are using the same products. The products are associated with diffent categories depending on the store. For example: Store 1 category1 product1 product2 product3 Store2 category2 product1 product2 product3 Category1 is not enabled for store2 and category2 is not enabled for store1. Here is my problem: When editing for example the product description on product1 in store1 and saving my changes, prestashop will drop the associated categories for this product although I have never even been to this tab at all. I think it must have something to do with the fact that the choosen categories for the edited product is not enabled on that store. If that is the point there must be a fix for this as there is by today 5 newer versions of PS and someone else must have had this problem. Thank you in advance! Daniel
  5. I have read the manual and have done it just like it says. What resources do you mean?
  6. Hi, I am trying to install prestashop 1.6.0.9 on Microsoft Azure as a website and is getting some problems when installing. When getting to 45% the installation stops and shows an error. The error log on the server shows this: [26-Aug-2014 02:37:04 US/Eastern] PHP Fatal error: Uncaught exception 'PrestaShopException' with message 'Property Group->name is empty' in D:\home\site\wwwroot\classes\ObjectModel.php:887 Stack trace: #0 D:\home\site\wwwroot\classes\ObjectModel.php(301): ObjectModelCore->validateFieldsLang() #1 D:\home\site\wwwroot\classes\ObjectModel.php(489): ObjectModelCore->getFieldsLang() #2 D:\home\site\wwwroot\classes\Group.php(155): ObjectModelCore->add(true, false) #3 D:\home\site\wwwroot\classes\ObjectModel.php(425): GroupCore->add(true, false) #4 D:\home\site\wwwroot\classes\LocalizationPack.php(420): ObjectModelCore->save() #5 D:\home\site\wwwroot\classes\LocalizationPack.php(67): LocalizationPackCore->updateDefaultGroupDisplayMethod(Object(SimpleXMLElement)) #6 D:\home\site\wwwroot\install\models\install.php(462): LocalizationPackCore->loadLocalisationPack('<?xml version="...', '', true) #7 D:\home\site\wwwroot\install\controllers\http\process.php(205): InstallModelInstall->configureShop(Array) #8 D:\home\site\wwwroot\install\controllers\http\process.php(91): In in D:\home\site\wwwroot\classes\ObjectModel.php on line 887 My question is therefore if someone has any idea whats causing this error and if anyone has any experience using Azure as Prestashop host. Thank you in advance!
  7. One thing I forgot to say is that I am running PS on a virtual machine on Microsoft Azure via a bitnami image. I am not shure if that has anything to do with the problem but I think it may have. Hopefully someone has a clue for me to perceed.
  8. I have now tried that without any luck I am afraid... I will attach my .htaccess file in case thats any help. I have changed the names on the domains to default_shop, shop1 and shop2 just in case. Thank you htaccess.txt
  9. Hi, After searching an answer for my question for a couple of days I now turn to you. My problem is this: I have installed ps 1.6.0.6. I have then added 2 shops with different domains, lets call them shop1 and shop2, so I now have a total number of 3 shops included the default shop that also has a different domain. When turning on friendly URL the only shop working is my default shop. The other 2 is showing question marks where the pictures is suppose to be and when trying to click on a product or category or anything else PS only sends me to the 404 page. I have no idea what to do anymore and have tried with all sort of strange things... Is there anyone who can help me with this I would be so happy. Best regards
  10. Hello, I have searched for a while to find the answer of my quetsion but with no luck. Therefor I now turn to you. First question: I am creating a custom module that is hooked to AdminOrder in PS 1.6.0.5. I have created a custom hook at the bottom of view.tpl and now I want to use javascript/jquery. My question is how I can override the js-file admin_order.js in my module or more exact, where do I put the file "path-wise"? Have tried putting it in here: /ps_root/modules/my_module/override/js but with no luck. Second question: How to add a custom hook into a tpl when installing a custom module? What I want is to add a hook to the bottom of view.tpl (/ps_root/admin/themes/default/template/controllers/orders/helpers/view) when installing my module. Thanks in advance!
  11. Hej, har samma "problem" i vår shop och hittade denna sida på forumet: http://www.prestashop.com/forums/topic/304754-contribution-free-shipping-if-total-is-over-x-excluding-specific-categories/ Ska testa detta på en lokal server och se om det lirar. Återkommer om det finns intresse fortfarande med hur det går.
×
×
  • Create New...