Jump to content
thirty bees forum

alwayspaws

Members
  • Posts

    2,067
  • Joined

  • Days Won

    2

Posts posted by alwayspaws

  1. @Baarssen All my jewelry: https://www.alwayspaws.com/dog-lovers-jewelry/earrings. That’s one subcategory and when you look at the products themselves, they get even smaller. Same thing for all of the jewelry, which happens to be the first products I put on my site except for a few birthday cakes for dogs. All the jewelry has a lot of white space around it. Originally, I cropped out all the white space and thought that the images were fine. Unfortunately for some reason I didn’t notice that they were too small until just about a week ago.

    Zoom doesn’t work either.

  2. OK that makes sense but the problem is when I removed all the white space and only had the images, they looked good on my desktop so I didn’t realize until just the other day that they’re too small on mobile. These are products that I put on at the beginning of my site or I would’ve noticed them sooner.

    One last question. ( we can only hope! :-) What if I cropped off the white space and enlarged the images? Or take screenshots and then edit them?

  3. Updated this post after finding out I can’t do something I thought I could do, so now I want to find out how I can fix this:

    My product images are way too small on phones and tablets. I upload large images and they keep getting reduced very small. Is there a setting that I can use to keep the images the same size as what I’ve uploaded?

    Thanks!

    Note: Never mind this question because Leslie already answered that it cannot be done.: How can I regenerate images if they are in my own created images folders instead of folders like img/p/2/8/5/What are medically

  4. @gonssal I don't know where to find that hook and I'm not actually a hooker ... I mean coder. lol.

    @MockoB - I have done some investigating but haven't implemented any of the below yet, but I have high hopes:

    Some of this info dates back to 2013 and PS 1.5 but may somehow work:

    https://www.prestashop.com/forums/topic/244193-how-can-i-have-notifications-about-new-comments-made-on-products/

    Modify the existing products comments module and add a mail() call in the function that saves the customer's comment:

    First make in /productcomments folder /mails. In /mails make folder with Yourisolanguage like (en, fr, pl)

    and here mail templates named new_comment.(txt, html).

    in file productcomments on line 542 (or whatever) after:

    find $comment->save();

    paste:

    $template = 'newcomment'; $subject = $this->l('New comment'); $mailma = 'HEREYOUEMAILADDRESS'; $idlang = (isobject($cookie) AND isset($cookie->idlang)) ? (int)$cookie->idlang : (int)Configuration::get('PSLANGDEFAULT'); $iso = Language::getIsoById((int)$idlang);

                if (file_exists(dirname(__FILE__).'/mails/'.$iso.'/'.$template.'.txt') AND file_exists(dirname(__FILE__).'/mails/'.$iso.'/'.$template.'.html'))
                Mail::Send($id_lang, $template, $subject, NULL, $mail_ma, NULL, strval(Configuration::get('PS_SHOP_EMAIL')), strval(Configuration::get('PS_SHOP_NAME')), NULL, NULL, dirname(__FILE__).'/mails/');
    

    end of that posted code

    Tech support from Vekia in that same forum post:

    Vekia: you have to modify module .php file

    to the function where comment is added to cart - just add mail function to send an email.

    Someone asked him to clarify and his reply was:

    Files that need to be edited, which files they are and the mail call code that needs to be put in:

    modules/productcomments/controllers/front/default.php

    add mail function somewhere after: $comment->save();

    =====================

    A different user worked out the code for PS 1.5.6

    I edited the following file: mywebsite/modules/productcomments/controllers/front/default.php

    And I added the following line: mail("newreview@mymail.com","new review","new review posted on website")

    After the first "$comment->save();" on line 110, like so:

    $comment->title = Tools::getValue('title'); $comment->grade = 0; $comment->validate = 0; $comment->save(); mail("newreview@mymail.com","new product review","new product review posted on website");

                $grade_sum = 0;
                foreach(Tools::getValue('criterion') as $id_product_comment_criterion => $grade)
                {
                    $grade_sum += $grade;
                    $product_comment_criterion = new ProductCommentCriterion($id_product_comment_criterion);
                    if ($product_comment_criterion->id)
                        $product_comment_criterion->addGrade($comment->id, $grade);
                }
    

    ============================

    News for users of the PS 1.7 version (if any are here) Free product reviews module for new PrestaShop 1.7.x productcomments.zip by Vekia:

    This addon is a modification of old 'productcomments' module that we have by default in each installation of prestashop 1.6.x / 1.5.x. Now it fully supports new releases of PS 1.7.x. Module has exactly the same features as previous versions with improved design.

    Download from forum:

    https://www.prestashop.com/forums/topic/609811-free-module-product-reviews-comments-for-prestashop-17/?_fromLogin=1

    Another user's observation and fix for that addon:

    If the popup stays on screen the user said: It was the usual "wrong folder and file permissions" on Prestashop. Changed everything to 755/644 and now it's working.

    So, I'm not sure I'm up to this task, but I may try ... tomorrow. Today is shot.

  5. @traumflug said in Product ID number does not match Product Reference ID:

    Product IDs are pretty much unchangeable. One can change them in the database, of course, but this would break relationships to pretty much all other tables. If you insist on a particular ID, delete the product and re-create it via CSV import. Regular product creation doesn't even allow to set a particular ID.

    I deleted the product and created it via CSV and all is back the way I want it. The product ID and Reference ID now match and increase from the correct next number.

    @Traumflug and @zimmer-media Thank you.

×
×
  • Create New...