-
Posts
15 -
Joined
-
Last visited
Contact Methods
- Website
Profile Information
-
Location
Greece
-
First Name
Ioannis
-
Last Name
Gyftakis
Recent Profile Visitors
1,110 profile views
limitcracker's Achievements
Newbie (1/14)
1
Reputation
-
Hi, yes I did. But I did using ALTER TABLE queries and they are working fine. I managed to solve the problem by also creating the columns also in ps_product_shop table! I don't know why it was required though. I was developing in PS 1.6.1.9 Br, John
- 5 replies
-
- actionproductsave hook
- module development
- (and 2 more)
-
Hi @Minsky_ae I think I posted under international section. Where else I could post for more to see? Br, John
- 5 replies
-
- actionproductsave hook
- module development
- (and 2 more)
-
limitcracker changed their profile photo
-
Hi, What else I need in order make some custom fields in Product class and save them in columns I created in ps_product table? If get some errors like: Unknown column 'price_recent1' in 'field list' What I have done: I tweaked Product.php in order to add the three fields: ... class ProductCore extends ObjectModel { ... public $price_recent1; public $price_recent2; public $price_recent3; ... 'price_recent1' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'), 'price_recent2' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'), 'price_recent3' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isString'), ... } then in mymodule.php I added the displayAdminProductsExtra hook in order to display a Tab inside the product edit backoffice: public function hookDisplayAdminProductsExtra($params) { global $smarty; $product = new Product((int)Tools::getValue('id_product')); if (Validate::isLoadedObject($product)) { $this->context->smarty->assign(array( 'price_recent1' => $product->price_recent1, 'price_recent2' => $product->price_recent2, 'price_recent3' => $product->price_recent3)); return $this->display(__FILE__, 'views/templates/admin/sleed.tpl'); } } and finally I display them in mymodule.tpl: <div id="mymodule" class="panel product-tab"> <input type="hidden" name="submitted_tabs[]" value="mymodule" /> <h3 class="tab"><i class="icon-info"></i> {l s='MyModule'}</h3> <div class="form-group"> <label class="control-label col-lg-3" for="price_recent1"> <span class="label-tooltip" data-toggle="tooltip" title="{l s='Recent Price #1'}"> {l s='Recent Price #1'} </span> </label> <div class="col-lg-9"> <input type="text" id="price_recent1" name="price_recent1" value="{$product->price_recent1|htmlentitiesUTF8}"/> </div><br> <label class="control-label col-lg-3" for="price_recent2"> <span class="label-tooltip" data-toggle="tooltip" title="{l s='Recent Price #2'}"> {l s='Recent Price #2'} </span> </label> <div class="col-lg-9"> <input type="text" id="price_recent2" name="price_recent2" value="{$product->price_recent2|htmlentitiesUTF8}"/> </div><br> <label class="control-label col-lg-3" for="price_recent3"> <span class="label-tooltip" data-toggle="tooltip" title="{l s='Recent Price #3'}"> {l s='Recent Price #3'} </span> </label> <div class="col-lg-9"> <input type="text" id="price_recent3" name="price_recent3" value="{$product->price_recent3|htmlentitiesUTF8}"/> </div><br> </div> <div class="panel-footer"> <a href="{$link->getAdminLink('AdminProducts')|escape:'html':'UTF-8'}{if isset($smarty.request.page) && $smarty.request.page > 1}&submitFilterproduct={$smarty.request.page|intval}{/if}" class="btn btn-default"><i class="process-icon-cancel"></i> {l s='Cancel'}</a> <button type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> {l s='Save'}</button> <button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> {l s='Save and stay'} </button> </div> Thanks for your time! -John
- 5 replies
-
- actionproductsave hook
- module development
- (and 2 more)
-
Hi thanks for your reply, I am on PS1.6.x . I managed to do it by calling in a myexample.tpl looks like this: { extends file = 'product.tpl' } {block name='page_content_container'} <h1>{l s='Recent Prices' mod='sleed'}{$price_recent1}</h1> {/block}
- 2 replies
-
- module development
- template inheritance
-
(and 2 more)
Tagged with:
-
Hi, I am making a module and I would like to add a section in Product's Page using a module, so I don't have to manually edit the PS. *.tpl files of product. How I can edit my module's .tpl and automatically be inserted in the product's appropriate .tpl? Can this be done using Template Inheritance? Template Inheritance official PS page i.e. I would like to have a banner(block) that will have 2 text testimonials.
- 2 replies
-
- module development
- template inheritance
-
(and 2 more)
Tagged with:
-
Install Language problem: 23%
limitcracker replied to lcssanches's topic in Installing PrestaShop for the first time
Hi, its 2020 and the problem occurred to me as well while trying to install v1.6.1.6 stable. The file that solved that is not there for me to tweak any ideas? Br, -
Hi, I would like to synch FB store of a page with Prestashop. (above 4000 likes) So I followed the guide and installed successfully the official PrestaShop module: https://www.facebook.com/business/help/922442221236307 but how I proceed after that so they are synched? So when someone buys from either one, stock reduced appropriately on its own? Like the FB feed app does for Shopify does, for example? Br, John
-
limitcracker started following ilias-s
-
Hi, εγώ το χρησιμοποιώ σε PS 1.7.3 και μέχρι στιγμής όλα καλά. Αντιμετωπίσζω όμως ένα θέμα με τη συνεργασία με άλλο module που δίνει το XML Feed στο Skroutz. Ενώ εγώ στέλνω πχ P207C233 το Analytics Module στέλνει μόνο το ProductID πχ 207 και έτσι το Skroutz με κόβει λόγω της ασυνέπειας (θα περίμενε P207C233). Το έχει λύσει κάποιος αυτό; Κάποια ιδέα; Ευχαριστώ την κοινότητα!
-
Θα ήθελα να ευχαριστήσω πολύ τον author και ύστερα όλη την ομάδα για το free module! Μπορεί κάποιος να το κάνει repo για να μπορούμε να έχουμε πλήρη εικόνα και να μπορούμε να λύνουμε πιο εύκολα τα bugs?
-
any advices for PS 1.7.x ? DB Tables have changed names as I can see.
-
How to remove id_product_attribute from product links?
limitcracker replied to Kerm's topic in 1.7.2.x [Current]
Has anyone tried that?? -> PIRATED This guy says that this module is capable of removing id, and attribute_id also. Don't know if it's true! -
Για courier γνωρίζει κανείς πως θα γίνει?
limitcracker replied to stathopon1@'s topic in Ελληνικά [Greek]
@FotisM Ωραία ιδέα μου φαίνεται αυτό με το παραλαβή - reception αλλά οι ΤΚ που συμπέφτουν σε Δυσπρόσιτες Περιοχές και σε Νορμαλ περιοχές πως τις χειρίζεσαι? Βάζεις όλους τους ΤΚ που έχουν έστω και μια ΔΠ να είναι στην κατηγορια Reception? Από την εμπειρία σας τι είναι πιο user friendly? Να χωρίσεις σε 2 κατηγορίες μια όπου θα είναι οι ΤΚ που δεν έχουν ΔΠ περιοχές και άλλη μια που αν έχει μέσα έστω και μια ΔΠ περιοχή να αναγράφει ότι "Σε περίπτωση ΔΠ η παραλαβή θα γίνεται από το κοντινότερο κατάστημα ACS" ή Να έχεις μια κατηγορία και να το λες κάπου στο site ότι "Σε περίπτωση ΔΠ η παραλαβή θα γίνεται από το κοντινότερο κατάστημα ACS" Με το 1 είσαι ξεκάθαρος αλλά μπορεί να φοβίζει κόσμο αυτή η αναφορά. Με το 2 μπορεί κάποιος που είναι σε ΔΠ να νομίζει ότι δεν είναι και να δει στο τέλος ότι θα χρειαστεί να πάει μέχρι το κοντινότερο ACS να παραλάβει. Κάποιο σχόλιο ή παρατήρηση στα παραπάνω? Ευχαριστώ!