Jump to content
thirty bees forum


  • Posts

  • Joined

  • Last visited

  • Days Won


Gotabor last won the day on April 2 2019

Gotabor had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Gotabor's Achievements


Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges




Community Answers

  1. Hello Chalkie In the default product customization you can upload jpg, png.The problem is less about uploading an image than the customer uploading a ready to print file. Which most of the time won't be the case... Since they'll upload funny things from the net (lowres, distorted and so on...). There are a lot of web to print solutions nowadays. If you just want to make pre-made t-shirts on which the customer add a custom line of text, I would recommand Pitch Print (I use it since 2015). If you want full customization + ready to print file you'll have to look at another one. If possible something that works with an API and integrate an Iframe instead of a fully integrated module because that would be simpler to maintain with the upgraded versions of TB. Overall, take the problem from the production side. Gather all the restraints and conditions to make a good product. And only then look for the module that check for all (or almost all) your needs. The customer comes last, take him for a goat and put him on very narrow tracks. This might seems harsh, but most customer aren't graphic artist or printing technicians. They just want a nice t-shirt, and you want to deliver them that nice t-shirt but without spending hours to correct their mistakes.
  2. Hello Script-Fu, When you download from CPanel -> Backup it gives you a mydatabase.sql.gz (compressed file) while from PhpMyAdmin you get mydatabase.sql Bigdump worked for me several months ago, you should have no problem to import on WAMP or live server. It can work with both database file.
  3. Maybe something to do with the shop_url table ?
  4. Hello, The cart rule is behaving as excpected. If you want to use the cart rule and display a message on the cart, you might want to try this free module from Green Mouse Studio : https://greenmousestudio.com/en/getfreeshipping Hope this will help you.
  5. Something that already exist with paid module from PS 1.6 marketplace (20/25 bucks) is to change the state of the order directly from the order list through ajax instead of going into each order and changing them. This feature can be more or less useful depending on the process of each merchant. It's a little quality of life feature not a priority.
  6. First, do you have any clean backup from Cpanel, your host ? The fastest way to get back online would be I think to download your current FTP and database and keep them in an "infected" file on an external disk, so you can access them later. Then delete everything from files to database and reupload the latest non corrupted files. That's what I did a few years back when a wordpress blog was hacked. Usually hackers setup multiple backdoors when/where they can, so a clean install is the safest way. And of course change your admin password + user and password that link the database to your prestashop if you do that. Otherwise your hacker might come back sooner rather than later... Hackers don't care if you are small or big. Actually, smallest company are more badly hitten when a hack occurs since they don't have the people to simulate attacks and at the ready when something wrong is happening... That's why ransomware are very dangerous. From what you are saying hack could either be coming from you or it could be related to a flaw on your provider part. If it's from the provider, changing would be very wise. And if you are based in Europe, you also have to comply with the GPDR and announce to both customer and the organism responsible to apply the GPDR that you have been hacked (I believe it's 48/72H to the organism after you have discover the hack)... I'm no expert in hacking issues but I hope you'll find a few useful tips in there. Good luck with solving your issue.
  7. What kind of mail are you sending that needs to be linked to the shop ? Abandonned cart and that kind of features, or is it "just" for promoting to all of your subscribers new products, black friday offers and newsletters... If it's only for the latter I would go and work only on a third party tools. It's a single web shortcut, and you have no compatibility issue to worry about. The biggest issue I can see is to think about updating the database.
  8. Hello Thirty Bees community ! I had to come up with a little hack to respond to a problem I found little to no answers on google. So here is a post for people looking for that, and maybe even an idea to integrate in Thirty Bees core (I'll let you decide about that 😉). What was the need ? Some people on my company have to deal with orders but don't have the right to go in the product pages. And since the reduction amount is only displayed there by default in both Prestashop and Thirtybees, I've had to display that information on orders related documents. Hence my decision to display it on both the order mail and the order page. Setup the mail The setup for the mail needs two steps. First adding the reduction amount in the email : public_html/modules/mailalerts/mailalerts.php <td style="padding:0.6em 0.4em; text-align:right;">'.Tools::displayPrice($unitPrice, $currency, false).'</td> <!--The line you are looking for--> <td style="padding:0.6em 0.4em; text-align:center;">'.(int)$product['reduction_percent'].'%</td> <!--The line you add just below--> Second you need to add the TH so your table mail don't look broken. You need to edit the new_order.html template : public_html/modules/mailalerts/mails/LANGUAGE/new_order.html public_html/themes/YOURTHEME/modules/mailalerts/mails/LANGUAGE/new_order.html <thead> <tr> <th style="border:1px solid #DDD!important;background-color:#fbfbfb;font-family:Arial;color:#333;font-size:13px;padding:10px">Reference</th> <th style="border:1px solid #DDD!important;background-color:#fbfbfb;font-family:Arial;color:#333;font-size:13px;padding:10px">Product</th> <th style="border:1px solid #DDD!important;background-color:#fbfbfb;font-family:Arial;color:#333;font-size:13px;padding:10px">Unit price</th> <th style="border:1px solid #DDD!important;background-color:#fbfbfb;font-family:Arial;color:#333;font-size:13px;padding:10px">Reduction</th><!--The line you add--> <th style="border:1px solid #DDD!important;background-color:#fbfbfb;font-family:Arial;color:#333;font-size:13px;padding:10px">Quantity</th> <th style="border:1px solid #DDD!important;background-color:#fbfbfb;font-family:Arial;color:#333;font-size:13px;padding:10px">Total price</th> </tr> </thead> Setup for the order page Same thing that the mail you need to first add the reduction amount and then edit the head of the table so it don't look broken : public_html/YOURADMINFOLDER/themes/default/template/controllers/orders/_product_line.tpl <!--The line you are looking for--> <td> <span class="product_price_show">{displayPrice price=$product_price currency=$currency->id}</span> ... </td> <!-- Add just below --> <td> <span class="product_price_reduction">{$product.reduction_percent} %</span> </td> public_html/YOURADMINFOLDER/themes/default/template/controllers/orders/helpers/view/view.tpl <!--The line you are looking for--> <th> <span class="title_box ">{l s='Unit Price'}</span> <small class="text-muted">{$smarty.capture.TaxMethod}</small> </th> <!-- Add just below --> <th> <span class="title_box ">Reduction</span> </th> What are the problems ? To integrate this code in the Thirty Bees core will require some rewriting since mine is definitely sloppy : - no translation for the header of the tables. - I only display percentage and not the possibility of reduction by amount - I don't display the original price - I haven't gone that far but it should be noted that the customer mail should also have info about the original price, the reduction amount and the new price. So, here you have it guys, I do hope this will help some people out there. Sources : Big thanks to Nemo and Peter on this thread which help me a lot https://www.prestashop.com/forums/topic/602779-display-product-reduction-in-backoffice-order-details/
  9. Here is the way to disable it on the TPL. It's good to know that there were issues with the css method. Though it's kind of curious since completing that field isn't mandatory for the customer to begin with.
  10. Thank you Wakabayashi ! I didn't know that cookies were classified in first party (the domain currently browsed) and third party (advertisers and retargeting). So I thought that the removal of third party cookies meant cookies others than those of Google. I guessed that's a lesson learned from now on 😉
  11. Hello everyone, I know this is old news for most of you, but I've been reading recently that google was planning to get rid of third party cookies in Chrome on the long run. Is it only ad related, or will it also kill cookies like those used by Prestashop and Thirty Bees to manage the carts of unlogged users ?
  12. @vzex, your idea of a "complete address" is one of many. For some people and country they won't matter since they'll be selling mostly small products and send them through standard postal way. But there are of course people selling in countrys with states having various tax rates, people selling heavy product and thus having more constraint. With heavy cargo, some carriers even have specific grids that are based on towns altitude, distance from storage center and don't take anything else into account. Not to mention people selling all over the world... And like @datakick wrote while I was answering you there are also things like VAT number which seems mandatory for some while other look at it and are thinking "not useful". Also trust @wakabayashi about modules. They are the roadway for maintenance. When I took my job I was very green and did many unclean things including hardcoding some controllers (yeah I deserve to be slapped) and now, I'm like : "The website is fine it's getting more order every year, but how can I transition to TB, or any other ecommerce from where I am and not break the thing apart ? " The answer is I just can't, and I'll have to rebuild the changes I made over the year once we decide to change the CMS.
  13. The address database table contain only the ID for the state, so there is a little something to create to get the ID and then get the state database table which is the only place where the state name is written in the database. And then replace the ID with the name. So no, nothing really complicated when you know how to write it 😉 EDIT : as for not having state, in my case I had to create them since they didn't existed in Prestashop/TB. And I think that's parly why the code don't display the states to begin with, because not all states of every country is available
  14. I think that currently the only way this can be achieved is by making modifications (overrides) on the file that can be found in controllers/admin/AdminAddressesController.php Aside of that I can't tell you specifically how to change that. I'm not that good and the furthest I went with my attempt to make this work ended up by implementing the column with the ID of the state. But I never found out how to put in the name of the states instead of the ID. (I made this on PS 1.6 not on the TB though) Overall, this problem is linked to a bigger problem. Merchents do tend to modify these lists according to their needs as an exemple I also added the the "note" field in client, order and address controller. Because I need that field as a customer code is given for our ERP system and it's faster to use this to find a customer on the website. I really don't know if this is possible, but maybe it would be interesting to look at a possibility for merchants to modify the list without touching the controllers or override them.
  15. Thanks for the warning Theo ! For TB security I just went through the module folder on our 1.08 looking for the vendor/phpunit (what is indicated on the google doc). I didn't find anything, but this shop is very basic with mostly core modules and some 1.6 compatible ones. I still advise you to check the directory. You know, security first 😉
  • Create New...