Jump to content

stanleyek18

Members
  • Posts

    56
  • Joined

  • Last visited

Profile Information

  • Location
    Poland
  • Activity
    Project Owner

Recent Profile Visitors

1,039 profile views

stanleyek18's Achievements

  1. Hi, I am trying to modify module from https://mypresta.eu/modules/front-office-features/ask-about-product-free.html to show on product only when product is not available for order. Is there any way to do this? I've tried modifying the module's .tpl file but nothing seems to be working and I keep getting errors. Can you tell me where to start looking to make this change or what variables I need? I guess it doesn't depend much on the theme? I would like to repeat the behaviour of the "Notify me when product is available" function. {* * * PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-) * * @author VEKIA MILOSZ MYSZCZUK VATEU: PL9730945634 * @copyright 2010-2022 VEKIA * @license This program is not free software and you can't resell and redistribute it * * CONTACT WITH DEVELOPER http://mypresta.eu * [email protected] * *} <a id="send_aap_button" class="btn btn-primary" href="#send_AAP_form"> <i class="fa icon-question-sign"></i> {l s='Ask about product' mod='aapfree'} </a> <div style="display: none;"> <div id="send_AAP_form" class="card"> <div class="card-block"> <div class="product clearfix col-lg-12"> <img src="{$link->getImageLink($aapfree_product->link_rewrite, $aapfree_product_cover, 'home_default')|escape:'html'}" alt="{$aapfree_product->name|escape:html:'UTF-8'}"/> <div class="product_desc"> <p class="product_name"><strong>{$aapfree_product->name}</strong></p> {if $aapfree_SUMMARY == true} {$aapfree_product->description_short nofilter} {/if} </div> </div> <div class="col-lg-6"> <fieldset class="form-group"> <label class="form-control-label" for="question">{l s='Your question' mod='aapfree'}</label> <textarea name="aapfree_question" id="aapfree_question" class="form-control"></textarea> </fieldset> </div> <div class="send_AAP_form_content col-lg-6" id="send_AAP_form_content"> <div id="send_AAP_form_error" class="alert alert-danger" style="display:none;"></div> <div class="form_container"> {if !Context::getContext()->customer->islogged()} <fieldset class="form-group"> <label class="form-control-label" for="aapfree_author">{l s='Your name' mod='aapfree'}</label> <input id="aapfree_author" name="aapfree_author" type="text" value="" class="form-control"/> </fieldset> {else} <fieldset class="form-group"> <label class="form-control-label" for="aapfree_author">{l s='Your name' mod='aapfree'}</label> <input disabled id="aapfree_author" name="aapfree_author" type="text" value="{Context::getContext()->customer->firstname} {Context::getContext()->customer->lastname}" class="form-control disabled"/> <p class="small">({l s='You are logged as a customer, we get your name automatically from your account details' mod='aapfree'})</p> </fieldset> {/if} {if !Context::getContext()->customer->islogged()} <fieldset class="form-group"> <label class="form-control-label" for="aapfree_email">{l s='Your email address' mod='aapfree'}</label> <input id="aapfree_email" name="aapfree_email" type="text" value="" class="form-control"/> </fieldset> {else} <fieldset class="form-group"> <label class="form-control-label" for="aapfree_email">{l s='Your email address' mod='aapfree'}</label> <input id="aapfree_email" name="aapfree_email" type="text" value="{Context::getContext()->customer->email}" class="form-control"/> </fieldset> {/if} <fieldset class="form-group"> <label class="form-control-label" for="aapfree_phone">{l s='Phone number' mod='aapfree'}</label> <input id="aapfree_phone" name="aapfree_phone" type="text" value="" class="form-control"/> </fieldset> </div> </div> <div class="col-lg-12 send_AAP_form_content_button"> <p class="submit pull-right"> {if $aapfree_GDPR == 1} {literal} <input onchange="if($(this).is(':checked')){$('#sendAAPEmail').removeClass('gdpr_disabled'); $('#sendAAPEmail').removeAttr('disabled'); $('#sendAAPEmail').click(function(){aapfreeEmail();});}else{$('#sendAAPEmail').addClass('gdpr_disabled'); $('#sendAAPEmail').off('click'); $('#sendAAPEmail').attr('disabled', 1); }" id="gdpr_checkbox" type="checkbox"> {/literal} {l s='I accept ' mod='aapfree'} <a target="_blank" href="{$link->getCmsLink($aapfree_GDPRCMS)}">{l s='privacy policy' mod='aapfree'}</a> {l s='rules' mod='aapfree'} {/if} &nbsp; <input {if $aapfree_GDPR == 1}disabled{/if} id="sendAAPEmail" class="btn btn-primary {if $aapfree_GDPR == 1}gdpr_disabled{/if}" name="sendAAPEmail" type="submit" value="{l s='Send' mod='aapfree'}"/> <input id="id_product_send" name="id_product" type="hidden" value="{$aapfree_product->id}"/> </p> </div> </div> </div> </div> aapfree16.zip
  2. Yes Sir! I've made few sites already on Wordpress but Prestashop is still a thing for me. Novice here. I have edited Prestashop earlier (mostly themes) but when I'm trying to get that link to show I'm just plain stupid.
  3. Thanks for reply. This is a custom theme http://demo.withinpixels.com/autumn/first/en/ Prestashop version 1.6.1.7. I am struggling to insert link to default category on product page in right column under manufacturer. No idea how to make this work 馃槙
  4. Hi guys, is there any way to make this work? Please give me some advice.
  5. Dzi臋ki za pr贸b臋 pomocy Niemcy s膮 na li艣cie Lokalizacja -> Kraje w艂膮czone. Pisa艂em w r贸偶nych j臋zykach, ale te偶 bez skutku. Alfabetycznie te偶. I nie ma tych szata艅skich Niemiec na li艣cie. Niue jest, Nikaragua jest. Niemc贸w nie ma.
  6. Sprawdzam. Paczka jest najnowsza. Nadal nie ma Niemiec :-( Co to za dziwactwo.
  7. Witam, mam taki dziwny problem z modu艂em w wersji Prestashop 1.6.1.7 - nie mog臋 odznaczy膰 w spisie Niemiec poniewa偶 brakuje takiej pozycji. Poratujcie jakim艣 pomys艂em dlaczego tak si臋 mo偶e dzia膰.
  8. Okej, da艂em cia艂a i nie umie艣ci艂em tego kodu w {foreach $list as $product} **** {/foreach} Ju偶 dzia艂a.
  9. Hej, tworz臋 nowe szablony do maili dla sklepu, ale mam dziwny problem. Po edycji pliki z przeniesieniem zmiennych, w wiadomo艣ci email otrzymuj臋 wiadomo艣膰: Notice: Trying to get property of non-object in /public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 58 Nie mog臋 poj膮膰 przyczyny. Ten komunikat otrzymuj臋 dla ka偶dej zmiennej zamieszczonej w szablonie wiadomo艣ci email. Oryginalny plik wy艣wietla zmienne prawid艂owo. Poratujcie - co to mo偶e by膰?
  10. Edited $param_value = isset( $$param['param_name'] ) ? $$param['param_name'] : ''; to $param_value = !empty($param['param_name'] ) ? $param['param_name'] : ''; and worked!
  11. Hello! After installing Visual Composer module for Prestashop 1.6.1.7 with PHP 7 I am getting this error: Notice w linii 74 w pliku l/public_html/modules/jscomposer/include/classes/shortcodes/vc-row.php [8] Array to string conversion The problem is with this line: $param_value = isset( $$param['param_name'] ) ? $$param['param_name'] : ''; I guess that is a PHP problem. What can be wrong with this particular line? Here is more from that file: if ( isset( $this->settings['params'] ) ) { $inner = ''; foreach ( $this->settings['params'] as $param ) { $param_value = isset( $$param['param_name'] ) ? $$param['param_name'] : ''; if ( is_array( $param_value ) ) { // Get first element from the array reset( $param_value ); $first_key = key( $param_value ); $param_value = $param_value[$first_key]; } $inner .= $this->singleParamHtmlHolder( $param, $param_value ); } $output .= $inner; Thanks for your help!
  12. The same for me for the newest Prestashop. I came today to work with my shop and this error occured. Shame.
  13. I don't get it where you have found it. https://mypresta.eu/en/art/developer/display-all-product-categories-on-product-page.html He only shows how to made categories list on product page, nothing about default category. Name from breadcrumb is perfectly ok. Thanks!
  14. Hello! I guess older solutions for that doesn't work for newest presta, so I came here for help. Currently I am displaying Default Category with link do it with this code (on product.tpl) <a href="{$link->getCategoryLink($product->id_category_default)}">{$product->category}</a> But this shows me "raw" category name and I need it to be full title. <a href="{$link->getCategoryLink($product->id_category_default)}">{$category->name}</a> Shows full category name but not default category. Thanks for your help!
  15. Hej, dzi臋ki! Dzia艂a, ale wy艣wietla aktualn膮 kategori臋. Ja natomiast musz臋 wy艣wietli膰 nazw臋 kategorii domy艣lnej.
×
×
  • Create New...