Jump to content

mbp

Members
  • Posts

    139
  • Joined

  • Last visited

Profile Information

  • Location
    Sweden
  • Activity
    Agency

Recent Profile Visitors

4,219,851 profile views

mbp's Achievements

Newbie

Newbie (1/14)

3

Reputation

1

Community Answers

  1. Hi, I'm trying to check if a product is located in a specific category and change the label of add to cart button in product-list.tpl In this case i would like to display "Read more here" instead of "Add to cart" if product is located in category id 14. Right now all products from category 14 is getting "Add to cart" I'm running 1.6.0.11 {assign var='associated' value=0} {foreach Product::getProductCategories($smarty.get.id_product) as $category} {if in_array($category, 14)} {assign var='associated' value=1} {/if} {/foreach} {if $associated==1} {l s='Read more here'} {else} {l s='Add to cart'} {/if} The code was written by veika in this tread: https://www.prestashop.com/forums/topic/324970-solved-if-product-is-in-category-a-or-in-category-b-or-in-category-c-then-do-this/
  2. I have moved a prestashop installation from localhost to clients server side. I have done this many times before without any problems. On localhost everything is fine but on the new server there is a stay logged in issue. If a user is logged in and browsing throw cms / category / index pages everything is fine. But when visiting a product page the user gets logged out ? I have tried to clear smart cache and compile directories but the problem still remains. Any suggestions?
  3. I have imported products from oscommerce. I can see all product images in back-office but not in front-office. So I try to regenerate the image thumbnails in backoffice but i get this error: 502 Bad Gateway nginx/1.6.2
  4. I solved it by using a category page as homepage. Use this code instead in /controllers/front/IndexController.php and set the id_category to your choice! class IndexControllerCore extends CategoryController { public $php_self = 'index'; /** * Assign template vars related to page content * @see FrontController::initContent() */ public function init(){ $_GET['id_category']=3; parent::init(); } public function initContent() { parent::initContent(); } }
  5. I'm trying to figure out why the add to cart icon is above text in the button? http://garyleatherbags.se/index.php?id_product=3&controller=product Regards mbp
  6. Hi, this solution is for increasing the "add to cart quantity" from 1item to 4items at the product page in the front office.
  7. I also thought it was going to appear by default. Thx for the module, I installed it manually Problem solved!
  8. No i don't, as far as i can see it's missing in 1.6.0.9 ?
  9. I cant find the email alerts when searching for modules in back office of 1.6.0.9? I noticed that in the Prestashop 1.6.0.9 there is a folder in /themes/default-bootstrap/modules/mailalerts/views/templates Should the email alerts not be installed as an module in 1.6.0.9? Regards MBP
  10. I have universal accessories in a category. I would like to add these products to other categories automatic. It would be great if these products appear at the bottom on the "hooked" category. I'm trying to avoid to add universal accessories to new categories one by one. Example : IF category id = 1, 2, 3, 5, add products from category id 6 Does anyone know how to proceed? Is it possible to achieve this by adding an if statement in product-list.tpl? Or is there some kind of module for this that I yet not discovered?
  11. I'm using this module for export csv from my 1.5 installation :http://addons.prestashop.com/en/export-modules/6927-advanced-export-for-15-6-produtsorders-cron-csv.html And everything else is imported correctly but not the images.
  12. Hi I'm trying to import products with csv and that works, but i get error on every image . The path to the images is my old domain. Example: http://old-domain/images/product1-image1.jpg, http://old-domain/images/product1-image2.jpg, http://old-domain/images/product1-image-3.jpg I have tried imported small resolution images but still same error. Has anyone stumbled upon this in Prestashop 1.6.0.9 ?
  13. I think this is the module i used for 1.6 witch not longer is available on github. This is was earlier intergraded in Prestashop late 1.5 an early 1.6 i think and developed by the prestashop team. v1.7.4-Klarna.zip
  14. I think we posted around the same time. Yeah, its solved Thx anyway!
×
×
  • Create New...