Jump to content

TTNZ

Members
  • Posts

    29
  • Joined

  • Last visited

Profile Information

  • Location
    New Zealand
  • Activity
    User/Merchant

TTNZ's Achievements

Newbie

Newbie (1/14)

1

Reputation

2

Community Answers

  1. Here is a cut and paste: {if isset($products) && $products} {*define numbers of product per line in other page for desktop*} {if $page_name !='index' && $page_name !='product'} {assign var='nbItemsPerLine' value=3} {assign var='nbItemsPerLineTablet' value=2} {assign var='nbItemsPerLineMobile' value=3} {else} {assign var='nbItemsPerLine' value=3} {assign var='nbItemsPerLineTablet' value=3} {assign var='nbItemsPerLineMobile' value=2} {/if} {*define numbers of product per line in other page for tablet*} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet} <!-- Products list --> <ul{if isset($id) && $id} id="{$id}"{/if} class="product_list list row{if isset($class) && $class} {$class}{/if}{if isset($active) && $active == 1} active{/if}"> {foreach from=$products item=product name=products} {math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile} {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if} {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if} {if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if} <li class="ajax_block_product{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-4{else} col-xs-12 col-sm-6 col-md-4{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if}{if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line{elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if}{if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}">
  2. Hi, Sorry, it is happening in every category: http://touratech.co.nz/shop/10930-crash-bars All products list 3 in one row then 1 in the next.
  3. Hi I can't seem to fix this problem I am having on my website www.touratech.co.nz When viewing products in Grid it shows 3 products on the first row, then 1 product on the next then 3 on the next. I can't seem to fix it after amending the Product_list.tpl and the CSS files under the Bootstrap theme settings. Please can someone help or advise? Thanks :-)
  4. Hi all, I have a challenge with the template and I have tried to resolve it through forum search but I am lost. When someone clicks a category or searches a product they see the results in the grid view with 3 products on the first row, then 1 product on the next row and then 3 on the following and then the same 3 -1 all the way down. Anyone experienced this problem and can give me some advice on how to fix?
  5. I have the same problem. 20% discount works out to 25% discount
  6. Hi all, I have 6500 products on my shop and I want to enable the stock management module, however I still want to allow all out of stock products to be ordered. I have set the product preferences to allow ordering of out of stock products but it keeps on saying "this product is no longer available" and the add to cart button is removed. Is there a SQL query I can run to default these products to allow for ordering when at 0? Thanks in advance Prestashop 1.6.0.6
  7. Hi all, I need some help with Advanced Search 4. We have 6500 products and it is set up to find products in categories and works well. However, when I search for products in category and for example the category has 78 products in it, the search says showing products 1 - 60. The problem is it only shows 21 products on the page with a maximum of 2 pages (kind of make sense?) therefore only shows a total of 42 products. If I select show all then it will show all products. Here is the link to the search result: http://tinyurl.com/lhoatq3 I have changed the default products per page but that does not resolve it which makes me believe this is a module error and not the Prestashop app (Could be wrong). Anyone else experienced such a problem or got any suggestions? Nige
  8. Hi All, I am sorry as a newbie that I don't know how to do this but I get the following error when I try and import my product list. Zega Pro2 "And-Black" Aluminium Pannier System 38/45 liter with stainless steel rack black for BMW R1200GS from 2013/ BMW R1200GS Adventure from 2014 (ID: 01-045-6087-0) cannot be saved Property Product->name length (149) must be between 0 and 128 If there is anything you can suggest it would be appreciated!! :-) Nigel
  9. Hi guys, The problem for me was due to the upgrade from 1.5.0.6 to 1.6.0.5. All my modules and there positions had to be reset to enable the back end dashboard to work. I went through the Modules - positions and looked at two key areas: dashboard-Zone1 and Zone2 were both empty so I had to transplant the modules for the dashboard into here and it worked perfectly. I still think I am missing something from here but I get all the dashboard stats I need for now. This worked for me so I can mark this solved :-)
  10. Hi all, sorry my bad as a newbie. After upgrading all the module positions had been removed and disabled. I had to reset the modules, enable them and then position them as follows: (This has resolved my backend dashboard)...hope it helps others :-)
  11. Hi, My back office dashboard is not displaying any sales data after the upgrade from 1.5.0.6. Anyone else experienced the same problem and managed to resolve? Thanks
  12. Sorry, anyone found an answer to this or experienced the same issue?
  13. Hi guys, I have upgraded from PS 1.5 to 1.6 and I have it up and running....loving it!! The only thing I can't figure out is the dashboard. It is not showing any sales data for the day, week or month. I can select the period on the top but when I press enter no sales data appears...just a dotted line saying "+ more graph and data" Any simple suggestions to fix? Thanks :-)
  14. Awesome!!....thank you...I feel like I am finally getting somewhere. I think the key is to get rid of the old modules and re-install the existing ones when doing the upgrade. The site has finally come back to life :-) Really do appreciate you assistance with this....very kind.
  15. Ok, once I read what you said above, I uninstalled that module and re-installed and it seems to have resolved that problem (Only another 1000 to work through :-) ) Thanks again!!!
×
×
  • Create New...