Jump to content
thirty bees forum

yaniv14

Trusted Members
  • Posts

    631
  • Joined

  • Last visited

  • Days Won

    28

Posts posted by yaniv14

  1. My guess is that the error is related to that issue: https://github.com/thirtybees/thirtybees/issues/321 That has been fixed but not merged with TB yet. try to manually apply those changes (https://github.com/thirtybees/thirtybees/commit/fff86f1cfb23b45daa531367eecc1f42bfe37ed3)

  2. In my case the format is just fine (the thousand separator, symbol location and symbol space is perfect). The only thing that I need is to get rid of the decimal points. The shop owner want to show only round numbers not floats (399 and not 399.00).

  3. @mdekker I have a new shop that I can't go live unless I can display the price without decimal '1050' instead of '1500.00' I've tried modifying displayPrice & commerceguys/intl but with no luck. Can you try point me to a solution? I don't mind having it as an ugly patch because this shop is only for Israel with only one country/currency/language Thanks

  4. No, still same error. I dont know if it helps in anything but, I can see a zip file in cache folder that has only Config.xml. probably the process breaks after. I've only tested theme export on a shop with Hebrew language only (no Eng at all). The same error is on windows and linux (tried your fix on both)

  5. Like i said before, I didn't notice too many windows only issues with shops i've created. So I guess we can handle each bug at the time. I was able to make the translations work on windows. Tell me what you think.

    Original function: ``` public static function getEmailHTML($email) { if (defined('PSHOSTMODE') && strpos($email, PSMAILDIR) !== false) { $emailFile = $email; } elseif (PSBASEURI != '/') { $emailFile = strreplace(PS_BASE_URI, '', _PSROOTDIR.'/').$email; } else { $emailFile = PSROOTDIR.$email; }

    $emailHtml = file_get_contents($emailFile);
    
    return $emailHtml;
    

    } ```

    New function: ``` public static function getEmailHTML($email) { if (defined('PSHOSTMODE') && strpos($email, PSMAILDIR) !== false) { $emailFile = $email; } elseif (PSBASEURI != DIRECTORYSEPARATOR) { $emailFile = strreplace(strreplace('/', DIRECTORYSEPARATOR, PSBASEURI), '', PSROOTDIR.DIRECTORYSEPARATOR).$email; } else { $emailFile = _PSROOTDIR.$email; }

        if (file_exists($emailFile)) {
            $emailHtml = file_get_contents($emailFile);
        } else {
            $emailHtml = '';
        }
    
        return $emailHtml;
    }
    

    ```

  6. And what if its not a windows only issue (the mail translations)? I mean it seems to me that the path to the email template is wrong when working inside a sub folder as base uri. Now wamp server always works like that but on production server I never used a folder to install TB or PS. Can you please confirm that translation for email template works when TB installed inside a folder (www.yourdomain.com/shop/) on a linux server.

  7. @mdekker I don't believe that anyone will host a production TB site on windows server. But in my case (and probably for few others) I use wamp server to run local PHP development, and it would be nice to finish it completely locally before uploading it to linux server for production. I dont think there are too many windows bugs (I did more than 30 PS shops in the last 5 years with the same bugs, or worst), and I believe that most off them have a related issue that once fixed in one place will take care on all of them. In my case, I wasn't able to install TB Blog locally, and wasn't able to translate email templates (those are the only 2 things that bothered me on a certain shop I did). I had to do both of them on the production server. I don't know if it will helps but I know that on wamp server you create a folder for the shop, and then PSROOTDIR is like: 'C:\wamp\www\tbshop' But then the PSBASEURI is '/tbshop/'. when looking at the translation controller: $emailFile = strreplace(PS_BASE_URI, '', _PSROOTDIR.'/').$email; i am getting the base uri twice: 1 from the strreplace and the 2nd from the $email (PSMODULEDIR_) I am not sure it this will lead anywhere.

  8. in global.css

    Lines 3482-3483 should be: border-bottom-left-radius: 20px; border-top-left-radius: 20px;

    Lines 3497-3498 should be: border-bottom-right-radius: 20px; border-top-right-radius: 20px;

  9. @Havouza you know that each page set its name as id for the body.

    So basically if you want something for a specific page you can use something like:

    cms td {something}

    category td {something else}

  10. Just google shopping sites in US/Europe. You will probably find a billion. I dont recommend looking at the big ones, like: macys, oldnavy, etc.... I know that eCommerce also indicates about returns, transactions and stuff. and thats why I recommend eCommerce instead of Dropbox

×
×
  • Create New...