-
Posts
1,104 -
Joined
-
Last visited
-
Days Won
32
Everything posted by Prestachamps
-
How To Move Long Description Tab Module Up?
Prestachamps replied to thezey's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Hi, in the product.tpl, this code contains the reviews box : <!--HOOK_PRODUCT_TAB --> <section class="page-product-box"> {$HOOK_PRODUCT_TAB} {if isset($HOOK_PRODUCT_TAB_CONTENT) && $HOOK_PRODUCT_TAB_CONTENT}{$HOOK_PRODUCT_TAB_CONTENT}{/if} </section> <!--end HOOK_PRODUCT_TAB --> in the same file the more info box is this lines: {if isset($product) && $product->description} <!-- More info --> <section class="page-product-box"> <h3 class="page-product-heading">{l s='More info'}</h3> <!-- full description --> <div class="rte">{$product->description}</div> </section> <!--end More info --> {/if} You should move the code of the hook_product_tab,(where the reviews are) after the code of the more info part. that should be your solution. Regards, Leo- 10 replies
-
- Position modules
- Long Description
-
(and 1 more)
Tagged with:
-
How to add a dynamic class to the body element
Prestachamps replied to canelones's topic in Core developers
Hi, You will have to use {foreach} in tpl for parsing the elements of the array. http://www.smarty.net/docsv2/en/language.function.foreach.tpl Regards, Leo -
Hi, You will have to add a new database column last_connection_date in table ps_employee (from phpmyadmin). It seems your upgrade didn't finished 100 percent, and some database tables structure were not upgraded. If you will have similar database missing column errors after this fix, you should reupgrade from the beginning(old 1.4 version),but now writing down the errors. Redards, Leo
-
How To Move Long Description Tab Module Up?
Prestachamps replied to thezey's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Hi, You can move it down by editing the product.tpl Regards, Leo- 10 replies
-
- Position modules
- Long Description
-
(and 1 more)
Tagged with:
-
Hi, It can be possible by creating a custom page that contains only the top hook, and modifying the header.tpl and footer.tpl, to not be shown on that specific page. Then hide all other modules of the top hook(except blockcart) from Prestashop modules->position(i believe you will need to create a custom controller for this page). Regards, Leo
-
Ajax reload content without page refresh
Prestachamps replied to PaulTT's topic in Addons, modules and themes developers
Hi, for reloading only the content part you could create ajax request for the url of the specific item, and add at the url the "?content_only=1" . This will return you only the content of that page. Regards, Leo -
HI If you want only to replace the link to be the amazon link, then your code should look like this(red code is the new code): <a class="button {if $product.id_product != 67}ajax_add_to_cart_button{/if} btn btn-default" href="{$link->getPageLink('cart', true, NULL, $smarty.capture.default, false)|escape:'html':'UTF-8'}{/if}" rel="nofollow" title="{l s='Add to cart'}" data-id-product-attribute="{$product.id_product_attribute|intval}" data-id-product="{$product.id_product|intval}" data-minimal_quantity="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity >= 1}{$product.product_attribute_minimal_quantity|intval}{else}{$product.minimal_quantity|intval}{/if}" > <span>{l s='Add to cart'}</span> </a> Another thing is the first red IF , where you have to remove the class "ajax_add_to_cart_button" from the button in case of the amazon link button, in order to disable the blockcart's default add to cart functionality(the ajax add to cart, wich is not taking in consideration the href of the product) . Since you remove that class, your button will loose some of the css rules/design of the button, you may need to add a different class in case of your button, and add that class to the same css where the ajax_add_to_cart_button is. Regards, Leo
-
How to move Prestashop multishops from localhost to server?
Prestachamps replied to Yichong's topic in 1.6.1.x [Current]
Hi, In backoffice go to the multishop settings page, and modify the shop url and path/folder for every multistore. Then clear cache, and it should work. Regards, Leo -
Hi, Would you provide your shop's url, so I can write you the code needed for the solution. What version of prestashop do you have? Regards, Leo
-
Hi, you don't need to solve it from POSXXX modules, I have explained you how to do it from prestashop's positionng system. Regarding css is not loaded, ususlly you have to have the blocknewskletter hooked into displayHeader hook (there is the css included) Regards, Leo
-
500 error
Prestachamps replied to nycbicycleshop's topic in Upgrading PrestaShop from a previous version
Hi, this seems to be a problem inside the productcomments module or wtspecials module's tpl files, or php files. Did you modified something in it lately, since the error appeared? Regards, Leo -
hi, try resetting or better uninstalling the module(if not using it anymore) what uses that specific database table (hw_lecm_rewrite) - from my experience I believe that is the Litextension's rewrite module called "Cart Migration Url Plugin" Regards, Leo
-
To shorten empty space in categories page. How?
Prestachamps replied to HH Services Limited's topic in Core developers
Hi, for spacer numbered 1 on your screenshot, here is where you can lower the spacing: 1. I believe in /themes/default-bootstrap/global.css, find this inside the rule: #columns { ....... padding-top: 15px; -(decreasing this value to 5px will lower the top spacing) in the same file, find rule : .breadcrumb { ................ margin-bottom: 16px; -(modify this is spacing that it is under the breadcrumb to 5px) 2. for the space 2 in the screenshot, you have the category's name, written in white color, regarding this category name you have 2 options: - 1. you can remove it from the category.tpl, I saw that you include the category in the category description with those 2 icons, or - 2. the default category span can be modified with css to have those 2 icons in order to look as you want it, this way you don't need to include the category name in your category description(this means after you have done the css modifications, you will have to edit and remove the title from the short description and from the long descriptions of the categories). here is css modifications needed for the solution 2 : add this rule at the end of category.css: .content_scene_cat span.category-name:before, .content_scene_cat span.category-name:after { content: " "; background: 0 0 no-repeat url('http://www.highesthelp.com/img/cms/health problems.jpg'); display: inline-block; width: 29px; height: 35px; } For the category title to be visible, in the category.css find the rule, and add these 2 styles to it .content_scene_cat span.category-name { ................. modify color to be : color: #000; ................. text-align: center; display: block; } 3. for space 3 you have the more link() written in white color, and you have a <h3></h3> in the end of the category description(for example on category: https://www.highesthelp.com/en/16-health-problems ) to fix this add to the category.css he following rule: .content_scene_cat a.lnk_more{ color:#000; } Regards, Leo -
Prestashop migration don't work
Prestachamps replied to spsurfer's topic in Configuring and using PrestaShop
Hi, did you modified in the database the table ps_shop_url , with your new shop domain, and path. after this, in backoffice, save the Seo&url page(this will regenerate the correct htaccess file for the site), after that clear cache of prestashop. The strange thing is that your new shop is redirected to the install folder . If you just copyed all files from the old live site, then you should not have the install folder in it. (install folder should be deleted after installing the prestashop. Are you sure you didn't copyed a clean prestashop files to the new location?) If still not succeed, then enable DEBUG mode. Regarding the error, are you sure you have copyed all class folder content from the live site?, and there is class/Tools.php file in it? You should check the backoffice->configuration Information page for missing folders or files , just to be sure you have copyed everything. Regards, Leo -
Hi, did you tried the following: After removing the multistore option,try resetting the homepage category by id module, this way the module's data will be deleted completely from the database. For me it seems that the duplication issue comes from the fact that after you enabled multistore and added the second store, all the the data of the module(block displayed on the homepage) were duplicated for each shop. Resetting the module and re-adding the blocks could solve your issue. Regards, Leo
-
Hi, it seems that you have 2 classes in the override folder, that are from the old version of your prestashop, and those are incompatible with new version 1.6.1.5 of prestashop.To fix this errors you should disable those 2 overrides by renaming file /override/classes/Media.php to _Media.php, and renaming file /override/classes/Mail.php to _Mail.php . Then you must delete the file /cache/class_index.php in order for those 2 overrides to not be loaded on the site. You should get the new version of the module that uses these 2 overrides, and install the new version of the module that it is compatible with version 1.6.1.5 of prestashop. Regards, Leo
-
1 order in BO returns error 500
Prestachamps replied to roed's topic in Configuring and using PrestaShop
hi, this error could be shown if you don't have enabled GD extension in your server/hosting settings. You should check if you have GD extension enabled on your hosting: you can test it by following this short example: Use the following code in a whatever.php file to test if you have GD extension: <?php $testGD = get_extension_funcs("gd"); // Grab function list if (!$testGD){ echo "GD not even installed."; exit; } echo"<pre>".print_r($testGD,true)."</pre>"; ?> test it by opening in browser: yourdomain.com/whatever.php If you get the message that it's not installed, then check the following steps: phpinfo() and look up php.ini path edit php.ini: extension_dir=<path to your extensions> edit php.ini: extension=php_gd2.dll //uncomment or add Restart web server Run the test script again or just simply by asking your hosting in a ticket or live chat. Regards, Leo -
HI, I was referring to the Prestashop's cache. I tried opening the url that you provided, but that's a 404 page. Is your page this? www.activedistributionshop.org/shop ? If yes, then please add my ip (5.2.202.149) to the maintenance exception list so I can help you out.Else please give me your shop's Url so I can check the issue. Regards, Leo
-
Products of the same manufacturer in product page
Prestachamps replied to Derres's topic in Core developers
the question was the possibility to display the products from the same manufacturer to be displayed on the product page, not in a category. Regards, Leo -
Hi, - you have to add it to /themes/theme_name/js/modules/blockcart/ajax-cart.js, in a couple of places: inside function : overrideButtonsInThePage : function(){ - Here get the select's value and save it in a custom variable called MyExtraParameter ,and add as an extra parameter for function: ajaxCart.add(idProduct, idProductAttribute, false, this, minimalQuantity,MyExtraParameter); - then modify the add function, by adding your extra parameter like : add : function(idProduct, idCombination, addedFromProductPage, callerElement, quantity,MyExtraParameter, whishlist){ -Inside this function, you have to pass the parameter inside the ajax call : data: 'controller=cart&add=1&ajax=true&qty=' + ((quantity && quantity != null) ? quantity : '1') + '&id_product=' + idProduct + '&token=' + static_token + ( (parseInt(idCombination) && idCombination != null) ? '&ipa=' + parseInt(idCombination): '' + '&id_customization=' + ((typeof customizationId !== 'undefined') ? customizationId : 0))='&MyExtraParameter='parseInt(MyExtraParameter ), -you may have to add it to file /modules/blockcart/blockcart.php , add it in function: hookAjaxCall(..... (I am not 100% sure that you need to add it here, since all parameters are assigned to the json TPL) -lastly modify the file /themes/|YOURTHEME/modules/blockcart/blockcart-json.tpl , in order to be accessible in the ajax cart. Regards, Leo
- 5 replies
-
- 1
-
- jquery to cart
- jquery to smarty
-
(and 1 more)
Tagged with:
-
Hi, the new_order emails are generated and sent by the module mailalert. You should add in the /modules/mailalert/mailalert.php file the {dni} assignment to the $template_vars array , before the mail is sent out . that is at line that look like : Mail::Send( $mail_id_lang, 'new_order', sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference), $template_vars, .......................... Regards, Leo
-
Products of the same manufacturer in product page
Prestachamps replied to Derres's topic in Core developers
Hi, yes it is possible to display products from the same manufacturer, if you are a developer, then you can duplicate module productscategory , renaming all it's files and functions, and modifying in the file the getProducts function to get all current product's from the same manufacturer. Regards, Leo -
Hi, after the upgrade did you regenerated the images? If you have upgraded from a really old version of prestashop like 1.3 or 1.4 then the images used by 1.6 prestashop have different url's , they need to be regenerated. Another question, did you cleared cache of prestashop after the upgrade? If this will not fix your issue, please provide url of your shop so I can give you more exact answer to your solution. Regards, Leo