Jump to content

limitcracker

Members
  • Posts

    15
  • Joined

  • Last visited

Profile Information

  • Location
    Greece
  • First Name
    Ioannis
  • Last Name
    Gyftakis

Recent Profile Visitors

1,110 profile views

limitcracker's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. 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
  2. Hi @Minsky_ae I think I posted under international section. Where else I could post for more to see? Br, John
  3. 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
  4. 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}
  5. Where do we place hookActionLoadProductTemplate( ) ? Inside mymodule.php or inside the ProductController.php? Thanks a lot for your help!
  6. 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.
  7. Hi, thanks a lot! For MAMP Pro users you can see the above fix in MAMP Pro: taken from https://stackoverflow.com/questions/51986993/how-to-disable-strict-mode-in-mysql-using-mamp-on-a-mac
  8. 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,
  9. 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
  10. hi do you put https in the domain itself? I have it as the following and I keep getting the "Too many redirects error"
  11. Hi, εγώ το χρησιμοποιώ σε PS 1.7.3 και μέχρι στιγμής όλα καλά. Αντιμετωπίσζω όμως ένα θέμα με τη συνεργασία με άλλο module που δίνει το XML Feed στο Skroutz. Ενώ εγώ στέλνω πχ P207C233 το Analytics Module στέλνει μόνο το ProductID πχ 207 και έτσι το Skroutz με κόβει λόγω της ασυνέπειας (θα περίμενε P207C233). Το έχει λύσει κάποιος αυτό; Κάποια ιδέα; Ευχαριστώ την κοινότητα!
  12. Θα ήθελα να ευχαριστήσω πολύ τον author και ύστερα όλη την ομάδα για το free module! Μπορεί κάποιος να το κάνει repo για να μπορούμε να έχουμε πλήρη εικόνα και να μπορούμε να λύνουμε πιο εύκολα τα bugs?
  13. any advices for PS 1.7.x ? DB Tables have changed names as I can see.
  14. 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!
  15. @FotisM Ωραία ιδέα μου φαίνεται αυτό με το παραλαβή - reception αλλά οι ΤΚ που συμπέφτουν σε Δυσπρόσιτες Περιοχές και σε Νορμαλ περιοχές πως τις χειρίζεσαι? Βάζεις όλους τους ΤΚ που έχουν έστω και μια ΔΠ να είναι στην κατηγορια Reception? Από την εμπειρία σας τι είναι πιο user friendly? Να χωρίσεις σε 2 κατηγορίες μια όπου θα είναι οι ΤΚ που δεν έχουν ΔΠ περιοχές και άλλη μια που αν έχει μέσα έστω και μια ΔΠ περιοχή να αναγράφει ότι "Σε περίπτωση ΔΠ η παραλαβή θα γίνεται από το κοντινότερο κατάστημα ACS" ή Να έχεις μια κατηγορία και να το λες κάπου στο site ότι "Σε περίπτωση ΔΠ η παραλαβή θα γίνεται από το κοντινότερο κατάστημα ACS" Με το 1 είσαι ξεκάθαρος αλλά μπορεί να φοβίζει κόσμο αυτή η αναφορά. Με το 2 μπορεί κάποιος που είναι σε ΔΠ να νομίζει ότι δεν είναι και να δει στο τέλος ότι θα χρειαστεί να πάει μέχρι το κοντινότερο ACS να παραλάβει. Κάποιο σχόλιο ή παρατήρηση στα παραπάνω? Ευχαριστώ!
×
×
  • Create New...