Jump to content

rastafermo

Members
  • Posts

    14
  • Joined

  • Last visited

3 Followers

Profile Information

  • Activity
    Developer

rastafermo's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi everybody, I need to put an extra price to the shipping cost for a list of days, for example december the 25th, o january the 1st, or the mother's day. (we need to apply the rule if the user wants to ship his product on these days) For example, I have a shipping cost of 5€, and in those days I want to add 3€ as an extra, so the final shipping cost will be of 8€. But only in certain days, and for every product and every category. I saw different developer modifying cart rules with cronjob. Can somebody tell me if is this possible in my case? If yes, can somebody explain me how to do it? Thank you very much prestashop version 1.5.6.0
  2. Thank you, this is helpful indeed. The problem is that we have about 3000 possible combinations, and it's not a good practice in this case to set the price for every single combination. If tomorrow we need to update a variable that affects the price, we need to update manually 3000 of entries. We need to use our own rules to evaluate the price: I thought about override Product.php getPriceStatic or priceCalculation, but I can't understand how to do it properly. When you talk about the upload: are you telling me that in 'product.tpl' I can change the rules for the upload? Because I need drag'n'drop, I need to check file resolution (width x height), I want to allow people upload every image type they want (not only jpg, gif or png), and the images could be max 16MB (not 2MB). How can I achieve this goal?
  3. hey, I have the same problem with prestashop 1.4.9... did you solved it? how did you do that?
  4. Thank you for the advice. The prestashop version is 1.4.9. The original page is this one http://imaginashop.com/es/ . There is a category called "cuadros personalizados", which contains 6 different products. Every product is a different printing support, with fixed sizes, each one of them with a corresponding cost. The user is supposed to update a photo in order print it with the selected printing support and size. Then he can add it to the cart and proceed with the order. The new page should be a little different, and needs to have similarities with this page http://www.defotoacuadro.com/ . The customer wants the user to upload a photo, choose between different materials, color filters, sizes, and so on. An example of what the new page should do is here http://imaginashop.com/demo/index.php Every material has is own rule for the price evaluation. I made a class "Material.js" with some properties that every material has in common with each other, and then I made 6 classes, one for each material; in those classes are set the necessary variables useful in order to evaluate the price. I think that more or less there is everything necessary in order to understand what is going on. I just need to understand if I'm supposed to write an entire module, or it should be enough to override some files, like "Product.php", "ProductController.php" and something like that. Or probably there is a way that allows me to keep my code and introduce it in prestashop. Thank you very much
  5. Buongiorno a tutti, sono nuovo in prestashop ed è più complicato del previsto iniziare. Ho sviluppato una pagina per un'azienda che si occupa di stampe digitali, e vuole mettere a disposizione degli utenti una funzionalità che permettaloro di caricare una foto, decidere il materiale su cui stampare, decidere le dimensioni e altre cose. In funzione di tutti questi dati viene calcolato il prezzo. Io ho sviluppato una demo per i clienti con php, jquery e affiliati, e ora dovrei introdurre il tutto (o meglio, riscrivere), in prestashop, in quanto mi è stato detto solo ora che il sito è stato fatto con questo CMS. Vorrei capire come gestire la cosa a grandi linee. Ho visto che l'architettura è MVC, per non riesco a capire come integrare le mie funzioni. Devo creare un modulo da zero? Devo solo modificare Product.php e ProductController.php? Dove posso definire le mie regole per i prezzi? Devo per forza fare l'override o posso mantenere la mia pagina così com'è e accedere al database secondo altri metodi? Grazie per l'aiuto
  6. I thought this forum was for troubleshooting, but there is nobody looking at it...
  7. There is a method to use non-CMS pages instead? I'd like to maintain my logic and my files, so that prestashop can see just a "black box". My page will only need to get some info from prestashop DB, just like the user id, and output other info about the order and the custom options selected, so that I can add everything to the cart. Probably it would be clear with the links to the original page, and the work in progress module. Let me know if anybody is interested or could help me? Thank you
  8. Hi everybody, I'm new in prestashop development and I need to understand how to start in the quickest way. I saw the developer's guide, and I just like to understand where I'm supposed to look at, in order to replace a behavior in a web site (that includes product selection and customization) made with prestashop, with something written indipendently. The original web page let the user select a product, choose different settings and upload an image, then add the custom product to the cart. So there are different accesses to the database, but I have no idea of what tables are read/written to do that. It's a webpage developed by another person, and I just need to make some changes to that work. The new web page will do more or less the same thing, but with a totally different logic. I just need to understand if I have to make a module, to override an existing module, or probably I just need to override a class and a controller. It is my first experience with prestashop. I also need to import different libraries, like Jcrop, Bootstrap, Jquery and so on. Sorry for the silly question Thank you very much
  9. the __PS_BASE_URI__ in the config/setting.inc.php is set to the folder that contains all the project, like "/projectFolder/"..I use xampp and i have htdocs with different projects in it..one folder for each project..one of these folders is the one set in __PS_BASE_URI__ PS_SHOP_DOMAIN is "localhost", without "/"..also PS_SHOP_DOMAIN_SSL is set to "localhost"
  10. Yes, I tried it in Chrome, in firefox, in safari and in opera. Still the same error
  11. Hi everybody, I'm a new user here and I'm trying to understand how to make things work. I need to modify some features of a website done with Prestashop 1.4.9, so I downloaded it in my machine, I've exported the database, and I've create a localproject, following the thounsands of tutorial about migrating a prestashop website. The steps are always the same: - download with filezilla - DB backup - new project in local server - import database - modify config/setting.inc.php In order to make things work, I need to update the database too. In fact, there are some data, such as the domain name, or the ssl, that need to be set to "localhost". After that, there are no more php errors, or connection errors. Just a 324 error_empty_response. I've already flushed the cache and created the .htaccess file, but the 324 error is still there. I have no idea of what is going on. I'm so desperate and frustrated. If anyone could tell me something, or just tell me "hey, you can find your solution in this other topic!!", it would be great. Thank you very much.
×
×
  • Create New...