Jump to content

Lgn.Magic

Members
  • Content count

    49
  • Joined

  • Last visited

  1. Lgn.Magic

    Attribute Qty Product Info

    Hello Jack, As always, fast and smart!! The piece of code you posted is working like a charm. Both specials and normal prices are now displaying correctly in the table. Double check me on a fresh install to make sure it's working, if you're going to post the change on the contributions sections since i've a heavily moded store. Thank you again for your time and work. you're THE man :) Regards, Fabien.
  2. Lgn.Magic

    Attribute Qty Product Info

    Hello Jack, After sometimes gone, i've decided to give another shot to that prob and see if i can find a solution myself. Actually i've come across "a partial solution" I can now have the specials price show correctly in the table of this contribution, but i still have a problem with else/if when writing the last part for the non specials prices. I explain a bit better. actually this is what i've for showing special price correctly. I changed if ($products_options['price_prefix'] == '+') { $price_with_attribute = ($product_info['products_price'] + $products_options['options_values_price']); } else { $price_with_attribute = ($product_info['products_price'] - $products_options['options_values_price']); } to if ($new_price = tep_get_products_special_price($product_info['products_id'])) { if ($products_options['price_prefix'] == '+') { $price_with_attribute = ($new_price + $products_options['options_values_price']); } else { $price_with_attribute = ($new_price - $products_options['options_values_price']); } } That way any special price is showing correctly. But there is code missing wich get the non specials price and this is there i've the problem. If i code something like if ($new_price = tep_get_products_special_price($product_info['products_id'])) { if ($products_options['price_prefix'] == '+') { $price_with_attribute = ($new_price + $products_options['options_values_price']); } else { $price_with_attribute = ($new_price - $products_options['options_values_price']); } else { $price_with_attribute = ($product_info['products_price'] + $products_options['options_values_price']); } else { $price_with_attribute = ($product_info['products_price'] - $products_options['options_values_price']); } } } or any other way, like changing order like if ($new_price = tep_get_products_special_price($product_info['products_id'])) { if ($products_options['price_prefix'] == '+') { $price_with_attribute = ($new_price + $products_options['options_values_price']); } else { $price_with_attribute = ($product_info['products_price'] + $products_options['options_values_price']); } else { $price_with_attribute = ($new_price - $products_options['options_values_price']); } else { $price_with_attribute = ($product_info['products_price'] - $products_options['options_values_price']); } } } or some other i've tried, i always end with a syntax error on the second or third } else { I believe error is not big and it shouldn't be hard...im just not good enough to understand wich caractere or word is badly formatted or what is missing. Also such code "i written" is probably pretty badly written for a php coder wich know exactly what he is doing. But if u have any suggestion to write second part, i ll take it. Right now i can make works specials price wich is only the first part of code (first two $price_with_attribute =), but after thatanything i try else get syntax error on else or show me normal price with 0. so i must have mistake somewhere. i've advanced some on this issue, so i thought i may send something here, and u may be able to give some suggestion Thank you for your time Fabien
  3. Lgn.Magic

    Header Tags SEO

    As always thank you for your fast answers! You're just a MUST for this community. Accept my congratulations for your hard and amazing work. I Will be looking for next version, that would definitly be helpfull and save time for multi languages stores. Have a good day, Regards!! Fabien.
  4. Lgn.Magic

    Header Tags SEO

    Hello Jack, The Fill Tag is great feature, but shouldn't it be considered to be language compliant? I mean i've 2 language on my store, and when adding produts,i usually have my french title,description,keywords different from english one, since i write them in 2 language. not good to write shoes in english in a french description for exemple. Having the option to fill tags depending of language installed on shop would be great, so u can enter a french description in 1 box and one in english on the other (french/englsih in my case). and then fill tag for a whole categorie and both languages. exactly as when u do it manually when adding products, you have a box for meta title for each language 1 of each for meta description and so on.
  5. Lgn.Magic

    SiteMonitor

    my phpmyadmin folder is htaccess and htpasswd protected. Also my hoster is one of the best, if not the best for my country. I think there server and hosting service is pretty much secured, they are really very profesional. although there always can be someway to try to enter with hacking. Nothing is a 100% secure. Anways, i'll try to follow your intruction and not skip that folder. ill try to install sitemonitor as u mentioned above. If i ever have problems to install a "2nd copy" of sitemonitor i'll try to contact them first since they got a pretty good contact support and they are oscommerce based so they know that open source very well. (so it can avoid making you more work answering me) If i ever have a recurring problem installing, i may come back to you for some infos. Thank you again !! have a good day. Fabien. PS: If i would exclude images folder, it could take away a large quantity of files and size, hackers can't use an image and modify it, since tehre is no code..but then if new files are injected there, i'll not be awarded of it right? exclude a folder both count for checking files alredy in (writed on reference file) but will also exclude that folder for checking new files in there. right?
  6. Lgn.Magic

    SiteMonitor

    Thankyou for your fast answer !! You always give so prompt reply, amazing !! I got an idea, im not sure if this is done on ever hoster, but on my root, my host created/added a phpmyadmin folder with all the files needed to run my domain, when i took my subscription. If i run site monitor with that folder excluded, it seems to run smoothly. If some people make hack attempts, it will/should be only on my shop files/folders (catalog or admin) ?? Or they are potentially could also make change on such folder like phpmyadmin wich would help them somehow to give access to something in the rest of the shop files. That folder is about 13Mo and have a lot of files, so as u suggested it may cause the problem since it's big Can i safetly exclude this folder from site monitor without making a "hole". I mean i'll not be able to see change in that folder if i exclude, so is it a potential problem? Thank you so much again !!
  7. Lgn.Magic

    SiteMonitor

    Hello Jack, I tend to ask this little question. I run into Maximum "execution time of 30 seconds exceeded" for all 3 task u can do with site monitor (not counting hack code checker) Fatal error: Maximum execution time of 30 seconds exceeded in /....../includes/functions/sitemonitor_functions.php on line 264 If i try to go to my vhost and change max_execution_time from 30 to 60 (or even highter) and go back to site monitor and run one of this 3 task, i end with blank page..with no error showing..but the task isn't completed.. Is that possible to delet or comment that whole function in sitemonitor_funtions.php ?? wich is where is the execution stop to line 264 is Or this will break out something? I cannot understand why by changing on myvhost to 60 sec or even more, end me with a blank screen on site monitor tasks on my shop back end. Im using php5 and register off btw.. Thank you for your time, Fabien. PS: Note that if leaving to 30, i can run site monitor manually, but i don't have a complete report, and at the end of page i got the execution time error...but anyways i cannot update or delet reference time with 30sec..only run site monitor is half working, but no sense to do it with a old reference file
  8. Lgn.Magic

    Sitemap SEO

    i found out....this was coming from <!doctype html....> Sitemap.php from this contrib has <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> and for exemple my index.php has : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> So i changed code in sitemap.php to this instead of the first one, and my categories link is back to normal. i've absoluty no clue why such a minor difference could do such a bug, but it seems to have fixed my problem.
  9. Lgn.Magic

    Sitemap SEO

    hello jack, i just added this contrib on my store, and as last time i tried i've the same problem wich should be minor, but i cannot figure it out. once i add contrib everything goes well, but the font size of my categories box is changed, on www.domain.om/sitemap.php i end with my categories link in box categories with font size of 16 px...where in any other page i've it displayed as normal (10px). so i end up with a screwed left columm wich is way more larger than it should since bigger font resize width of my left column..i cannot understand why it's changing a font size by it's own on categories box wich has nothing to do with site map. i can provide you links so u can see for yourself. just ask for it, ill PM you links. thank you for your time
  10. Hello there, So if i understood correctly, if php server version is 5.0+ i need to install lastest mod ULTIMATE Seo Urls 5 - by FWR Media http://addons.oscommerce.com/info/6768 ?? because i've actually Ultimate SEO URLs v2.8 http://addons.oscommerce.com/info/2823 and studently, the rewrite stopped working as it was before. now instead having www.xxxxx.com/catalog/my-product-p33.html i've www.xxxxx.com/catalog/-p33.html every product names categories names and so on are gone, i've just got product id or category id etc... i think it's related with php version since i don't any other contrib thatg would break seo url. so simply if php version is 5.0+ i need ULTIMATE Seo Urls 5 - by FWR Media right? Thank you for your time!! Regards, Fabien.
  11. Lgn.Magic

    Attribute Qty Product Info

    Jack, i've tried to add this contribution on a fresh install of oscommerce, and special price is not working in attribut table. It just show the standard price, not special. in if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; if ($products_options['price_prefix'] == '+') { $price_with_attribute = ($product_info['products_price'] + $products_options['options_values_price']); } else { $price_with_attribute = ($product_info['products_price'] - $products_options['options_values_price']); Nothing call any special price like the standard new price call you can find in default prod info if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } so when u call the echo in table <?php echo $currencies->display_price($price_with_attribute, tep_get_tax_rate($product_info['products_tax_class_id'])); ?> it's normal to me that no special price is shown, since there is nothing in the code that do it. could you have a look at it? i've tried several things, but can't get it to work right wich each attribut. i can get it to show special price, but it show same special price for any attributs, im missing something somewhere. thank you, Fabien
  12. Lgn.Magic

    [Contribution] U HTML Emails

    Yeah this is working, but when you have multi language installed...all orders proceceed by paypal will have emails sent in english (or whatever language u decide to write in require(DIR_WS_LANGUAGES . $language . '/modules/UHtmlEmails/Standard/checkout_process.php'); change to : require(DIR_WS_LANGUAGES . 'english/modules/UHtmlEmails/Standard/checkout_process.php'); so a french customer will have an english mail....it's a bit tricky :( basically the problem is when returning from paypal on site, it doesn't creat good patch so you end with errors.. it search for includes/languages/modules/UHtmlEmails/Standard/checkout_process.php instead of where it's includes/languages/YOURLANGUAGE/modules/UHtmlEmails/Standard/checkout_process.php thats' why it creat a "failed to open stream: No such file or directory" i can't find out why...because the line is correct require(DIR_WS_LANGUAGES . $language . '/modules/UHtmlEmails/Standard/checkout_process.php'); my only guess is that paypal is losing lauguage or something from time you click confirm and time it goes back to site after payment. ONE more issue with paypal and his bypass of checkout_process..... No one found at alternative change working without define a fixed language?? i would love to hear it. Thanx
  13. Lgn.Magic

    Optional Related Products, Version 4.0

    woups there is a mistake it's $attributes_values['products_price] instead of $product_info['products_price'] in those 2 lines... Somehow i can't edit my own post 30min after :s
  14. Lgn.Magic

    Optional Related Products, Version 4.0

    Basicaly, it shouldn't. code for prices u quoted is used only in that page..when if (RELATED_PRODUCTS_SHOW_PRICE == 'True') { is called if option is turned on. I did that change and it doesn't mess up anything else. i added a <br> before </s> <span class =....... so if special price it display in 2 line not 1... that way .$products_price_slave = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '<br></s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; instead of $products_price_slave = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; -------------------------- Also if some people are interested i did another change. <p></p> tags are used to get back to next line, but using that method, you have a blank space between each line. like $caption .= '<p>' . $products_name_slave . '</p>' . ""; so i changed it to $caption .= '' . $products_name_slave . '<br>' . ""; it do the same except there is no blank space anymore. If u want to do it too. Just change all occurences of '<p>' to '' and '</p>' to '<br>' and blank space between lines are gone.
  15. Hello, anyone has a solution for restocking problem with paypal standard payment... http://addons.oscommerce.com/info/5655 + 4.51b fix for payapl standard from surfalot nov 2008 http://addons.oscommerce.com/info/888 The fix for adjusting quantity is working good, but when we talk about restocking it's just a pain in the ass lol anytime an order is temp recorded in DB before processing payment, it do it correctly.....but once payment is done and you get back to site, instead of updating that same order line in ORDERS_PRODUCTS table to set the new status and add the products_attributs quantity in the last row. it just creat a new line instead updating the temp one....it do creat new line, but set order_id as 0 instead of order id....result, you have 2 line for an order, and when deleting an order and restocking, it use the temp line witch has products attribut to NULL...so it doesn't restock... http://img22.imageshack.us/img22/3835/dbor...oductstable.jpg First line is the temp order before paying...order_id raw correct....last raw products attributs to null (normal since it doesn't adjust stock before payment is done and u get back to the site) second line is after payment....attributs adjusted in last raw, but order id set as 0.... io cannot uderstand why it creat new line instead updating....or why it doesn't delet temp line and creat a new one with good order_id.. this is driving me crazy a little i hope anyone can help regards, Fabien
×