Jump to content

sarfaraz.r1406

Members
  • Posts

    80
  • Joined

  • Last visited

2 Followers

Profile Information

  • Activity
    Agency

Recent Profile Visitors

476,971 profile views

sarfaraz.r1406's Achievements

Newbie

Newbie (1/14)

5

Reputation

1

Community Answers

  1. No. You need to add in SearchController.php only. This controller is invoked when you search something in Prestashop and passes all the product items. Can you share the code which is not working?
  2. Hi, For adding product combination in Search results, you need to add that code in SearchController.php in initContent() method.
  3. Hi, I am taking the reference of New Product blocks module, only that I am changing the sql condition. (instead of "condition = 'new'" I am making id_products IN $array). That module is properly displaying the prices and specific prices. I am not getting the clue how that module is properly.
  4. Try running the Live Edit option of your shop. Can you send a link of you website for checking purpose?
  5. Hi All, I am trying to create a module which will display all the recently bought items on the home page. I have created the tpl files and the complete module. I able to display all the recently bought items. But the issue I am facing is that the module is not displaying the price information (price, specific price, etc.) It displays all 0. The query I have written is as follows: the variable $results contain the id of all the products recently ordered by the current customer. foreach($results AS $result) { $p[] = $result['product_id']; } $sql = new DbQuery(); $sql->select( 'p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pl.`description`, pl.`description_short`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, pl.`available_now`, pl.`available_later`, MAX(image_shop.`id_image`) id_image, il.`legend`, m.`name` AS manufacturer_name, product_shop.`date_add` > "'.date('Y-m-d', strtotime('-'.(Configuration::get('PS_NB_DAYS_NEW_PRODUCT') ? (int)Configuration::get('PS_NB_DAYS_NEW_PRODUCT') : 20).' DAY')).'" as new' ); $sql->from('product', 'p'); $sql->join(Shop::addSqlAssociation('product', 'p')); $sql->leftJoin('product_lang', 'pl', ' p.`id_product` = pl.`id_product` AND pl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('pl') ); $sql->leftJoin('image', 'i', 'i.`id_product` = p.`id_product`'); $sql->join(Shop::addSqlAssociation('image', 'i', false, 'image_shop.cover=1')); $sql->leftJoin('image_lang', 'il', 'i.`id_image` = il.`id_image` AND il.`id_lang` = '.(int)$id_lang); $sql->leftJoin('manufacturer', 'm', 'm.`id_manufacturer` = p.`id_manufacturer`'); $sql->where('product_shop.`active` = 1 AND p.`id_product` IN ('.implode(',',$p).')'); if (Group::isFeatureActive()) $sql->where('p.`id_product` IN ( SELECT cp.`id_product` FROM `'._DB_PREFIX_.'category_group` cg LEFT JOIN `'._DB_PREFIX_.'category_product` cp ON (cp.`id_category` = cg.`id_category`) WHERE cg.`id_group` '.$sql_groups.' )'); $sql->groupBy('product_shop.id_product'); if (Combination::isFeatureActive()) { $sql->select('(product_attribute_shop.id_product_attribute) id_product_attribute'); $sql->leftOuterJoin('product_attribute', 'pa', 'pa.`id_product` IN ('.implode(',',$p).')'); $sql->join(Shop::addSqlAssociation('product_attribute', 'pa', false, 'product_attribute_shop.default_on = 1')); } Please help. Thanks in advance.
  6. I solved the problem somehow by adding the following lines in my header.tpl file. {if $page_name == category} <link rel="canonical" href="{$base_dir}{$request_uri|substr:1}" /> {/if} This solved my problem as when browsing my url is something like this: http://www.example.com/14/branded-food#/page-2 But in webmasters tools, google says it found duplicate meta description for the following pages: http://www.example.com/14/branded-food?p=2 But for this link the canonical url doesn't work. My query is why google crawls this url when it can never be obtained by simple browsing?
  7. Hi, My prestashop website runs on VPS but still is very slow. When I tested my website with google pagespeed insight, it shows a lot of problems with render blocking js and optimization of css. It shows the following about my website. Can anyone help me with these issues. Eliminate render-blocking JavaScript and CSS in above-the-fold content Your page has 26 blocking script resources and 27 blocking CSS resources. This causes a delay in rendering your page. http://www.lifegoeasy.com/js/jquery/jquery-1.11.0.min.js http://www.lifegoeasy.com/js/jquery/jquery-migrate-1.2.1.min.js http://www.lifegoeasy.com/js/jquery/plugins/jquery.easing.js http://www.lifegoeasy.com/js/tools.js http://www.lifegoeasy.com/themes/default-bootstrap/js/global.js http://www.lifegoeasy.com/…ootstrap/js/autoload/10-bootstrap.min.js http://www.lifegoeasy.com/…/autoload/15-jquery.total-storage.min.js http://www.lifegoeasy.com/…s/autoload/15-jquery.uniform-modified.js http://www.lifegoeasy.com/…uery/plugins/fancybox/jquery.fancybox.js http://www.lifegoeasy.com/…gins/autocomplete/jquery.autocomplete.js http://www.lifegoeasy.com/…ap/js/modules/blocksearch/blocksearch.js http://www.lifegoeasy.com/…tstrap/js/modules/blockcart/ajax-cart.js http://www.lifegoeasy.com/js/jquery/plugins/jquery.scrollTo.js http://www.lifegoeasy.com/…js/jquery/plugins/jquery.serialScroll.js http://www.lifegoeasy.com/…uery/plugins/bxslider/jquery.bxslider.js http://www.lifegoeasy.com/…ult-bootstrap/js/tools/treeManagement.js http://www.lifegoeasy.com/…odules/blockwishlist/js/ajax-wishlist.js http://www.lifegoeasy.com/js/jquery/plugins/growl/jquery.growl.js http://www.lifegoeasy.com/…p/js/modules/homeslider/js/homeslider.js http://www.lifegoeasy.com/js/oneallsociallogin.js http://www.lifegoeasy.com/…inicmailchimp/views/js/minicmailchimp.js http://www.lifegoeasy.com/modules/blockfacebook/blockfacebook.js http://www.lifegoeasy.com/…s/modules/blocktopmenu/js/hoverIntent.js http://www.lifegoeasy.com/…es/blocktopmenu/js/superfish-modified.js http://www.lifegoeasy.com/…/modules/blocktopmenu/js/blocktopmenu.js http://www.lifegoeasy.com/themes/default-bootstrap/js/index.js
  8. Hi, We are getting duplicate meta description in webmaster tools for dynamically fetched pages. Lets say we have 48 products in one category. Category URL: www.example.com/6/vegetables In the first version of the page we allow 24 products. Remaining products are showcased in the next page with below(where page-2 is dynamically generated) URL www.example.com/6/vegetables/#/page-2 Problem Statement: Now, google bots are considering these two pages as different pages. But these two pages are all together same page according to us. Overall 301 redirect for canonicalization is already implemented for this scenario in overall application. Expected Solution: 1. How to remove this error in webmaster? Concerns: 1. Does this error will hamper the SEO of my application? Thanks in advance
  9. You can use the following code. But you will have to put base price as 0 and give all the combinations price_i crease value as the actual price of the combination <option class="comb_product" value="{$attr.id_product_attribute}">{$attr.attribute_name} {l s=':'} {convertPrice price=$attr.price}</option>
  10. Hi Is there any module or workaround for my following query? I want to give each customer a unique referral code that they can share with others as referrals. Others can use that code instead of the email id while registrations. Sharing codes is always easy instead of going to emails for clicking a referral link. Please help me if anyone has any idea.
  11. Is there no solution for the exact purpose of this thread? Because it is a very important feature which must be included in the basics of prestashop. Kindly consider to give a solution for this.
  12. Hi I tried all these options but none of them works All my development process is stopped because of this. I am using PS1.6.0.9 with default theme. The files are inside xampp/htdocs/prestashop. In SEO & URLs when I give just localhost, the website opens but neither the css nor js files are loading. I am not getting any clue.
  13. Thanks for the quick response As I told I have imported the database from my online website to localhost. And I am getting this problem in localhost, not in online website.
  14. Hi I tried all the tricks you mentioned. But still I am facing the same issue. Do you know any other method or trick??
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More