Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Lgn.Magic

Pioneers
  • Posts

    49
  • Joined

  • Last visited

Everything posted by Lgn.Magic

  1. Ok i got it working now... But anyones has an idea of what is the echo command to call stock level? Because i'm using another Contribution to draw my table of attribut in product_info and i would like to add the stock level here....not showing the default QT pro stock table... i just need a td line like this one wich is calling attribut name <td class="main" align="center"><?php echo [u]$products_options_name['products_options_name'][/u]; ?></td> I just simply can't find the good eco command to call stock level (something like what is underlined on the code. Is anyone able to help me out...i searched mostly in "qtpro_stock_table.php" and cannot figure out wich command is calling stock level. None of the echo command i tried worked out Thank you for your time!
  2. ok if dropdown affected with stock level is not worth it and is too much work i can understand perfectly :D Good to hear you're working on a version to add a dropdown selection even if not affected by stock level. then i can use QT pro function to show my stock stock level (i've got it installed) but i need to add the row "stock level" wich normally display with qtpro option "display table with stock information" into the table from this contribution since i don't want to show 2 table. i added heading row already using this <td class="main" align="center"><?php echo STOCK_LIST_IN_PI_TEXT_HEADING; ?></td> taking the define command from qt pro found in includes/languages/english/product_info.php But i can't figure out how to write command to show stock level such as <td class="main" align="center"><?php echo $products_options_name['products_options_name']; ?></td> is displaying the attribut name Can you help me out with the php echo command to display my stock level??? i tried few things already such as this for exemple <td class="main" align="center"><?php echo $products_stock_values['products_stock_quantity']; ?></td> but it seems all i tried wasn't the good command....im looking into includes/modules/qtpro_stock_table.php but can't figure out wich one is the good one.. Can't you help me out? Thank you so much for your time !! Fabien
  3. Hello Jack, I was wondering if there is any ways to make a dropdown instead of quantity case where u need to manually type quantity where this dropdown would only show the max quantity available for an attribute or another. (alright i've a mod for attribute quantity installed) ie: i got 10 in stock for attribut 1....dropdown show up to 10 max got 5 for attribut 2....dropdown show 5 max and so on.. even if i got a stock check on my cart shop, and i should not have any problem with product bought wich aren't in stock.. i thought it would be way nicer to have dropdown with max quantity on my product info.. any ways to do this changing the tep "function" on the quantity line? it's here i guess <?php echo tep_draw_input_field('quantity[]',$value = '0',"size=2");?></td> Thank you for ur time ! Fabien. PS: Btw just thinking to that, dropdown would need to have 0 or -- as default instead of 1 quantity...so it don't end up adding all attribut with 1 quantity since this contrib add every quantity typed in table with 1 add to cart click
  4. Oh great ty :D must have missed it when searching contributions.
  5. Hello everyone, I was looking in forums and contributions but i couldn't find yet if such change exist I'm pretty sure it can be done but im not good enough in coding to do it myself. Does anyone knows if there is a contribution already to calculate attribute price using percent instead entring a value each time? ie: i've got different attibutes. language and quality. i would like quality to be calcualted using percent... quality 1 = 100% of base price quality 2 = 80% of base price and so on... so i don't have each time to do the pricing myself...i have my base price and add my attributes to the product...so no matter if product is $1 or $100 it calculate automaticaly the correct price. that would save me so much time..and if i ever have to change base price for a product it auto adjust every attribut assigned to it. Im not sure such contribution exist at the moment...but im pretty sure it's possible to code..changing some code in admin product_attribut.php or some page like this. the question is how hard/long it's to do. Does anyone have an answer for me...it already exist or anyone is able to help me out with code to cahnge and where to do such change. Thank you in advance, Fabien.
  6. Ok seems it's not fixing without slash. I'll have a look on forums and do few search about it. Pretty sure this Os cache prob is what is messing up i/m when i turn cache on...it definitly should be working. i must have a mistake somewhere. Or maybe it's just because i run a local install...but i don't see any reason for it to be different than on a live server...easy php is supposed to remplace a live server and works "the same way".... Don't bother about it, ill find it myself i guess. Anyways Thanx a lot for your time and support !!! Best Regards, Fabien
  7. im not sure i understand quit well what you mean. with path u mean my settings pointing to wrong direction? and with rights you mean wrong folder attribute 777 and so on? I seems to have an issue with cache anyways. Not talking about i/m cache options If i turn on oS cache in configuration/cache....then my categories names on my site are gone...very weird.. I've set it right i think..folder cache directory is /tmp/ and i've created that folder with 777 autorization. then if if i go to tools/cache control...with folder created or not, i got a warm message in red at top telling my cache folder doesn't exit and i need to specify it in configuration/cache.....(wich is already done :s) My question is, do i have a problem on my configure.php in admin/includes i don't see anything in that file mentioning cache text....except define('STORE_SESSIONS', 'mysql'); but this is not the same i believe i/m chache is using same patch as Os cache (/tmp/ in my case)? or the thumbnails folder is considered as cache folder for this 2 options? Got any clue or i need to make more search on forums and so on. Keep in mind im working on local install and not on a online server Thanx in advance
  8. ok right, watermark not working it seems, but it's not such a big deal because i don't think i'll use it anyways. iwas wondering if it would block this function when i posted about it above. ill probably have a watermark need on very few amount of pictures... so ill just watermark them with photoshop or some other prog that add automaticaly watermarks. Only last "problem" i have is i/m server cache need to be turned off if i want images to be shown. no problem with i/m cache on in browser's user...works if on or off. server cache on would be better since it would not creat thumbnails each time page is beeing visited. got any clue about this? or i'll have to let it turned off
  9. ahhhh !!! here is what i did commented both function here for prod info and also pop up if you don't comment out pop up aswell, it result in blank image when opening pop up if ($_GET['page'] == "prod_info") { $thumbnail_size=4; // $page_prefix = $page ."prod_info_"; } if ($_GET['page'] == "popup") { $thumbnail_size=5; // $page_prefix = $page ."prod_info_"; } then commented the whole block //add selected custom filters to the image // if (BRIGHTNESS_ADJUST != "0") adjust_brightness(&$tmp_img,BRIGHTNESS_ADJUST); // if (CONTRAST_ADJUST != "0") adjust_contrast(&$tmp_img, CONTRAST_ADJUST); // if ($image_watermark) watermark_image(&$tmp_img, DIR_FS_CATALOG.'includes/imagemagic/watermarks/'.WATERMARK_IMAGE ,WATERMARK_IMAGE_POSITION, WATERMARK_IMAGE_OPACITY, WATERMARK_IMAGE_MARGIN); // if ($frame) frame(&$tmp_img, FRAME_WIDTH, FRAME_EDGE_WIDTH, FRAME_COLOR, FRAME_INSIDE_COLOR1, FRAME_INSIDE_COLOR2); // if ($bevel) bevel (&$tmp_img, BEVEL_HEIGHT, BEVEL_HIGHLIGHT, BEVEL_SHADOW); // if ($text_watermark) watermark_text(&$tmp_img, WATERMARK_TEXT, WATERMARK_TEXT_SIZE, WATERMARK_TEXT_POSITION, WATERMARK_TEXT_COLOR, 'includes/imagemagic/fonts/'.WATERMARK_TEXT_FONT, WATERMARK_TEXT_OPACITY, WATERMARK_TEXT_MARGIN, WATERMARK_TEXT_ANGLE); in fact i commented all line i had error with...and now images are showing and i/m does his job. I just hope it won't make other problem. i need to get dinner now i'm really hungry :D when im back ill try use some watermarks to see if it works or if commenting the last code break up watermark use fucntion. Thanx a lot for you help. gotta post about this watermark test in few minutes
  10. Yeah calculate image size in configuration/image is to true i just tried set to false both cache thumbnails on the server and cache thumbnails in user brower and i still don't have pic showing. ----- Ill go through this so you can tell me if i did something wrong or forgot something, it may come from there with that undefinited function error. 1. added sql to my database 2. i uploaded - imagemagic.php to catalog directory - imagemagic folder to catalog/includes 3. modifed/added code into: - added the whole "function tep_cfg_readonly($value){" at the end of catalog/includes/funtions/general.php before the last ?> i did right there? it's not in catalog/admin/includes/functions/general.php right? If i remember right, the first time i installed i added code in admin/includes/functions/general.php but it didn't worked after i saw admin part was deleted so i added into catalog/includes/functions/general.php instead and it worked..creating thumbnails folder and so on..showing imagemagic.php into picture URL.. - modified the function "function tep_image" into catalog/includes/functions/html_output.php the whole image function strat from function tep_image($src, $alt = '', $width = '', $height = '', $params = '') { to return $image; } the whole function is very long and is not only 5/6 lines long Right? if im not wrong on last 1.14 version of i/m there is nothing to change in catalog/admin files. did i forgot or did something bad in processing intall? Thanx again trying to help me fix my problem!!
  11. Wah, Thank a lot for such a fast reply, it's really appreciated. Looking forward your new reply. Also how about that undefinited variable into line 57 <b>Notice</b>: Undefined variable: page in <b>...\www\catalog\imagemagic.php</b> on line <b>57</b><br /> 55 if ($_GET['page'] == "prod_info") { 56 $thumbnail_size=4; 57 $page_prefix = $page ."prod_info_"; 58 } the numbers are not in the code, i added them to let u see the whole function and which is on wich line. does it seems alright to you? thank you again for your time and such a fast support. Greetings, Fabien. Also as a last note, i saw somewhere in the theard that contrib was deleted at a time..was it a problem with unrelease under GPL lisence...there is no problem using contrib as it's right? since imagemagic doesn't show standard GPL lisence at top of the page.
  12. Hello, I still can't figure out why my images are not showing anymore. i've gone through the whole theard and couldn't fix it. I got i/m running fine, i did everything correctly. only hight specified for all 3 image variable into configuration/images thumbnails folder got created auto and set 777... image show imagemaig.php in url and thumbails are created in the respected folder. size seems to be ok....but image are just not showing eveywhere on my site. (just to let you know im on local setup not online, but this change nothing i believe) everything seems ok...gd library avail and running... my server caching in (back office...configuration/cache) is turned off. If going to Tools/cache control...i seems to have an eror telling cache folder doesn't exit...but it does and is set to 777....i beleive this is just a local problem, isn't it? but anyways server cache is turned off if loading directly in my browser one the image url i got this not that i got url as it should....i/e like http://...../catalog/imagemagic.php?img=images/12.jpg&w=100&h=138&page=prod_info <br /> <b>Warning</b>: Call-time pass-by-reference has been deprecated in <b>....\www\catalog\imagemagic.php</b> on line <b>279</b><br /> <br /> <b>Warning</b>: Call-time pass-by-reference has been deprecated in <b>....\www\catalog\imagemagic.php</b> on line <b>280</b><br /> <br /> <b>Warning</b>: Call-time pass-by-reference has been deprecated in <b>....\www\catalog\imagemagic.php</b> on line <b>281</b><br /> <br /> <b>Warning</b>: Call-time pass-by-reference has been deprecated in <b>...\www\catalog\imagemagic.php</b> on line <b>282</b><br /> <br /> <b>Warning</b>: Call-time pass-by-reference has been deprecated in <b>....\www\catalog\imagemagic.php</b> on line <b>283</b><br /> <br /> <b>Warning</b>: Call-time pass-by-reference has been deprecated in <b>....\www\catalog\imagemagic.php</b> on line <b>284</b><br /> <br /> <b>Notice</b>: Undefined variable: page in <b>...\www\catalog\imagemagic.php</b> on line <b>57</b><br /> note that i edited directory in the code deleting the full adress location before /www/... because it's not needed at all the line 279 to 284 of imagemagic.php are if (BRIGHTNESS_ADJUST != "0") adjust_brightness(&$tmp_img,BRIGHTNESS_ADJUST); if (CONTRAST_ADJUST != "0") adjust_contrast(&$tmp_img, CONTRAST_ADJUST); if ($image_watermark) watermark_image(&$tmp_img, DIR_FS_CATALOG.'includes/imagemagic/watermarks/'.WATERMARK_IMAGE ,WATERMARK_IMAGE_POSITION, WATERMARK_IMAGE_OPACITY, WATERMARK_IMAGE_MARGIN); if ($frame) frame(&$tmp_img, FRAME_WIDTH, FRAME_EDGE_WIDTH, FRAME_COLOR, FRAME_INSIDE_COLOR1, FRAME_INSIDE_COLOR2); if ($bevel) bevel (&$tmp_img, BEVEL_HEIGHT, BEVEL_HIGHLIGHT, BEVEL_SHADOW); if ($text_watermark) watermark_text(&$tmp_img, WATERMARK_TEXT, WATERMARK_TEXT_SIZE, WATERMARK_TEXT_POSITION, WATERMARK_TEXT_COLOR, 'includes/imagemagic/fonts/'.WATERMARK_TEXT_FONT, WATERMARK_TEXT_OPACITY, WATERMARK_TEXT_MARGIN, WATERMARK_TEXT_ANGLE); and the line 57 is (i believe problem may be here but i can't figure out what is wrong) 55 if ($_GET['page'] == "prod_info") { 56 $thumbnail_size=4; 57 $page_prefix = $page ."prod_info_"; 58 } the numbers are not in the code, i added them to let u see the whole function and which is on wich line. I really can't figure out what is problem except something wrong into those 2 last code posted..but it's original code from install the edited code for has beend change in the good html_output.php (in catalog/includes/function/ and NOT in admin/includes/fuction since admin change are now gone in 1.14 version of i/m. I don't know what to say more..if turning off i/m evey pics come back if turning on.. all are missing...like if image wasn't on location specified. Hope i can get help about this. Thank you in advance for your time Regards,
  13. This contribution is great, but there isn't any text for manual install. i gotta have to check every files with a prog (like mentionned in manual) to find and make my changes? No one ever done a manual instruction text with code to find and to change like in most contribution u can find?? there is so many files changed, it will take so much time to do that..and most probably ill have some error or mistake somewhere.
×
×
  • Create New...