
imagetag
Members-
Posts
20 -
Joined
-
Last visited
imagetag's Achievements
-
imagetag started following LazyCircles
-
LazyCircles started following imagetag
-
Get image link of a product
imagetag replied to LazyCircles's topic in Addons, modules and themes developers
Which products do you want to display? By the way, getProducts is a static function, so you could call it Product::getProducts(....). It returns an array of products, over which you could iterate, with foreach for example, and in this array the product id is behind the key "id_product". P.S. You could walk to this array by reference an add the url to your product array. The smarty assign has to move down to the end of the function, of course. -
Hi, no, I was talking about the servers error log. It's almost impossible to guess where you'll find this on you server, because we don't know your server setup. You may want to run phpinfo, you shall find the path to your error log there. If you have no root access, check your FTP or the coniguration panel of your hoster. Regarding your 2nd question. A white page is most commonly an unfetched error, so that the code execution stopped before the page, or at least a part of the page was rendered. All validations run through the class validate. You may look at the head of the product class (fields section) to see, how this is configured and called. But as mentioned. I don't think, that this will help you, fixing your problem. Regards Peter
-
Consultig the error_log may help.
-
Subcategory depth list in products page
imagetag replied to aoggero's topic in Addons, modules and themes developers
It is possible, you can always create an instance of your root category and use recurseLiteCategTree on it. The first parameter defines the depth, so you could query that in depth. If you want to start by the product category, you have to query that before. But remember that could be more than one. -
Get image link of a product
imagetag replied to LazyCircles's topic in Addons, modules and themes developers
As far as I can see, you forgot to iterare over your products. Static getCover in the products class awaits a product id as parameter, no array. -
You say, that 381 lines fail. If some, or at least one succeeds, I would recommend to make yourself a short csv with a set of winners and losers. Since csv is a text format, a manual comparison should be possible.
-
Hello, if you're going to write a module, try to stick to the existing functions. That doesn't meand, that you wouldn't have to write your own queries, but even than, use the DB class to fetch and write. If you need to display and edit objects of any kind, look at the helper classes. These will help you, to develop grids and such much faster. Webservices are nice, if you want to let 2 servers to communicate with each other. But even the webservices rely on the core classes . If you once got the basic object & controller model, you will be able to quickly check, which functions could be reuses and which need to be written by you. Last but not least, whenever possible, use hooks instead of overwrites, nevertheless this doesn't work in every case, or sometimes you would have to spend 5x more time to shio around. Regards Peter
-
Display manufactures data on category
imagetag replied to matys1001's topic in Addons, modules and themes developers
You could achieve this by changing the category.tpl. Look for the subcategories there. You could fetch all manufacturers by iterating through the products and store them in an array. ( I would prefer to write a micromodul for that, but it could also be done in pure smarty. ) You could then iterate over all manufacturers and display whatever you like (instead or in addition to the subcatergory block. You'd have to change the loop, of course, to make it suitable for your array and the manufaturer object. Regards Peter -
Danke erstmal für die schnellen Antworten. Einen Shop dazu würde ich aufsetzen, wenn es soweit ist . Wie erwähnt gehören manche exklusiv den Kunden, aber ich nenne gerne mal ein paar Beispiele: Ein Modul zur Personalisierung von Druckerzeugnissen Ein Modul zu Bestellfreigaben Ein Modul für Mietartikel Ein Shortcodemodul, das auch auf CMS Seiten funktioniert Mehrere Importer, um Abbrüche bei großen Listen zu umgehen Ein Modul, das Kunden ermöglicht Dateien in Ihrem Profil zu speichern Diverse Exporter für Lexware Beste Grüße
-
Hallo liebe Gemeinde , durch meine Arbeit für Kunden habe ich mittlerweile rund ein Dutzend Prestashop Module entwickelt. Nun sind mir dabei Ideen gekommen für Module, die auch für andere Shop-Betreiber interessant sein könnten. Da ich aber leider von meiner Arbeit leben muss, würde mich interessieren, welche Erfahrungen ihr dabei gemacht habt. Also wie hoch die Bereitschaft ist für Module Geld auszugeben. Ich hatte mal Google nach Statistiken befragt, aber leider ohne Erfolg. Würde mich freuen, etwas dazu zu hören. Viele Grüße Peter
-
The following module(s) could not be loaded
imagetag replied to ronoch's topic in Configuring and using PrestaShop
I just found this old thread, but the solution didn't work for me. The other solution I found was to rename the .htaccess in the module folder. This didn't work either. After renaming x modules, I tried the most simple solution: I cleared the cache Just in case, that anyone else has such problems... -
Honestly, I've no idea what you mean. Maybe you could give us some more details?
-
Configuring it? I wonder, that you have a configure button at all, because you defined no configuration at all. As for now, your module should only be installed or uninstalled.
-
I think you will have to override your AuthController. Look for processSubmitLogin(). In this function you should find a redirect to "my-account", in case that no "back" parameter is given. Change this to something like: $link = new Link(); Tools::redirect($link->getPageLink("index")); Not tested, but shouldn't be too wrong
-
Maybe you managed it yourself by the time, but if not, please post your code. In general, you need a product instance to call the function, calling it like Product::getAttributesResume won't work, because the function refers to $this->id_product. So you would have in call $product->new Product($id_product) first and afterwards $product->getAttributesResume($id_lang).
- 5 replies
-
- attributes
- product attributes
-
(and 2 more)
Tagged with: