Jump to content

Codify Solutions

Members
  • Posts

    17
  • Joined

  • Last visited

Profile Information

  • First Name
    Codify
  • Last Name
    Solutions

Recent Profile Visitors

478 profile views

Codify Solutions's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hello everyone, I would like to separate login page and signup page on prestashop site but don't understand how to do it. I want it like amazon.com site. If you check amazon new customer/signup page, it is different from amazon site. It will open separately with amazon site logo and signup form beneath. How I can do with prestashop. Please help if anyone have an idea. Thanks in advance.
  2. Hi, I think you have to check following : 1] check your config/defines.inc.php, define('_PS_MODE_DEV_', false); if above is true. 2] If you can login into admin and clear your cache. Hope this will help you.
  3. Hello everyone, I am facing Data validation related issues with my module. Let me explain my problem : I submitted my module and they said all ajax/cron must be validated with tokan. My problem is I have a link in admin config layout. when I click that link I run ajax and redirect it to ajax.php on root of my module. My question is how do I pass security_key or tokan to ajax file. Jquery click event fire when I click on that link. I used : $("#linkID").click(function(e) { and inside ajax call run. ajax call url : url: '../modules/mymodule/ajax.php?token=xxxx', I checked in ajax.php file like : if (Tools::getValue('token') != 'xxxx' || !Module::isInstalled('mymodule')) { die('Bad token'); } I don't know if it is correct and Prestashop technical team reject this. Please help if someone experienced this issue with module development. Thanks!
  4. Hi, I really happy to see your article. It will help me a lot in future as well. I am also creating module and got the same problem you mentioned. Right now I am facing some Data validation related issues with my module. I don't know if this place is correct with this discussion. Let me explain my problem : I submitted my module and they said all ajax/cron must be validated with tokan. My problem is I have a link in admin config layout. when I click that link I run ajax and redirect it to ajax.php in root of my module. My question is how do I pass security_key as you mentioned in your aritcle or tokan to ajax file. What I did for now is say : url: '../modules/mymodule/ajax.php?token=xxxx', in ajax url section and I checked in ajax.php file like : if (Tools::getValue('token') != 'xxxx' || !Module::isInstalled('mymodule')) { die('Bad token'); } I don't know if it is correct and Prestashop technical team reject this. Please let me know your thoughts. Thanks!
  5. Yes, that is my problem Because xml feed have to update periodically with offers what we give to the customers. Lets see. I will make changes and try to submit module again. Thanks for you cooperation.
  6. Hi Rocky, Thanks for your answer. Can do like this to read xml feed from my module folder and then link my xml content title to any document/pdf inside my module. so People can know what we are doing and offering to them ? Is that Possible ? Thanks!
  7. Hello everyone, I have created a module and I want that feed will display inside my module from my site using XML feed. For that I have given my site feed url in the module. When I submitted module Prestashop technical team reject module due to external url. I thought an idea that while installing module means in Install function I will store that url in configuration variable in DB and later I will use it. Is that possible ? Please help anyone if any idea. Thanks!
  8. Hello everyone, I have a site where 2 modules installed. One module is modalcart_3 and another module is mine. With my module user will enter quantity for each attribute and after then click on add to cart button then it works. But when modalcart module installed this module is also worked on add to cart button so this module skipped my module ajax code and my module is not working at all. Mymodule js code for add to cart is : $(document).on('click', '#add_to_cart button', function(e){ e.preventDefault(); if ($(this).prop('disabled') == 'disabled') return; ajaxCart.addProducts(true, this, false); }); Its working fine but its conflicting with modalcart module. second thing I noticed that to see view source while adding the sequence of js files modalcart module js file add first and then my module file as module and file name start with "W" so is that the reason ? Its really strange problem for me. Please help if anyone have idea. Thanks!
  9. Hello, Well I found a way to add a row there in order total section. I don't know if its the correct way or not I did it with front end and admin section as well. Hope it helps someone. For Admin with DisplayAdminOrder hook $admin_extra_total_row = '<tr class=\"cart_total_extra\"><td class=\"text-right\">extra Fee: </td><td class=\"amount text-right nowrap\">'.$fee.'</td></tr>'; return ' <script> jQuery(document).ready(function () { $( "#total_taxes" ).after("'.$admin_extra_total_row.'") }) </script>'; For Front end: I checked the page where I want to place. For example I want to place on step 3 used hook DisplayHeader if (($check_order_page == 'order' and $_GET['step'] == '3') or ($check_order_page == 'order' and $_GET['step'] == '')) { $extra_fee = Tools::displayPrice(Configuration::get('EXTRA_FEE'), $currency); $extra_total_row = '<tr class=\"cart_total_extra_fee\"><td class=\"text-right\" colspan=\"4\">Extra Fee: </td><td id=\"total_extra_fee\" class=\"price\" colspan=\"2\">'.$wli_price.'</td></tr>'; return ' <script> jQuery(document).ready(function () { $( ".cart_total_tax" ).after("'.$extra_total_row.'") }) </script>'; } Hope if helps someone. other suggestions and ideas are welcome. I am also want to do with Invoice, email etc. for now I don't know how to do it and what hooks I have to be used with it but I will get back for this if I get anything. If someone have idea so please share. Thanks very much.
  10. Hello Everyone, I have a problem to changing order total. What I did I put Cart.php on override folder and put getOrderTotal function there. I want to add suppose $10 on final total means Total after Tax ( Grand Total ). I put my code before return Tools::ps_round((float)$order_total, $compute_precision); I added if ( my condition ) { $order_total += $myvalue; } In this getOrderTotal function it goes many times I think whenever getOrderTotal calls on payment page. but it add that amount on Total products not the final amount, so when I proceed with the order it won't change the final amount of the order. Please help. Thanks !
  11. Hi, Yes but its regarding total only. It updates the total but I want to show my charges like TAX row, as I shown my screenshot. but for that I have to modify tpl file manually I hope you understand what is the issue.
  12. Well, I tried a lot order total can be change use override in the module but I thought that for the time being I have displayed my price in order total section but what about in admin, invoice order email and order history page of my account. I can't use js / jquery all over those places. So I am finding something permanent way to do it so it appears in order total in all over the places like "Total TAX" etc. Please share ideas if someone knows. I am stuck on it last 2 days and its really frustrating . Thanks in Advanced.
  13. Thanks NemoPS for your quick reply. Let me try to override GetOrderTotal in order to show my field in order total section and do calculation accordingly. I will do and get back to you Thanks again
  14. Hi, As you said to use js to append row after tax, I did that successfully. What I did on hookHeader I put code to check page and after that I write js like below to add a row : $my_fee_row = '<tr class=\"cart_total_my_fee\"><td class=\"text-right\" colspan=\"4\">My Fee: </td><td id=\"total_my_fee\" class=\"price\" colspan=\"2\">$10</td></tr>'; return ' <script> jQuery(document).ready(function () { $( ".cart_total_tax" ).after("'.$my_fee_row.'") }) </script>'; It worked and add a row after tax. But further I want to add fee amount to the total as well as it must maintain "My fee" in order total section. e.g it shows in admin on my account order histroy, order emails as well. So for to do so like above , shall I need to override controller or classes ? Thanks!
  15. Thanks vekia for your reply. Yes I know its related to theme tpl modification. I stuck because I am creating a module for that and I can't tell someone to modify tpl file. Is there anyway with hooks or override ?
×
×
  • Create New...