Jump to content

Gramzivi

Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • First Name
    Ivan
  • Last Name
    Vulović

Recent Profile Visitors

156 profile views

Gramzivi's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. Is there any way to set different prices for different languages ? (I am talking about different base price, without shipping and taxes)
  2. In my Prestashop controller I have name of product, if that product exist, I need information's of that product. How to get information's about product if you only have product name ?
  3. I want to upgrade my shop from 1.6 to 1.7 What are the major differences between database schemes in 1.6 and 1.7 ? I saw that mostly tables are same, but is there some new features in database that 1.6 don't have, or it's done on different way ?
  4. Currently on my site I have in Prestashop CMS three categories Alcohol Non Alcohol Other I have about 10 items in "Alcohol" On my homepage when I click on Alcohol I got breadcrumbs like this: Home -> Alcohol But when I click for example on "Local wines" in Alcohol category i get: Home -> Local Wines But that's not what I want. How to make next thing: Home -> Alcohol -> Local Wines In breadcrumbs.tpl I have next code: <div class="breadcrumb-content"> <a href="{$base_dir}" class="home-bread" title="{l s='Home'}">{l s='Home'}</a> {if isset($path) AND $path} <span {if isset($category) && isset($category->id_category) && $category->id_category == 1}style="display:none;"{/if}> <i class="fa fa-long-arrow-right"></i> </span> <span class="active"> {if !$path|strpos:'span'} {$path} {else} {$path} {/if} </span> {/if} </div> And category variable is always empty.
  5. I fixed the bug Problem was in SNS Camen Theme. \themes\sns_camen\product.tpl {if !$priceDisplay} {convertPrice price=$product.price} {else} {convertPrice price=$accessory.price_tax_exc} {/if} Instead $product it needs to be $accessory {convertPrice price=$accessory.price}
  6. First try this Go to: step 1 Preferences -> General Then enable SSL and enable SSL on all pages step 2 Preferences -> SEO & URLs Set same values for shop domain and SSL domain If that does not do the work, try to add this to your home folder .htaccess: RewriteCond %{HTTP_HOST} ^http://www.your_site.com RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R=301,L] or something like this RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  7. Webpage was working perfectly until I wanted to show instead base price, price with VAT. I just changed for group visitors to show prices with taxes. I am getting page that have correct price (with taxes), but there is no head element (so there is no css, javascript, title...) In my php.log file i started to get two errors 1. PHP Notice: Undefined index: reduction_type 2. PHP Fatal error: Cannot use object of type Product as array Now here is full PHP stack trace of those 2 errors in my php error log: 1. PHP Notice: Undefined index: reduction_type in \var\www\presta\tools\smarty\sysplugins\smarty_internal_templatebase.php(157) : eval()'d code on line 878 PHP Stack trace: PHP 1. {main}() \var\www\presta\index.php:0 PHP 2. DispatcherCore->dispatch() \var\www\presta\index.php:28 PHP 3. ControllerCore->run() \var\www\presta\classes\Dispatcher.php:367 PHP 4. FrontController->display() \var\www\presta\classes\controller\Controller.php:209 PHP 5. SmartyCustomCore->fetch($template = *uninitialized*, $cache_id = *uninitialized*, $compile_id = *uninitialized*, $parent = *uninitialized*, $display = *uninitialized*, $merge_tpl_vars = *uninitialized*, $no_output_filter = *uninitialized*) \var\www\presta\override\classes\controller\FrontController.php:106 PHP 6. Smarty_Internal_TemplateBase->fetch($template = *uninitialized*, $cache_id = *uninitialized*, $compile_id = *uninitialized*, $parent = *uninitialized*, $display = *uninitialized*, $merge_tpl_vars = *uninitialized*, $no_output_filter = *uninitialized*) \var\www\presta\classes\SmartyCustom.php:110 PHP 7. content_57e3dacf339aa0_85955487($_smarty_tpl = *uninitialized*) \var\www\presta\tools\smarty\sysplugins\smarty_internal_templatebase.php:188 2. PHP Fatal error: Cannot use object of type Product as array in C:\xampp\htdocs\solo\tools\smarty\sysplugins\smarty_internal_templatebase.php(157) : eval()'d code on line 926 PHP Stack trace: PHP 1. {main}() \var\www\presta\index.php:0 PHP 2. DispatcherCore->dispatch() \var\www\presta\index.php:28 PHP 3. ControllerCore->run() \var\www\presta\classes\Dispatcher.php:367 PHP 4. FrontController->display() \var\www\presta\classes\controller\Controller.php:209 PHP 5. SmartyCustomCore->fetch($template = *uninitialized*, $cache_id = *uninitialized*, $compile_id = *uninitialized*, $parent = *uninitialized*, $display = *uninitialized*, $merge_tpl_vars = *uninitialized*, $no_output_filter = *uninitialized*) \var\www\presta\override\classes\controller\FrontController.php:106 PHP 6. Smarty_Internal_TemplateBase->fetch($template = *uninitialized*, $cache_id = *uninitialized*, $compile_id = *uninitialized*, $parent = *uninitialized*, $display = *uninitialized*, $merge_tpl_vars = *uninitialized*, $no_output_filter = *uninitialized*) \var\www\presta\classes\SmartyCustom.php:110 PHP 7. content_57e3dacf339aa0_85955487($_smarty_tpl = *uninitialized*) \var\www\presta\tools\smarty\sysplugins\smarty_internal_templatebase.php:188 I am using Prestashop 1.6.1 and PHP 5.6
  8. I was testing your website and I see that biggest problem is TTFB. I would advise you to use some CDN like Cloudflare (free account worked fine to me). But if you want to do something from Prestashop, best thing will be to buy Page Cache v3 Module. (of course i assumed that you already enabled default Prestashop caching).
×
×
  • Create New...