wydydygibus Posted January 5, 2016 Share Posted January 5, 2016 Hi, is there any posibilites to change presta file for example : shopping-cart.tpl from my module code? Thanks. Link to comment Share on other sites More sharing options...
Diurne Posted January 6, 2016 Share Posted January 6, 2016 Thank to overrides. http://doc.prestashop.com/display/PS16/Overriding+default+behaviors Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted January 6, 2016 Share Posted January 6, 2016 (edited) Yes..you can overide prestashop default behaviorshttp://doc.prestashop.com/display/PS16/Overriding+default+behaviors Edited January 6, 2016 by Nishith (see edit history) Link to comment Share on other sites More sharing options...
wydydygibus Posted January 6, 2016 Author Share Posted January 6, 2016 Thanks! Can you give me some example how to edit shopping-cart.tpl? I'm newbie in this topic. Link to comment Share on other sites More sharing options...
vekia Posted January 6, 2016 Share Posted January 6, 2016 it is not possible to override shopping-cart.tpl file that is a part of the theme. you can only override: - main module .php file and module .tpl files- prestashop controllers- prestashop classes Link to comment Share on other sites More sharing options...
wydydygibus Posted January 6, 2016 Author Share Posted January 6, 2016 So maybe although, there is any possibility to put there own textbox? Link to comment Share on other sites More sharing options...
bellini13 Posted January 6, 2016 Share Posted January 6, 2016 well... it depends on where you want to put your own textbox, and what you want to do with the input value provided Link to comment Share on other sites More sharing options...
wydydygibus Posted January 6, 2016 Author Share Posted January 6, 2016 I want to put my textbox on the first side in cart, for example under vouchers box. Link to comment Share on other sites More sharing options...
bellini13 Posted January 6, 2016 Share Posted January 6, 2016 and what do you want this text box to do? collect information from the customer and store it with the cart/order? Link to comment Share on other sites More sharing options...
wydydygibus Posted January 6, 2016 Author Share Posted January 6, 2016 Get this information ( what clinet wrote at my box ) in my module. for example: clinet put there string: "saxdrq"- and I must check this in my module, do some magic with this string and if everything will be fine, create voucher for this client Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted January 7, 2016 Share Posted January 7, 2016 Hi.. then you can use this displayShoppingCart hook in prestashop list of hook use herehttp://doc.prestashop.com/display/PS15/Hooks+in+PrestaShop+1.5thanks Link to comment Share on other sites More sharing options...
bellini13 Posted January 7, 2016 Share Posted January 7, 2016 (edited) then you can use this displayShoppingCart hook in prestashop that will allow you to add content to the shopping cart page, however it may not appear where you want it to appear. it also will not allow you to collect the information from the customer, or store it in the database, so you will also need to solve that Edited January 7, 2016 by bellini13 (see edit history) Link to comment Share on other sites More sharing options...
wydydygibus Posted January 7, 2016 Author Share Posted January 7, 2016 Hi! Thanks for all response, but still I can't deal with it :/ I want to simple get voucher code from cart to my module - For me there is no difference if it will be from prestashop voucher box, or my customized box,but so far I cant find a solution how to do this, in any of these ways.Maybe you will have any ideas? Thanks. 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