
first1
Global Moderators-
Posts
454 -
Joined
-
Last visited
Everything posted by first1
-
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.
-
Client Groups Discounts
first1 replied to Carlos Suarez's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
interesting idea, dont have a quick question to this, i am sure after some work it can be done. -
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.
-
nice!
-
Page Numbers for Products Listed in Manufacturers
first1 replied to applestarz's topic in Configuring and using PrestaShop
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. -
[Solved] Help setting a background image
first1 replied to gussy's topic in Addons, modules and themes developers
please close this thread is resolved as described in the signature below -
Please use this thread for UK taxes information
-
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
-
[Solved] Auto-deleting settings.inc.php file
first1 replied to nocny_stroz's topic in Configuring and using PrestaShop
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 -
Problem with changing to new theme
first1 replied to stereo_id's topic in Addons, modules and themes developers
do you have the right permissions ? -
[Résolu] Nom des articles tronqués si trop long
first1 replied to Ratatosk's topic in Discussion générale
Moved Topic to the French forum *was in the English section* -
Problem with changing to new theme
first1 replied to stereo_id's topic in Addons, modules and themes developers
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 -
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.
-
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
-
[Solved] Auto-deleting settings.inc.php file
first1 replied to nocny_stroz's topic in Configuring and using PrestaShop
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? -
have you changed the file at all?
-
how to: Manufacturers will manage their product?
first1 replied to geniusinside's topic in Configuring and using PrestaShop
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 -
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
-
can tell you that you can reinstall the currency under modules. the other modifications would be in the global.css
-
there is a newsletter module that allows you to email all. it is pretty good, do a search for it.
-
Help installig Comodo Trust Logo
first1 replied to roback's topic in Addons, modules and themes developers
Topic was moved