Jump to content

first1

Global Moderators
  • Posts

    454
  • Joined

  • Last visited

About first1

Recent Profile Visitors

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

first1's Achievements

Newbie

Newbie (1/14)

2

Reputation

  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.
×
×
  • Create New...