Jump to content

first1

Global Moderators
  • Posts

    454
  • Joined

  • Last visited

Everything posted by first1

  1. try on a test server first and do a back up. you need to implement a function and call it everytime you check for access: 1)create another field in the mysql database, table ps_category_group: I called it gr_cat_red it is a decimal(10,2) this field would tell the system, the group category reduction (gr_cat_red) of each group and each category. in this field you will need to put the reduction discount i.e. 55.7% for cat 11, group 3 2) in classes/Category.php add this fuction: public function checkCategoryRed($id_customer,$id_category_default,$id_group) { if (!$id_customer) { $result = Db::getInstance()->getRow(' SELECT ctg.gr_cat_red AS reduction FROM '._DB_PREFIX_.'category_group ctg WHERE ctg.id_category = '.$id_category_default.' AND ctg.id_group = 1') ; } else { $result = Db::getInstance()->getRow(' SELECT ctg.`gr_cat_red` AS reduction FROM '._DB_PREFIX_.'category_group ctg INNER JOIN '._DB_PREFIX_.'customer_group cg on cg.`id_customer` = '.$id_customer.' AND ctg.`id_group` = '.$id_group.' WHERE ctg.`id_category` = '.$id_category_default ); } return $result['reduction']; } call this fuction anytime you want to check for access.
  2. interesting idea, dont have a quick question to this, i am sure after some work it can be done.
  3. Yes, the invoice means (outstanding to be paid) until it is stamped (flagged as invoice paid)... thanks for the solution wguser The only problem is when you have a huge list of products, the "Paid-thank you" moves to page 2 (sometimes you see a full page 1 invoice without paid, then the paid-thank you is on its own on the second page. any idea on how to make it as backgroud stamp.
  4. True, I had a look at your shop, they dont show for manufacturers, however you are not using the default theme! on mine, it shows it for manufacturers.
  5. please close this thread is resolved as described in the signature below
  6. Please use this thread for UK taxes information
  7. it cannot be software problem since all the new installations that we do are working and sending emails. so it is got to be somethings specific to that hosting... it is very easy to through the ball over lol they always do
  8. good to know, we learn to follow the installation instructions then to the last word, as it clearly asks us to delete it and not to rename the install folder
  9. Moved Topic to the French forum *was in the English section*
  10. go to preferences in the back office and click on v1.1 theme compatibility: check the yes. it should work, if not then please contact the theme maker
  11. you dont need smtp in order for it to work. the best guess is to approach the hosting people, give them the link to the php form and ask them why it is not working.
  12. highlight your database (not a specific table) and then click search and select all tables. google that as there is alot of docos and tutorial about phpmyadmin
  13. are you saying that this file is getting deleted automatically? there is nothing that can delete this file appart from a cron. can you ask you hosting provider what is going on?
  14. how do you want them to take control of they products? you can give them access to the back office. that is all you can do
  15. I think that was developped as a module, you just need to search the forum for it. i have seen it but cant remember where
  16. can tell you that you can reinstall the currency under modules. the other modifications would be in the global.css
  17. there is a newsletter module that allows you to email all. it is pretty good, do a search for it.
  18. yes it was moved from an unrelated forum to this one. which would make sense ;-) I dont see a point to mention the irrelevant place of origin!
  19. always moved to the relevant forum. i.e. using grid & list layouts for products on same site : would be moved for sure to be under Themes and Graphics
×
×
  • Create New...