supersig Posted November 27, 2014 Share Posted November 27, 2014 (edited) ((((1.))))Different product layout/template for specified customer/user groups ? (This is needed for businesses we involved,and I believe others might have the same need in many cases. Though I know different categories can be applied to different user groups is available already.) More to describe in short: for example, user group named Agent-class1 see the page under same category are different from the view of groups like visitor/guest/customer. I know this must be something to do with the theme/template layer, I am too short of professional programming language knowledge,so I really hope someone can develop this and put it on sale at prestashop website. See also: Prestashop custom layout for specific category http://stackoverflow.com/questions/18875349/prestashop-custom-layout-for-specific-category different product template for a specific category http://www.prestashop.com/forums/topic/162917-different-product-template-for-a-specific-category/ Just MISSING Different Product Template For SPECIFIC USER GROUPs! I guess people really need this. ((((2.))))Add attributes to customers ? As far as I can tell, user attributes are : ID Social title Last name First name Email address Company Sales EnabledNewsletter Opt-in Registration Last visit etc (about 16 ?), apart from that , Is it possible if we create new attributes to add to users and usages like the following: First Name Last Name Sex Date of Birth Nationality Passport/Document No. Expiry Date(Passport/other travel document) Mobile phone Number Email Address Next of kin(Name) Next of kin contact I know to define the data type in SQL is not difficult, But I am not sure if bring this to live prestashop hard or not or it will cost time efforts. Could someone tell about this? ((((3.))))Allow specific user-group users to add customers ? As prestashop defined: Visitor - who just visiting Guest- who make an order but not login Customer-who registered Agent-class2- Created user groups by shop admin (as an example,as shop owner will apply different price to user groups Agent-class1,Agent-class2,...,Agent-class-n etc) What I need is, say a user agent1001 who belongs to user group Agent-class2, can create general Customer group users. Also,the users created by user agent1001 should be associated with user agent1001,this can be referred later and can be picked up for identification of agent1001's customers, which can be used for agent1001 over and over again to booking services for those s/he created. Preferably agent1001 can create more than one Customer users on one layout page. Hope user agent1001 have the rights to create and modify user attributes but do not have rights to delete any of those he created, and no other distinguished rights. I take this as my suggestion, hope this is valid, because I am not sure if this already can be done with the released features or not. ((((4.))))About the slow loading speed. ? I read a thread on the forum, said prestashop with more than 3,000 products could lead the site really slow or even crash, doesn’t sound true, but I wish someone here can tell the truth about this concern. I really appreciate that. But mine would be more than 40,000 products, I have to be sure about this. For people who want comment on this may have a look at the attachment with this topic and my shop http://www.sg-jiuzhou.com/triphiya/ Thanks so much. A little bit about my offering our company website design, I will pay USD2000 for the job done, the price is negotiable, as I am the shop owner. And I would pay extra on some suggested modules offered from the prestashop.com website,especially for those modules which can mass upload/edit/update products. I really appreciate if someone can do the job for us, and hoping it won’t take long. Have some understanding on our needs roughly :http://www.sg-jiuzhou.com/triphiya I don’t know if my offer violate the terms of the forum, if it does,please notify me. I really need help! Suggestion on paid versions of the prestashop, I hope the commercial release is available, I believe many like me would pay for the fully featured & compiled version of the prestashop. I have read the posts on how to accelerate the loading speed by use caching,compressing...etc, I have done everything suggested to the optimization at backend Performance. Website loading speed test: http://tools.pingdom.com/fpt/ Testing URL:www.sg-jiuzhou.com/triphiya Tested from New York City, New York, USA on November 27 at 15:06:36 Page size:1.2MB Load time:15.50s Requests:51 Perf. Grade:81/100 Your website is slower than 92% of all tested websites Check how many Domains on your HOST: http://www.yougetsignal.com/tools/web-sites-on-web-server/ [[[[[[[Fix a bug suggest from the forum]]]]]]: http://www.prestashop.com/forums/topic/349796-performance-hot-fix-please-apply-solved-1609-class-indexphp-has-disappeared/ Testing URL:www.sg-jiuzhou.com/triphiya Tested from New York City, New York, USA on November 27 at 16:31:08 Page size:1.2MB Load time:4.90s Your website is faster than 32% of all tested websites [[[[[[The result is a lot BETTER!!!]]]]]] But I think its still quite slow,how you guys think about it? Back office loading still quite slow! There are modules suggested, but I haven’t try it yet: [Module] Express Cache - Speed up your Prestashop! http://www.prestashop.com/forums/topic/304599-module-express-cache-speed-up-your-prestashop/?hl=%20load%20%20speed [Module] Page Cache - speedup your shop http://www.prestashop.com/forums/topic/281654-module-page-cache-speedup-your-shop/?hl=%20load%20%20speed [module] database clean up - optimize store DB - speed up your store http://www.prestashop.com/forums/topic/275483-module-database-clean-up-optimize-store-db-speed-up-your-store/page-2?hl=%2Bload+%2Bspeed&do=findComment&comment=1640560 How to Setup Content Delivery Network (CDN) on VPS http://www.prestashop.com/forums/topic/261447-how-to-setup-content-delivery-network-cdn-on-vps/?hl=load+speed&do=findComment&comment=1303460 Thanksgiving Day By the day I want thank all the programmers and fans who contributed to the Prestashop Project. May God Jehovah bless you and may father Jesus Christ always be with you! Edited November 28, 2014 by supersig (see edit history) Link to comment Share on other sites More sharing options...
supersig Posted November 27, 2014 Author Share Posted November 27, 2014 (edited) By the way, I am using Prestashop 1.6.0.9 And my Email:[email protected] Edited November 27, 2014 by supersig (see edit history) Link to comment Share on other sites More sharing options...
supersig Posted November 27, 2014 Author Share Posted November 27, 2014 (edited) Add to question (((1))), I don't want to use the idea of different product template for a specific category, because there are already tooo many categories! so I think different template/layout for different user groups is easy to handle when you adding a mass of products, otherwise adding products could taking months but not days or hours,even though we can use CSV import in my case, that's really killing people. Edited November 27, 2014 by supersig (see edit history) Link to comment Share on other sites More sharing options...
kevinkong Posted November 27, 2014 Share Posted November 27, 2014 (edited) Me Edited November 27, 2014 by kevinkong (see edit history) Link to comment Share on other sites More sharing options...
supersig Posted November 27, 2014 Author Share Posted November 27, 2014 (edited) waiting Edited November 28, 2014 by supersig (see edit history) Link to comment Share on other sites More sharing options...
supersig Posted November 28, 2014 Author Share Posted November 28, 2014 (edited) Waiting Edited November 28, 2014 by supersig (see edit history) Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted November 28, 2014 Share Posted November 28, 2014 Yes it will be better if you make different thread for each questions. Different product layout/template for specified customer/user groups ? If you want to displaying different layout/design on product page according to customer group, you can do something like this : Create different theme files of product page for each customer group. You just need to copy-paste the default file product.tpl and then renaming the file like this : product_N.tpl where N = id_group and then modify each file so it will have different layout or design Override ProductController file. Create new file ProductController.php and placed on ../override/controllers/front/ProductController.php Copy paste following script to the overridden file ProductController.php <?php class ProductController extends ProductControllerCore { public function initContent() { parent::initContent(); // Default template $template = _PS_THEME_DIR_.'product.tpl'; // Define id_group $id_group = $this->context->customer->id_default_group; // Define template file to use according to defined id_group if ($id_group) $template = _PS_THEME_DIR_.'product_'.(int)$id_group.'.tpl'; // Output $this->setTemplate($template); } } . Let say you have customer groups like this (ID/Group_name) : 1/Visitor, 2/Guest, 3/Customer, 4/Member Then for the step-1 above, you should create 3 different theme files : product_1.tpl, product_2.tpl, product_3.tpl and leave the original theme file product.tpl untouch If a Visitor visiting Product page "My Product" then s/he will see the product page which created by product_1.tpl If a Guest visiting Product page "My Product" then s/he will see the product page which created by product_2.tpl If a Customer visiting Product page "My Product" then s/he will see the product page which created by product_3.tpl If a Member visiting Product page "My Product" then s/he will see the product page which created by product.tpl 1 Link to comment Share on other sites More sharing options...
supersig Posted November 28, 2014 Author Share Posted November 28, 2014 (edited) Yes it will be better if you make different thread for each questions. If you want to displaying different layout/design on product page according to customer group, you can do something like this : Create different theme files of product page for each customer group. You just need to copy-paste the default file product.tpl and then renaming the file like this : product_N.tpl where N = id_group and then modify each file so it will have different layout or design Override ProductController file. Create new file ProductController.php and placed on ../override/controllers/front/ProductController.php Copy paste following script to the overridden file ProductController.php <?php class ProductController extends ProductControllerCore { public function initContent() { parent::initContent(); // Default template $template = _PS_THEME_DIR_.'product.tpl'; // Define id_group $id_group = $this->context->customer->id_default_group; // Define template file to use according to defined id_group if ($id_group) $template = _PS_THEME_DIR_.'product_'.(int)$id_group.'.tpl'; // Output $this->setTemplate($template); } } . Let say you have customer groups like this (ID/Group_name) : 1/Visitor, 2/Guest, 3/Customer, 4/Member Then for the step-1 above, you should create 3 different theme files : product_1.tpl, product_2.tpl, product_3.tpl and leave the original theme file product.tpl untouch If a Visitor visiting Product page "My Product" then s/he will see the product page which created by product_1.tpl If a Guest visiting Product page "My Product" then s/he will see the product page which created by product_2.tpl If a Customer visiting Product page "My Product" then s/he will see the product page which created by product_3.tpl If a Member visiting Product page "My Product" then s/he will see the product page which created by product.tpl Thank you so much for the script, this is so detailed ! I really appreciates! It seems this is a step by step instruction, but I do not have the knowledge of any programming language not to mention the creation of the template pages. I am willing to learn, but it seems will take a long time,and our website has been waited to operation. anyway, I hope your code would inspire some who has similar needs. And I am so happy to know this can be done! Thank you so much again! Have a good time! Edited November 28, 2014 by supersig (see edit history) Link to comment Share on other sites More sharing options...
supersig Posted November 29, 2014 Author Share Posted November 29, 2014 it seems people were out drinking ... Saturday ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now