Jump to content

Greg1234

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by Greg1234

  1. I have a similar problem, there should be an easy option to update prices. @ENS Enterprises you said it can be achieved by import, but how? How can you import prices of combination? This is impossible, you'd have to prepare whole the attributes and combinations csv to be imported, with valid products IDs and so on. There should be an option to update product/combination just having it's SKU, either programmatically or by import.
  2. I know this subject has been discussed many times, but so far i cannot get the solution. Some of my strings (from theme, or from my module) are not showing up to translate in BO. I have cleared the cache, my child theme is not named "classic", I've reset the modules, refreshed the front office pages and nothing. I have changed the double quotes to single quotes, I've tried many different domains: Shop.Theme.Mycustomtheme, Shop.theme.mycustomtheme, Modules.mymodule.myfile, or even the old style d="mytranslations". Some of my translations update and appear, but some don't. It looks like there is some caching bug or something, no matter what I do the translation string doesn't want to appear anywhere in the back office. <h2>{l s='Related products2' d='Modules.Mbrelatedproducts.Template'}</h2> <h2>{l s='Related products2' d='Shop.Theme.Mycustomtheme'}</h2> The .tpl is 100% there, cause above duplicate strings appear in front office, I've put it outside of smarty {if}{/if} condition, but it also didn't work. Does anyone have any idea what can be the problem?
  3. I had same problem, after saving new "payment preferences" (carrier restrictions in my case). The payment stopped working for one carrier. Resetting payment module helped. Edit: actually id didnt, I have two carriers and no matter what I do always for one the payment is unavailable (despite settings in "carriers restrictions" which I keep always selected). There is some bug with how the payment module decides if it can be used for specific carier.
  4. Thanks that you wanted to help. For anyone also having this problem, I have already found my answer and I wrote it in other post:
  5. Thanks knacky, your code is almost what I need, but instead of $product->price (which in my case displays 0.000) should be $product->getPrice(). But with the main issue you helped me, which was the Locale: This was how I was trying to use it, and it will not work: Locale::formatPrice($price, $iso_code), it has to be done as you wrote: Context::getContext()->currentLocale->formatPrice($price, $iso_code); or in the module: $this->context->currentLocale->formatPrice($price, $iso_code);
  6. How can I get product's price? $product -> price displays 0.0000 cause the product has combinations. I'd need to get the default, minimum price formatted with currency and it seems that his is almost impossible to get, or at least very unclear and complicated. How can I get the price that is displayed in the category list where products miniatures are? this "Price from..."?
  7. Hallo, In Tools.php it is written to not use displayPrice() method anymore, and use Locale::formatPrice() instead. But when I want to use it it gives me error: Attempted to call an undefined method named "formatPrice" of class "Locale". Anyone know why is that?
  8. Hello, I have disabled all the cache settings, in advanced parameters > performance almost everything I have disabled. But still there are files generated in directory var > cache > dev And this cache is done so badly, that I don't see changes that I do, I need to manually remove this directory content via FTP or SSH and then my changes apply. Why is that cache being generated despite of my settings? Why is this cache done in a way that it doesn't recognise something has changed? And why clicking on the "clear cache" button in back office the cache directory is not emptied?
  9. If anyone else had problems with it: It turns out, that to get page title (not page meta title) you have to use $cms.meta_title, and to get page meta title you have to use $page.meta.title. This is not only confusing, but just incorrect. Meta title is not equal title, but they are used interchangeably in the code.
  10. I believe this is a bug, during editing CMS page, there is field "title" and it's described that it should display in template h1 But not only the classic template uses meta title instead of this, but also the "title" in $page variable in .tpl is empty: I think some developer who made it doesn't get the difference between meta title, and page title. These are two separate things, used for totally different purposes. Does someone know, how can I get the page title (not meta title) in the tpl, using some built in mechanism? I know I can query the database, but this is very basic thing and I am sure there has to be some prepared way to do it.
  11. Hey, It would be very helpful to have list of all categories together, right now it is very strangely done (and very unintuitive), I'd say it is done wrongly. Cause you cannot find a category, unless you know exactly what are its parents. So for example if I want to check which category is the category id 67, I need to know its parents, cause it will not search it for me in the top level list. The same when you want to edit category, but you only know its name, if it is not in the top level categories, then the search doesn't work, and the whole idea behind search is to find something that you DON'T KNOW where exactly it is, or don't see it right away. Or is there some way to find a category by its name?
  12. I have the same problem, resetting / changing the theme (removing shop1.json) doesn't fix the problem. I see only my custom hooks registered by modules, but not by theme. This is clearly a bug.
  13. I can't find anywhere how to get the link name in tpl. There is new {url entity='cms' id='1'} way of inserting url into .tpl, but this is pretty useless if you have to hardcode the link name anyway: <a href="{url entity='cms' id='1'}">HERE SHOULD BE THIS PAGE NAME</a> We have two languages, so putting there hardcoded text is not an option, putting there {l s="page name"} and translating it also seems very not correct, in case the page name is updated in the future. Is there any way provided by PrestaShop to put a specific page name knowing just its ID (language should be taken automatically of course)? If not, doesn't it seem to be a serious lack in the {url} functionality? I hope some of you would know the answer, thanks.
  14. Is there a similar way to get a title? Usually (almost always) the link is needed to use with <a> element, and this requires also a label, I believe for one language pages it is not a problem, but it is a big problem if there is another language.
  15. This is a little silly, the information about products not being in the stock is primary an information for the store administrator, if he wants to share this with customers then it should be an option to enable, not that it is default and cannot be changed. As a workaround for this could be renaming the name of this status to something neutral like "order in process" and disable e-mail being sent with it (in shop parameters > order settings > statuses).
  16. Suddenly after logging into back office I see the error: Also when I type wrong password logging into back office it hides the login form and doesn't show any message, leaving blank nothing with Prestashop logo, I don't know if its related. Any hint what the error means and how is it caused?
  17. I need to disable the tax (tax rule) if user is "tax free" institution. None of the tax settings or tax group allows me to change the tax based on user group, only based on location. The problem is, that if our user chooses New Jersey then we have to put tax on him (this is easy to do) but some institutions are exempt from tax, so I'd put an extra field into the form asking if the customer is exempt from tax. Putting field would be relatively easy, but I can't find any information about hook that can edit / remove the tax. How can I access / edit the cart?
  18. Not working also in Prestashop 1.7.6.1 😕
  19. When I put my credentials to the login page it keeps reloading the page, the password and email are right and no error is displayed but it keeps displays login form. this is my login url: my.domain/admindirectory/index.php?controller=AdminLogin&token=THE_TOKEN&redirect=AdminDashboard So after I click 'log in' it opens this login page again, but in fact I am already logged in, because if I change the controller name in the url from Adminlogin to for example "asdf" it opens the backoffice (with me logged in) displaying message "The controller asdf is missing or invalid". When I change the controller in the url to for example: AdminCarriers then it opens a page with a message "Invalid security token" - "take me out of here", or: "I understand the risks", when I click that I understand then it opens back office. After few moments the log in screen showes up again, and again i can not login. I've cleared the cache, turned off "check the cookie IP", turned on the debug mode, cleared all cookies, manually cleared cache from ftp, removed .httaccess content, turned off plugins I don't use - nothing helped. The most strange thing is if I try to log in in private mode then it goes without problem, or other browser also work. But I was using the firefox before and there was no problem, also I have copy of the website locally on my machine and it also never had such problems. Now I see also when I click "my profile" then it again redirects me to the login page. Any idea of what can be broken? ,
  20. OMG man, I can write it myself and looks like I will have to. This still doesn't change the fact (which is the subject of this discussion) why isn't it available in prestashop. I know I can hire a developer or buy a module (read the 1st post) but this is the issue, I think it should not require investing extra money as it is a basic functionality...
  21. @ndiaga You mean newsletter subscription module? Funny you suggest this as "with no issues" solution This is not a solution. It is even far from being a work around. The issue is apparently Prestashop doesn't have this feature, and according to what you say it was decided this way 😕
  22. I would say that account registration can discourage (not link verification), but if you require people to register then the registration should be secured with e-mail verification. Yes, our customers don't contribute in any way. But there has to be a way to contact a customer, in case of payment problems, products availability, delivery delay or any other reason. So since we don't require phone number, the e-mail has to be correct. This is a first reason. Second reason is imagine someone makes an order using your e-mail address, he can make us and you some problems, not unsolvable, but also not necessary. Last reason is that if user simply provides e-mail address with a mistake, we will see the order as completed but if user doesn't contact us that he didn't receive any order confirmation (just he will assume the order didn't happen), we will have no way of finding this out, and also no way of contacting him. Sure, this is definitely true, but then there should be an option to disable or enable it, because for some (for many I believe) this is needed.
  23. Yes I think it is not super complicated, but without coding skills it's impossible to do it without module. And as I mentioned, I find this such a basic feature of online store, that it is at least surprising that Prestashop doesn't offer it, and the reasons for it are totally non understandable for me.
  24. Sorry but either your English is not good, either you still don't understand my question. I asked: when user makes an purchase and creates account, why there is no mechanism that checks if user is owner of the provided e-mail address? Despite of problems coming from user made mistake in the e-mail, additional problem is that some bots can make hundreds of fake accounts, or someone can use other person data to create a purchase. Also explain me please what this sentence means: "Furthermore, websites usually request an email address for an email address and update the status of their order."
  25. I am sorry but I don't understand a word from your answer. Have you really understood my question?
×
×
  • Create New...