Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by beerbee

  1. Hi pretty nice @JcMagpie it works also using unicodes: https://www.alt-codes.net/snowflakes-symbols.php It is possible to put each of the the three and also the * in an array and let them get generated randomly. I did this the evil hardcoding way so might see this as a kind of inspiration: // Set the letter that creates your snowflake (recommended: * ) var snowletter=["&#10052;","&#10053;","&#10054;","*"] .... for (i=0;i<=snowmax;i++) { var snowlot = snowletter[Math.floor(Math.random()*snowletter.length)]; document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowlot+"</span>") } Best regards Christoph
  2. Hi, in which way is your domain now pointing to the subfolder /catalog ? The rewrite part of my .htaccess starts this way (with examples for base): <IfModule mod_rewrite.c> RewriteEngine On # RewriteBase instructions # Change RewriteBase dependent on how your shop is accessed as below. # http://www.mysite.com = RewriteBase / # http://www.mysite.com/catalog/ = RewriteBase /catalog/ # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ # Change RewriteBase using the instructions above RewriteBase / and ends like this: </IfModule> Best regards Christoph
  3. Hi, depends where and how your site is hosted, normally you can direct the domain to any subfolder of public_html by using your providers tools for domain settings. The .htaccess file has to be moved to the subfolder (catalog) or merged if there is already one and rewrite base would be RewriteBase / then. Best regards Christoph
  4. This can be the case with hardcoded links and as far as I know .htaccess won't do the trick, but it is not so hard to get rid of them. If you get a mixed content warning about insecure loaded elements, you could look at the page source in your browser and there search for http: and then adjust your code. You could also use Firefox and press ctrl+shift+e to start network analysis and find insecure elements. Best regards Christoph
  5. @RAC, I think the best practice now would be to go totally ssl which means regarding to the two configure files set both HTTP_SERVER and HTTPS_SERVER to https://yoursitewhatever as e.g. google plans for chrome to give a warning on every non ssl site from july on. Additionally depending on which kind of server you are there are differing ways to force ssl for everybody visiting your site using http://. have a read: Best regards Christoph
  6. Hi, what about ssl, I see you have it running on your site, but it is not configured? Best regards Christoph
  7. beerbee

    Automatically send data feed to Froogle

    Well whatever, I have to set it to 3 because without it no tax calculation (with differing taxes for e.g. food) would be done. There is an option which is checked for, but it does not exist? By the way my middle name is PIA since now, I guess. Best regards Christoph
  8. beerbee

    Automatically send data feed to Froogle

    Hi Jack, sorry, I may misunderstand you, but there is an option 3. line 402 does what I need; if (OPTIONS_ENABLED_INCLUDE_TAX == 3) { Option 2 says define('OPTIONS_TAX_CALC', (OPTIONS_ENABLED_INCLUDE_TAX == 2 ? (OPTIONS_TAX_RATE/100) + 1 : '1')); //UK. US tax rate - US is ignorded since it is 1 so maybe you meant: if(OPTIONS_ENABLED_INCLUDE_TAX == 1 || OPTIONS_ENABLED_INCLUDE_TAX == 2) $output .= "\ttax"; Best regards Christoph
  9. beerbee

    Automatically send data feed to Froogle

    @Jack_mcs, Regarding the price with tax I ended up with this: $row->price = $currencies->display_raw($row->price_no_tax, tep_get_tax_rate((int)$row->tax_id)); Another thing I had a problem with was if(OPTIONS_ENABLED_INCLUDE_TAX == 1 || OPTIONS_ENABLED_INCLUDE_TAX == 3) $output .= "\ttax"; As I have OPTIONS_ENABLED_INCLUDE_TAX == 3 the heading would a add a tab stop with title tax but the feed would not have the have tax rate (I could not find anything which would put that there in the code) nor the tab stop in it, which produced errors at merchants.google missing that tab stop. So I changed to if(OPTIONS_ENABLED_INCLUDE_TAX == 1) $output .= "\ttax"; Best regards Christoph
  10. Hi, it seems to me that this part if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = $this->format_raw($new_price); } else { $products_price = $this->format_raw($product_info['products_price']); } $data['product:price:amount'] = $products_price; is missing to add taxes to the price which leads merchants.google to "adjust" from the price (with tax) given in product feed to the wrong one without tax using property="product:price:amount" in their listings. Best regards Christoph
  11. Yes, sure. Works now as intended. Thanks! Best regards Christoph
  12. beerbee

    Continue Shopping Button for 2.3.4bs

    Hi, for shoppingcart take a look: Best regards Christoph
  13. @burt, http://template.me.uk/234bs3/product_info.php?products_id=17 39,99 can't be wrong as you seem to be using prices without tax over there: INSERT INTO products VALUES (17,10,'DVD-SPEED','dvd/speed.gif',39.99, now(),null,null,7.00,1,1,4,0,''); display_raw($product_info['products_price'], $product_info['products_tax_class_id']); can't work correctly because it uses the products_tax_class_id as tax percentage, which won't matter as long as tax for prices is not used. But this lead to my strange results. So I assume this is correct in the end: display_raw($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); Best regards Christoph
  14. I'm just guessing but I'm getting strange results with this, as it does not show prices without tax(es) and is not adding 7 or 19 percent as it should. So my naive question would be have you more than one tax rates in use over there? Because this: if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = $currencies->display_raw($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])); } else { $products_price = $currencies->display_raw($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } works as it should. Best regards Christoph
  15. Sorry, this is putting out still wrong prices, can't understand why as from what I understand this $products_price = $currencies->display_raw($product_info['products_price'], $product_info['products_tax_class_id']); should work. Best regards and thanks for the condition hint Christoph
  16. @BrockleyJohn, yes I visited merchants.google today, and it started to adjust prices saying Items updated because of wrong prices in the feed compared to website, they seem to use it since - you are right - I'm missing that code because of an old base price addon I have to use - so I will take care of that next. Thanks for pointing me there. Best regards Christoph
  17. Quick and dirty solution, better more elegant way anyone? if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price_with_tax = $new_price + ($new_price * (tep_get_tax_rate($product_info['products_tax_class_id'])/100)); $products_price = $this->format_raw($products_price_with_tax); } else { $products_price_with_tax = $product_info['products_price'] + ($product_info['products_price'] * (tep_get_tax_rate($product_info['products_tax_class_id'])/100)); $products_price = $this->format_raw($products_price_with_tax); } Oh and half off topic, I would also like to also add a tag for condition - hardcoded as all our products are new anyway, how should it look? Best regards Christoph
  18. beerbee

    Automatically send data feed to Froogle

    @Jack_mcs No sorry I'm just into Euros.. Did this for now from: $row->price = $price_w_tax; to: $row->price = round($price_w_tax,2); puts out nor more then two digits after dot, seems to work, any caveats with this? Best regards Christoph
  19. beerbee

    Automatically send data feed to Froogle

    Hi @Jack_mcs, I have a problem with the prices (with taxes from the $price_w_tax): If the result is e.g 69.899 (three numbers after the dot) this is seen by google as EUR 69.899,00 which is a bit too much. If the result ist eg. 27.8955 (four number after the dot) is used correctly : EUR 27,90. Any clues? Another thing would be nice to have: Base price functionality as it is required for certain products in the EU. I know this requires at least two new columns in products and accordingly changes to admin/categories. Best regards Christoph
  20. Hi, https://gtmetrix.com/ advises to combine all .css files into one. Then I found that: https://manas.tungare.name/software/css-compression-in-php/ leading me there https://gist.github.com/manastungare/2625128 and then this came out <?php $cssFiles = array( "ext/bootstrap/css/bootstrap.min.css", "custom.css", "user.css" ); /** * Ideally, you wouldn't need to change any code beyond this point. */ $buffer = ""; foreach ($cssFiles as $cssFile) { $buffer .= file_get_contents($cssFile); } // Remove comments $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer); // Remove space after colons //$buffer = str_replace(': ', ':', $buffer); // Remove whitespace //$buffer = str_replace(array("\r\n", "\r", "\n", "\t"), '', $buffer); // Collapse adjacent spaces into a single space //$buffer = ereg_replace(" {2,}", ' ',$buffer); $buffer = preg_replace('/[\t\r\n]+/', '', $buffer); $buffer = preg_replace('/[\s]{2,}/', ' ', $buffer); $buffer = str_replace(': ', ':', $buffer); // Remove spaces that might still be left where we know they aren't needed $buffer = str_replace(array('} '), '}', $buffer); $buffer = str_replace(array('{ '), '{', $buffer); $buffer = str_replace(array('; '), ';', $buffer); $buffer = str_replace(array(', '), ',', $buffer); $buffer = str_replace(array(' }'), '}', $buffer); $buffer = str_replace(array(' {'), '{', $buffer); $buffer = str_replace(array(' ;'), ';', $buffer); $buffer = str_replace(array(' ,'), ',', $buffer); // Enable GZip encoding. ob_start("ob_gzhandler"); // Enable caching header('Cache-Control: public'); // Expire in one day header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 86400) . ' GMT'); // Set the correct MIME type, because Apache won't set it for us header("Content-type: text/css"); // Write everything out echo($buffer); ?> Saved as css_compress.php loaded up to catalog root and included into template_top.php with <link rel="stylesheet" type="text/css" media="screen, print, projection" href="css_compress.php" /> instead of the single css files, only problem is now that glyphicon fonts (which i will get rid of anyway) gives 404. Another question would be how to get css files of addons into that array also. Any thoughts ideas? Best regards Christoph
  21. beerbee

    QTPro BS

    Hi @raiwa , sadly i have noticed, that qtpro doctor is slowing down admin/categories.php heavily. We have 256 products with tracked stock, which often means over 25 combinations per product, I guess this produces big load on mysql as admin/qtprodoctor.php is also very slow. It got really very much faster after commenting out //Create the product investigation for this product that are used in this page. and the following lines out of categories.php Best regards Christoph
  22. Yes tried your code. Best regards Christoph
  23. Hi reverted, cleaned cache and cookies works, also tried in private FF window works, thanks a lot! Best regards Christoph
  24. Didn't work for me in one of my firefoxes - until I enabled DOM Storage again in about:config, had this one disabled years ago to avoid flash cookies. Best regards Christoph
  25. Hi, what shipping module(s) are you using? Best regards Christoph