Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

MichaelEZ

Generous Backer
  • Content Count

    104
  • Joined

  • Days Won

    6

Everything posted by MichaelEZ

  1. Hi, ty and those are just minor tweaks that make our live here easier. Well before it was used to change lots of them at once hence that code, but thank you, gona update it and add ModuleAdminController as u recommended ๐Ÿ˜‰
  2. Simple and fast - Create file order_status.php: <?php $allow = array("192.168.0.1", "192.168.0.2", "192.168.0.3"); //allowed IPs if(!in_array($_SERVER['REMOTE_ADDR'], $allow) && !in_array($_SERVER["HTTP_X_FORWARDED_FOR"], $allow)) { header("Location: http://youraddress.com"); //redirect exit(); } require(dirname(__FILE__).'/config/config.inc.php'); if(isset($_GET['data'])){ $name = $_GET['data']; $new_order_state = 34; $get_orders = array(); array_push($get_orders,$name); foreach ($get_orders as $orders) { $order = new Order($orders); $_state = (int) $order->current_state; if ($_state == $new_order_state) {Continue;} elseif ($_state == 33 ) { $history = new OrderHistory(); $history->id_order = (int)$order->id; $history->changeIdOrderState((int) $new_order_state, $order->id); if ($history->save()) {echo '<div class="ok-status"> OK - '.$orders.' </div><br />';} else {echo '<div class="nok-status"> Error - '.$orders.' </div><br />';} } } } else { $name = "Empty"; } ?> <style> .ok-status { font-weight: 600; font-size: 50px; line-height: 60px; color: green; } .nok-status { font-weight: 600; font-size: 50px; line-height: 60px; color: red; } .send-input { height: 65px; width: 300px; font-weight: 600; font-size: 50px; line-height: 60px; } .send-button { height: 65px; width: 150px; font-weight: 600; font-size: 50px; line-height: 60px; background-color: #0093d4;} </style> <?php echo "<form method='get' name='form' action='order_status.php'> <input type='text' placeholder='ID ...' id='focus' class='send-input' maxlength='6' minlength='6' name='data'> <input type='submit' class='send-button' value='OK'> </form>"; ?> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> <script> $(document).ready(function(){ $('#focus').focus(); }); $("body").click(function(){ $('#focus').focus(); }); </script> <? On top u can allow access only to your IP. So $new_order_state = 34; ( here u set up new state with id, u can look it up in backend - orders - statuses ), next u can edit this part: elseif ($_state == 33 ) ( so for me it means it wont update state to 34 if original state wasnt 33 u can change it by yourself - for example: elseif ($_state != 33 ) means it update every order but with state 33 and so on.. ) Style - customize as u wish Form part, u can also carefully edit it by yourself, we have orders with id 160000+ so i set up max a min length to 6 characters. (action calls to itself so same as we named our file - order_status.php ) Next we call jquery and few simple lines to autofocus input after realod and by clicking on body. Save file and upload it to root of yr TB - to access script just type /order_status.php after yr domain. (we use iframe in prestato display it on dashboard and etc ) We use barcode scanner to scan id from invoice, then u dont have to type, u just scan, scan, scan,... Thats it ๐Ÿ˜‰ I do recomment testing it on your demo / test first..
  3. MichaelEZ

    Modules lists

    Hi, so i can list few of them: Front for search we use JoliSearch as for filter Amazzing filter for sliders !Sliders Everywhere! and for menu - Globo Mega Menu (looking for another option right now - i would like to check out ets megamenu ๐Ÿ˜„ ) Back IMPROVED ADMINISTRATION OF ORDERS for custom "invoice" - ba_prestashop_invoice PrestaSMS and few more specific for CZ / SK market, and some for accounting software
  4. Hi, mby someone find this usefull: Open theme folder and find header.tpl, inside HEAD tag insert: {if ($page_name == 'product' or $page_name == 'manufacturer' )} <link href="{$css_dir}manufacturer/{$product_manufacturer->name|replace:' ':''|lower}.css" rel="stylesheet"> {/if} Now our link css will show only on product and manufacturer page. Next create folder inside theme/css/ and name it manufacturer (name depends on you - but dont forget to edit link) Last, just upload your css and name it after manufacturer (without spaces, and and lower case because {$product_manufacturer->name|replace:' ':''|lower} ) - so for Bee Hive u need to create beehive.css Thats it ๐Ÿ˜‰
  5. For sure https://addons.prestashop.com/en/search-filters/18575-amazzing-filter.html what i like is that u can use filter on manufacturer / best sales / seearch / homepage/ ..etc ๐Ÿ˜‰ also very simple filter setting for spec cat. and many options
  6. MichaelEZ

    Demo site

    Well whats goin on? https://thirtybees.com/demo/ I did recommend TB to friend, but he is unable to check out demo site.
  7. Hi thanks for reply, we are using amazing filter now ๐Ÿ˜‰
  8. that worked ๐Ÿ˜‰ needed to press it like 5x times
  9. Well after clicking upgrade, it says upgraded successfully - but shouting label is still present
  10. I can see wishlist in my list too, but its shouts at me: UPGRADE ME! ๐Ÿ˜„ thats why i was searching for last version out there. Go check github, ty for advices
  11. Hmm tried it in incognito mode, yet no changes - same behavior ๐Ÿ˜• https://store.thirtybees.com/shop-modules/front-office/block-wishlist Update: now i can download others modules just fine, but this one ๐Ÿ˜„ ( or the second random module i tried to download before had same issue as wishlist)
  12. Hi, after trying to download from marketplace Iยดm getting redirect to landingpage. anyone else?
  13. Hi, I need little help with adding second custom font into invoice. Idea is that I ll double output for invoice ID - one with basic font (i think helvetica), and second invoice ID will be in Code 128 (bar code). Any direction? I did find some presta releted topics, but coudnt make it work.
  14. sorry i dont read full threat.. well i call it separately in header tpl // well many modules use -> @import css
  15. css? https://www.w3schools.com/cssref/pr_mix-blend-mode.asp .removebg { mix-blend-mode: multiply; } its not 100% but simple solution ๐Ÿ˜„
  16. Well for me it works on those tpl
  17. {if empty($address.phone)} have number {else} dont {/if} into address.tpl in address block or above {if empty($multipleAddresses.phone)} Y {else} N {/if}
  18. hi, is anyone having problem with customer message not bein stored into db?
  19. Well mine works that way, can have anything in cart but still shows only pick at store
  20. problem is our shop - not OPC we have problem with a lot of modules (had to custom them) - that is reason why i did not even contact datakick.. and where am i writing i do not like it? why woud i buy one if i dont ๐Ÿ˜‰ (im trying to figure it out on my own)
  21. well he was asking about OPC so a gave my answer, i bought chex too, and im not using it too (unable to aply changes - and make search not working for us..) ๐Ÿ˜„
  22. imho https://store.getdatakick.com/en/modules/chex-one-page-checkout ๐Ÿ˜‰
  23. open product setting - shipping and add only Pick up at store option, thats it
  24. sure, go to module positions page and find hook "displayPayment"
ร—
ร—
  • Create New...