Jump to content

valerif

♥Ambassador
  • Content count

    191
  • Joined

  • Last visited

Everything posted by valerif

  1. valerif

    One Page Checkout Support

    hi steve, i upgraded from 1.2 to 1.3 and noticed similar problem as described above. when selecting the paypal standard it says LOADING and does not go eny further. did you find a solution to this problem? thanks
  2. valerif

    Master Products - MS2

    dear all, i am looking at installing this contribution but need some confirmation first if it can do what i need it to do. the functionality i am looking at is: 1) Choose a product and add it to card 2) When in card i need the customer to be offered additional things they can buy that are related to this product example: a) Let say I buy shoes B) add to card c) in one of the columns or on the main page i am offered to add "shoe laces" and "shoe polish" and perhaps other related products d) i decide to add the laces and the card updates on top e) then i go to checkout as usual hope some one could confirm to me if i can use this contribution for the above described functionality thanks
  3. valerif

    [Contribution] Option Types v2

    Hi Zappo, I am trying to do the following function. Example: In the product listing there are different sizes T-shirts. I choose a size A and go to shopping cart. From there I can check out but also i am presented with 2 more options (add a pair of trousers to match the T-shirt and a add a coating to the T-shirts print for better protection). If i choose them the shopping cart updates including them too. Let me know please if you could suggest how could I achieve such a functionality. Thanks valeri
  4. valerif

    AJAX Attribute Manager support

    hi, for who would like to make this work see the solution below. thanks to the suggestions of 2 members of this forum that guided me to this solution on approximately line 88 and 421 of attributeManagerInstant.class.php change: if((empty($prefix))||($prefix==' ')){ $prefix='+'; to: if((empty($prefix))||($prefix==' ')){ $prefix=''; on line 134 of attributeManager.jsc change: if((price!='0.0000')&&((prefix=='')||(prefix==' '))){ setDropDownValue('prefix_'+optionValueId,'%2B','s');//+ } to: if((price!='0.0000')&&((prefix=='')||(prefix==' '))){ setDropDownValue('prefix_'-optionValueId,'%2B','s');//- } cheers
  5. valerif

    AJAX Attribute Manager support

    hi, correction. the problem is still there for the first attribute worked. but when i add next atrribute it automatically adds + prefics again once i put a price. for example i add $20.00 and it adds + to it. if i select instead of + nothing then it converts the price to 0.00 i would appreciate any suggestion how to remove the prefix please thanks
  6. valerif

    AJAX Attribute Manager support

    hi, thanks for your advise. it works fine. why i need this is becasue i installed a contribution where actual prices are shown. in this contribution is required to write the actual price and leave the prefix epmty thanks again
  7. valerif

    One Page Checkout Support

    hi, i seem to have problem with shipping rates if i use only one method of shipping it is OK but if i add 2 or more then it does not work did any one encounte same problem? i installed the 1.2 version if there is a solution to this let me know please valerif
  8. valerif

    [Contribution] Option Types v2

    hi, can some one let me know how to make a button to activate a java scrip. let say only on press of this button the java script should activate. thanks valerif
  9. valerif

    [Contribution] Option Types v2

    hello, can you let me know how can i increase the option name lenght and comment lenght thanks valerif
  10. valerif

    AJAX Attribute Manager support

    hi, hope some one can help me i need to remove the forced (+) when adding attributes to a product. i need it to be (nothing). the problem now is that when i make it nothing it automatically converts the attribute value to (0.00). thanks in advance valerif
  11. valerif

    [Contribution] Option Types v2

    Dear Zappo, I need a little help if possible. I would like to make sure one of the options is aways selected when using radio buttons. Normally, this should be the lower price or the first option from top. In order to achieve this in option_types.php I changed $checked = true to false; } else {$checked = false to true;. This change forced selection. The only problem is that it selects always the bottom option (radio button). I hope you could suggest a way to select the top one? the page as example: http://www.artzoom.co.uk/product_info.php?cPath=3&products_id=32 below is the code in question: case OPTIONS_TYPE_RADIO: $tmp_html = '<table>'; $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$product_info['products_id'] . "' and pa.options_id = '" . $ProdOpt_ID . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "' order by pa.products_options_sort_order"); while ($products_options_array = tep_db_fetch_array($products_options_query)) { if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$ProdOpt_ID]) && ($products_options_array['products_options_values_id'] == $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$ProdOpt_ID])) { $checked = false; } else { $checked = true; } $tmp_html .= '<tr><td class="main">'; $tmp_html .= tep_draw_radio_field('id[' . $ProdOpt_ID . ']', $products_options_array['products_options_values_id'], $checked); $tmp_html .= $products_options_array['products_options_values_name']; if ($products_options_array['options_values_price'] != '0') { $tmp_html .= ' (' . $products_options_array['price_prefix'] . $currencies->display_price($products_options_array['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } $tmp_html .= '</tr></td>'; } $tmp_html .= '</table>'; ?> <tr> <td class="main"><?php echo '<strong>'. $ProdOpt_Name . ':</strong>' ; ?><?php echo $tmp_html .'<small>' . $ProdOpt_Comment . '</small>'; ?> </td> </tr> <?php
  12. hi, nice upgrade, thanks after upgrading the contribution i noticed that the borders that i set on the product info image using the oscTumb contribution have gone. i wonder if you could suggest me how can restore them back. this is the code that is responsible for this (i will use here the old code for now): <!-- Simple multi image addon --> <div id="fancy"> <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText"> <?php if (strlen($product_info['products_name']) > $max_title_length) { $title = wordwrap(htmlspecialchars($product_info['products_name']), $max_title_length, '<br>'); } else { $title = htmlspecialchars($product_info['products_name']); } $m_source = ''; $thumb = (class_exists('oscthumb') && CFG_MASTER_SWITCH == 'On'); if ($thumb) { preg_match('/"([^"]+)"/',htmlentities ( tep_image(DIR_WS_IMAGES . $product_info['products_image'],'','','','','',5), ENT_NOQUOTES), $image); $m_source=str_replace('&','&',$image[1]); } echo '<a rel="image_group" title="'.$title.'" href="' . ($m_source ? $m_source : DIR_WS_IMAGES . $product_info['products_image']) . '" alt="' . $product_info['products_name'] . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], PRODUCT_INFO_IMAGE_WIDTH, PRODUCT_INFO_IMAGE_HEIGHT, 'hspace="5" vspace="5"', false, 5) . '<br /></a>'; if(!$vertical_format) { echo ''; $row = 1; reset($products_image_array); foreach($products_image_array as $value) { if ($thumb) { $source = ''; preg_match('/"([^"]+)"/',htmlentities ( tep_image(DIR_WS_IMAGES . $value,'','','','','',5), ENT_NOQUOTES), $image); $source=str_replace('&','&',$image[1]); } echo '<a rel="image_group" title="'.$title.'" href="' . ($source ? $source : DIR_WS_IMAGES . $value) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $value, $product_info['products_name'], TINY_IMAGE_WIDTH, TINY_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a>'; ++$row; if ($row > $image_group) { echo '<br />'; $row = 1; } } } echo '</td>'; if($vertical_format) { echo '<td>'; $row = 1; reset($products_image_array); foreach($products_image_array as $value) { if ($thumb) { $source = ''; preg_match('/"([^"]+)"/',htmlentities ( tep_image(DIR_WS_IMAGES . $value,'','','','','',5), ENT_NOQUOTES), $image); $source=str_replace('&','&',$image[1]); } echo '<a rel="image_group" title="'.$title.'" href="' . ($source ? $source : DIR_WS_IMAGES . $value) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $value, $product_info['products_name'], TINY_IMAGE_WIDTH, TINY_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br />' . '</a>'; ++$row; if ($row > $image_group) { echo '</td><td>'; $row = 1; } } echo '</td>'; } ?> <tr> <td align="center" class="main"><?php echo TEXT_IMAGE_COMMENT; ?></td> </tr> </table> </div> <!-- EOF Simple multi image addon -->
  13. valerif

    [Contribution] Option Types v2

    this is a nice and simple solution. thank you i think it is worth adding it to the contribution add on product_info.php the following java script: ------------------- <script type="text/javascript"> var ray={ ajax:function(st) { this.show('load'); }, show:function(el) { this.getID(el).style.display=''; }, getID:function(el) { return document.getElementById(el); } } </script> <style type="text/css"> #load{ position:absolute; z-index:1; border:1px double #999; background:#f7f7f7; width:300px; height:200px; margin-top:-150px; margin-left:-150px; top:50%; left:50%; text-align:center; line-height:200px; font-family:"Trebuchet MS", verdana, arial,tahoma; font-size:18pt; } </style> <div id="load" style="display:none;">Loading image... Please wait</div> -------------------- then change the line adding the onsubmit action: <!--//BOF - Zappo - Option Types v2 - Added for File upload: 'enctype="multipart/form-data"' //--> <td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'onsubmit="return ray.ajax()" enctype="multipart/form-data"'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> -------------------
  14. valerif

    [Contribution] Option Types v2

    this is what i did in option_types.php changing $checked = true to false; } else {$checked = false to true;. this chnage firces one of the radio options to be force selected. this is a bodge as far as i am concerned but works. i hope some one will come up with better idea cheers valeri case OPTIONS_TYPE_RADIO: $tmp_html = '<table>'; $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$product_info['products_id'] . "' and pa.options_id = '" . $ProdOpt_ID . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "' order by pa.products_options_sort_order"); while ($products_options_array = tep_db_fetch_array($products_options_query)) { if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$ProdOpt_ID]) && ($products_options_array['products_options_values_id'] == $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$ProdOpt_ID])) { $checked = false; } else { $checked = true; } $tmp_html .= '<tr><td class="main">'; $tmp_html .= tep_draw_radio_field('id[' . $ProdOpt_ID . ']', $products_options_array['products_options_values_id'], $checked); $tmp_html .= $products_options_array['products_options_values_name']; if ($products_options_array['options_values_price'] != '0') { $tmp_html .= ' (' . $products_options_array['price_prefix'] . $currencies->display_price($products_options_array['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } $tmp_html .= '</tr></td>'; } $tmp_html .= '</table>'; ?> <tr> <td class="main"><?php echo '<strong>'. $ProdOpt_Name . ':</strong>' ; ?><?php echo $tmp_html .'<small>' . $ProdOpt_Comment . '</small>'; ?> </td> </tr> <?php break;
  15. valerif

    [Contribution] Option Types v2

    hello all, does any one knows how to force one attribute to be always selected when the user opens the product_info.php page let say i have 5 attributes there and the first one is always selected when entering the page. this would be in my case the lower price one thanks valeri
  16. valerif

    [Contribution] Option Types v2

    hi, can you tell me which files have been modified. i would update the installation if i knew this by comparing old with new cheers
  17. valerif

    Official PayPal IPN Support Thread

    received same too
  18. valerif

    Official PayPal IPN Support Thread

    receivbed same too
  19. valerif

    [Contribution] Option Types v2

    what i am thinking is something simple, at the present i have the code in a way that when there is upload option for a product instead of "Add to Cart" button the user is presented with "Add to Cart & Upload Image" button. they both do the same job. its only more user friendly for them to know that to upload the image they need to click this button what i am thinking is this. as soon as the user clicks the Add to Cart (Add to Cart & Upload Image) button they will be presented with new page (or stay on the same page) showing a progress bar or something like this just to show to the user they have to wait. this code can include also cancel upload option. in particular this is important when the image is larger one and takes some time to upload as soon as the upload has been completed the user is moved to shoping_cart.php i was looking for ajax progress bar but to be honest i am not good at coding and struggle to integrate it anyway i will keep on trying cheers valeri
  20. valerif

    [Contribution] Option Types v2

    zappo, thanks for the suggestion. this is the code i added. pehaps you can consider updating your contribution by adding this code to it too. it works for shops that have some items where upload is required and some where upload is not required: <?php if ($number_of_uploads >= 1) { echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart_upload.gif', IMAGE_BUTTON_IN_CARD_UPLOAD); }else { echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); } ?></td> all i need now is to get some uploading progress bar integrated if you have a suggestion for this i would appreciate very much. it should work as the buton is pressed the count starts. can be used ajax since in most shops it is already installed thanks again valerif
  21. valerif

    [Contribution] Option Types v2

    thanks for the explanation, it clears it all. i installed the change as it is and works fine on my server fine
  22. valerif

    [Contribution] Option Types v2

    hi zappo, thanks for the update and your replay on my questions i started updating to the new version but noticed one difference on the new code for the product_attributes.php for example in the old file i have: ($HTTP_GET_VARS['action']) but in the new update: ($_GET['action']), and this is repeated through every _GET statement. i stopped my update here because i wondered if this was deliberate change or some kind of typo let me knmow please thanks valeri
  23. valerif

    [Contribution] Option Types v2

    thanls for your answers. 2) it would be very helpful if you can provide some code suggestion on: if upload option is available replace the checkout button with or add another button that will be UPLOAD AND CHECKOUT 3) perhaps could be an option when creating the options in admin a particular option can be set as a default selected always. this is not very flexible way but it can be a good start and will resolve the problem thanks again
×