Jump to content

Manik

Members
  • Posts

    17
  • Joined

  • Last visited

1 Follower

Profile Information

  • Location
    Bangalore
  • Activity
    Developer

Recent Profile Visitors

2,634,268 profile views

Manik's Achievements

Newbie

Newbie (1/14)

6

Reputation

  1. how to display final price without tax in prestashop admin panel "Catalog=>Produts" page ? I configured base price as zero for few products and configured its price via attributes. In admin panel its showing zero as base price and final price with tax. I want to remove the tax added in the final price.(I want tax should be enabled, but don't want to display in page- see image). I verified in admincontrollers.php file, but couldn't find where to change.can anyone help me please.
  2. Hi, Is it possible to control the delivery address countries in customer registration page? I have an online shop and I created a separate store for each country using multi store function. I want to restrict the customer delivery address at customer registration page. Example, I have created the 4 shops names as Japan, US, India, Bangladesh. I want to restrict the customer delivery address based on the shop they choose. if they choose India, then I want to show only India at registration form and not other countries. I have tried to control it by enabling and disabling countries per each shop, but it seems that function is not shop dependent. Is there any way to achieve this? Please anyone help me. Thanks in advance.
  3. Hi , I developed a module to override class and controller files. In controller, I tried to override the ordercontroller.php file and everything works fine in prestashop default theme. But once I changed the theme that override functions is not working. I have uninstalled the module after theme installation and again installed and deleted the cache_index.php file before module install.. but still override is not working. Can anyone help me, I don't know where am making mistake.
  4. Hi Nemo... Thanks for your reply. I got the answer.. here it is. create controllers/admin/AdminPageController.php with the follwing content: class AdminPageController extends AdminController { public function initContent() { parent::initContent(); $smarty = $this->context->smarty; $smarty->assign('test', 'test1'); } } Delete: /cache/class_index.php Create: admin\themes\default\template\controllers\page\content.tpl zzz{$test}zzz At BackOffice -> Administration -> Menus -> [Add New]: Name: Page Class: AdminPage Parent: Catalog Click the [save] button and the menu item should appear at the "Catalog" menu. Hope It may help someone.
  5. I tried that one also, Its not showing yet. It seems that fetching the template file only the problem, other wise my echo statements printed there. and I tried with one more function as same as in products controller, but that also not working.
  6. Its not showing yet. I created a folder named "page" in admin/themes/default/controllers and put the file in folder like this page/mypage.tpl and page/helpers/view/view.tpl. but both methods are not showing. I tried like this.. public function initContent() { print_r("hi, there??"); $tpl = $this->createTemplate('mypage.tpl'); $this->content = $tpl->fetch(); //return parent::initContent(); }
  7. http://awesomescreenshot.com/0081ut4c68 please check the image in this link. This is the file structure now. <?php class AdminPageController extends AdminController { public function __construct() { $this->table = 'Page'; $this->className = 'Page'; $this->module = ''; $this->lang = false; parent::__construct(); } public function initContent() { print_r("hi, there??"); //$this->setTemplate(_PS_THEME_DIR_.'mypage.tpl'); //return parent::initContent(); } }
  8. It looks like index.php?controller=AdminPage&token=222300032bc576d5c92d695b858b3664 . Its not showing anything now. Some where wrong is there in coding.
  9. Still its not working @ Nemo. I am making mistake somewhere , I will see some more controllers files and try again.Really thanks for your reply .. Do we need any class file for making this ? right now am working with only one controller file.
  10. I filled the construct data as you mentioned, but still its not working. can you explain the steps please, I will start from beginning again.
  11. Yes I tried that also, but not getting the output. Its always display controller not found error. Don't know where am making mistake.
  12. In controllers/admin folder. Please suggest me any tutorial or just tell me the steps needed to do this, because really I don't know how to do this.I want to create a new page in admin panel and need to show some static information in that page.If you know the steps, explain here please..
  13. I added using the admin interface and I mentioned the new controller class name which i created. Am I doing right way? If not please guide me.
  14. how to create a new page in prestashop admin panel? I tried using creating a new admin controller file and in that set the template path and i created a menu using admin panel and there i mentioned the controller class name for that menu. when i try to open that menu it always shows that controller not found. can anyone help me, how to create a new page in prestashop admin panel? am using PS 1.5 version. <?php class AdminPageController extends AdminController { public function __construct() { parent::__construct(); } public function initContent() { parent::initContent(); $this->setTemplate(_PS_THEME_DIR_.'mypage.tpl'); } }
  15. I am developing a module for customizing the products in front end using generating some attributes for each products. but it only works with my attributes, because am generating attributes for each product via coding, so it works with my attribute if no other attributes selected manually. If user wants other attributes then my module is not working.Is there any way to find the previous attributes for products and generate it again by adding custom attribute using coding? the main factor is I want to dynamically change the product price. by using attributes it can change automatically, but in my case It needs to work with other attributes also. Example am giving a text box in front end to allow the user to enter some text on the product. (Customer name is printed in CAP). for every letter in textbox the price have to change dynamically.. can anyone help please, is it possible to do without attributes?
×
×
  • Create New...