jave.web
Members-
Posts
31 -
Joined
-
Last visited
-
Days Won
1
jave.web last won the day on September 20 2019
jave.web had the most liked content!
Profile Information
-
Activity
Developer
Recent Profile Visitors
jave.web's Achievements
-
We are currently looking for a ready-to-go solution - a prestashop module - which would allow creating (and of course publishing through PS) custom quizes and would generate vouchers according to quiz results, module can be either free or paid. We already have a way how to do that, but we would prefer ready-to-go prestashop module way :-) Any tips / ideas , ... ?
-
( SOLVED ) Back Office pagination problem
jave.web replied to webbusiness23's topic in Configuring and using PrestaShop
Try to clear cache and re-save your URL settings. If that does not help, try to update your shop to the lastest PS version... Otherwise I can't help you sry :-) -
( SOLVED ) Back Office pagination problem
jave.web replied to webbusiness23's topic in Configuring and using PrestaShop
Rudra123 What file in what path did you edit? Were you editing the form after "{block name="startForm"}"? What exactly does not work for you? -
Backend file upload (and download) to Order
jave.web replied to jave.web's topic in Addons, modules and themes developers
Thanks for your answer, interesting one, but still it fits the "unwanted", the data must be placed within e-shop. :-) -
I am looking for a ) an existing module b ) a programming way ...to allow ADMIN (in backend) uploading(and downloading) files for orders. The goal is to set-up a sort of business-inside file-comunication channel, through the orders, one employee will upload a file (e.g. a design) to an order, and the other employee will (elsewhere) download it and open it for further processing... These files really SHOULD be placed in orders, any other sort of sending these files is unwanted... So something like a backend-order-file-manager for each order?
-
THEME CONFIGURATOR (V.1.1.6) - image upload error
jave.web replied to gavz's topic in Configuring and using PrestaShop
I had a same problem, from my tests, it is ONLY image related. It can be image-size problem or image-format problem. Try to use jpg with size less than 1MB- 4 replies
-
- THEME CONFIGURATOR
- image upload error
-
(and 1 more)
Tagged with:
-
[TUTORIAL] Save Custom fields on “Add to cart”
jave.web replied to NemoPS's topic in Core developers
Synchronous ajax request is not the way to go and it could be removed in future... But the idea is good, you should just make a "loading" to inform user and rewrite it as ajax success callback... => Send ajax request to save settings and in it's success callback do the add-to-cart ajax... -
I don't think 'submit' belongs inside 'input', I think it belongs outside ... like: public function renderForm() { // Building the Add/Edit form $this->fields_form = array( 'legend' => array( 'title' => $this->l('Edit') ), 'input' => array( array( 'type' =>'file', 'label'=>$this->l('Link Icon'), 'name'=>'image', 'required' => false, 'display_image' => true ) ), 'submit' => array( 'title' => $this->l(' Save '), 'class' => 'button' ) ); return parent::renderForm(); } ...but maybe that was just old PS... try that and you'll see
-
( SOLVED ) Back Office pagination problem
jave.web replied to webbusiness23's topic in Configuring and using PrestaShop
HOTFIX (NOT A PROPER FIX!) for PS1.6 In YOUR_PRESTASHOP_INSTALLATION/adminYOUR_RANDOM/themes/default/template/helpers/list/list_header.tpl Find {block name="startForm"} and do following: 1) Change form method="post" to form method="GET" 2) After begining form tag - e.g. after <form method="GET" action="{$action|escape:'html':'UTF-8'}" class="form-horizontal clearfix" id="form-{$list_id}"> add following code: {if !empty($smarty.get.id_cms_category)} <input type="hidden" name="id_cms_category" value="{$smarty.get.id_cms_category|@intval}"> {/if} {if !empty($name_controller)} {assign var="controllerName" value=$name_controller} {elseif !empty($smarty.get.controller)} {assign var="controllerName" value=$smarty.get.controller} {/if} {if !empty($controllerName)} <input type="hidden" name="controller" value="{$controllerName|escape:'html':'UTF-8'}"> {/if} Explanation: In admin of PS there are some thing done quite strangely - the final url is in GET parameters form, though navigation is done as a POST form submit sent through a controller which may strip out some info, this way all needed information is added to the form and changing it's method to GET it goes directly to the request without unnecessary redirecting... -
( SOLVED ) Back Office pagination problem
jave.web replied to webbusiness23's topic in Configuring and using PrestaShop
Problem remains in PS 1.6 (1.6.1.5) anyone having a solution? Or maybe even source/cause of thsi problem? Thanks... -
Fancybox Lightbox on all pages
jave.web replied to kallym's topic in Addons, modules and themes developers
previous answers contain deprecated code! PrestaShop 1.6 Does not contain versions in file names anymore, CSS and JS of fancybox are at one place, these addings are always done using controller! There are 2 ways to do it in general: A) Put it in FrontController (override) To public function setMedia() in your FronController.php (override) put following after $this->addJquery(); : $this->addCSS(_PS_JS_DIR_.'jquery/plugins/fancybox/jquery.fancybox.css'); $this->addJS(_PS_JS_DIR_.'jquery/plugins/fancybox/jquery.fancybox.js'); Put it in your module's header hook To your module's public function hookHeader() or public function hookDisplayHeader() add following: $this->context->controller->addCSS(_PS_JS_DIR_.'jquery/plugins/fancybox/jquery.fancybox.css'); $this->context->controller->addJS(_PS_JS_DIR_.'jquery/plugins/fancybox/jquery.fancybox.js'); BTW: Basic module generated by PrestaShop Module Generator with no settings contains one of these hooks ready to go :-) -
NEVER, EVER DO THAT! ...to retrieve last insert ID! If you are not locking the whole table for the whole process (which I hope you don't) and are not in complete control at the same time, this can and often will lead to bloody collisions, and security issues! At start, it might seem to work, but imagine shop with many users... Data of one user could end up in other user's data and the other way around... So **please, I beg you,** never, ever do something like that... not this way... If the abstract Db::getInstance()->Insert_ID() is not working for you => figure out why, do not do piggy magic...
-
In PrestaShop 1.6 it seems you have to do this ON THE MODULE PAGE: Find CMS info block by e.g. typing "blockcmsinfo" into search field Now DON'T go to configuration/settings , click on the little arrow to show the drop down menu Click on every "Display on ..." you want it to be displayed on... :-) I am adding a screen to be completely clear: http://pasteboard.co/1jS5PlnN.png
-
I need to filter product features in my module (smarty features variable that is later used in product.tpl), note that I don't need to fetch them, that is done by *->getFrontFeatures(LANG_ID)* I really just need to filter their output - how would I do that? Is there a way how to get&alter smarty variable in product page in my module? (That would do it...) Thanks.
-
I was pretty annoyed that jqZoom has a white background, or overall, any background at all... Here is what you need to do, to make it transparent while not braking the view CSS #product .zoomWindow{ background: none; } /* removes the background */ #product #image-block:hover img.original_product_image{ visibility: hidden; } /* hides original image */ product.tpl In product.tpl add class "original_product_image" to the jqZoom source image, code will loook for example like this: {if $jqZoomEnabled && $have_image && !$content_only} <a class="jqzoom" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" rel="gal1" href="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')|escape:'html':'UTF-8'}"> <img class="original_product_image" itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}"/> </a> {* ..... *}