mssmit
Archived-
Posts
16 -
Joined
-
Last visited
Profile Information
-
Real Name
Martijn
mssmit's Achievements
-
Support thread for the Image Magic contribution
mssmit replied to tomjmul's topic in General Add-Ons Support
sorry, didn't work :-( -
Support thread for the Image Magic contribution
mssmit replied to tomjmul's topic in General Add-Ons Support
question sounds a bit silly but I thought that the root folder for this item was already catalog/images, so if I have to link to a new folder "thumbnails" under the shops root folder, how can I set that properly? -
Support thread for the Image Magic contribution
mssmit replied to tomjmul's topic in General Add-Ons Support
which map do I write in the admin under "thumbnail cache directory"? -
Support thread for the Image Magic contribution
mssmit replied to tomjmul's topic in General Add-Ons Support
Hi First of all thanks for this awesome contrib! It works very fine execpt the popup's are loading quite slow. for example http://www.allesvoordekeuken.nl/catalog/pr...products_id=647 I thought server caching might help but if I switch it on pictures are not shown anymore. I created the "thumbnails" folder under the images folder, CHMOD 777, in admin I set "/thumbnails" at thumbnail cache directory but it doesn't work. I can see that thumbnails are created in \catalog\images\thumbnails\images. I guess the last images folder is created under the thumbnails folder by the contrib. However, pictures are not shown with the server cache option set to true. Any suggestions?? -
PS: this is the page with the 2gether specials http://www.allesvoordekeuken.nl/catalog/2gether_specials.php any idea why the link of the popup doesn't work anyway?
-
Hi Amanda, The 2 gether module creates a link on the image which opens the popup-image window. I created an extra page with all the 2gether specials. I want the picture to open the productinfo in stead of the popup image. I tried to change the code but I'm afraid I need your help again. thanks in advance!
-
what's left is how to change the font-size of the prices below the product images and below the buytogether text
-
it's solved; I moved up the 2gether code in product_info like this old code ']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td></FORM> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td> <?php if (MODULE_2GETHER_DISCOUNT_STATUS) { echo '<tr><td>'; include(DIR_WS_MODULES . '2gether.php'); echo '</td></tr>'; } ?> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo '<br>' . tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?> new code ']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td></FORM> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if (MODULE_2GETHER_DISCOUNT_STATUS) { echo '<tr><td>'; include(DIR_WS_MODULES . '2gether.php'); echo '</td></tr>'; } ?> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> <tr> <td> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo '<br>' . tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?>
-
that didn't work :-(
-
just found out that the right column did not disappear but is placed below the left column
-
Forgot to write: right column only disappears when there are "also purchased products" and 2gether specials on a product see links (first link without right column, second link with right column and no "also purchased products" http://www.allesvoordekeuken.nl/catalog/pr...products_id=903 http://www.allesvoordekeuken.nl/catalog/pr...roducts_id=1318 when I remove the 2gether code from product_info right column is always there ------------------------ <?php if (!$together_id) $together_id = $_GET['products_id']; if ($together_id) { include(DIR_WS_LANGUAGES . $language . '/2gether.php'); $show_money_savings = true; // show money savings $show_percentage_savings = true; // show percentage savings $show_original_prices = true; // show origibal prices of the products ?> <tr> <td> <?php $together_query = tep_db_query("select distinct product_1_id, product_2_id, discount, type from ". TABLE_2GETHER ." where product_1_id = '" . $together_id . "' and status = 1"); //$num_together = tep_db_num_rows($together_query); //if ($num_together > 0) { while ($record = tep_db_fetch_array($together_query)) { $discount = $record['discount']; $discount_type = $record['type']; if ($record['product_1_id'] == $together_id) { $aq ="select p.products_id, p.products_image, p.products_price, p.products_tax_class_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id='". $record['product_1_id'] ."' and p.products_id = pd.products_id and products_status = '1' and pd.language_id ='". $languages_id ."'"; $bq ="select p.products_id, p.products_image, p.products_price, p.products_tax_class_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id='". $record['product_2_id'] ."' and p.products_id = pd.products_id and products_status = '1' and pd.language_id ='". $languages_id ."'"; } else { $aq ="select p.products_id, p.products_image, p.products_price, p.products_tax_class_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id='". $record['product_2_id'] ."' and p.products_id = pd.products_id and products_status = '1' and pd.language_id ='". $languages_id ."'"; $bq ="select p.products_id, p.products_image, p.products_price, p.products_tax_class_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id='". $record['product_1_id'] ."' and p.products_id = pd.products_id and products_status = '1' and pd.language_id ='". $languages_id ."'"; } $product_a_query = tep_db_query($aq); $product_a = tep_db_fetch_array($product_a_query); $product_b_query = tep_db_query($bq); $product_b = tep_db_fetch_array($product_b_query); $product_a_price = $product_a['products_price']; $product_b_price = $product_b['products_price']; if (DISPLAY_PRICE_WITH_TAX) { $product_a_price = tep_add_tax($product_a_price,tep_get_tax_rate($product_a['products_tax_class_id'])); $product_b_price = tep_add_tax($product_b_price,tep_get_tax_rate($product_b['products_tax_class_id'])); } if ($discount > 0) { $together_image = '<img src=' . DIR_WS_IMAGES . 'save-icon_blink.gif alt="$" title="$">'; $together_text = TOGETHER_HEADING_TEXT_SPECIAL_OFFER . '<br>'; if (($show_money_savings) or ($show_percentage_savings)) { $together_savings_string = TOGETHER_TEXT_YOU_SAVE; } else { $together_savings_string = ''; } if ($discount_type == 'p') { $together_price = tep_round(($product_a_price + $product_b_price) * (1-($discount/100)), 6); if ($show_money_savings) { $together_savings = $product_a_price + $product_b_price - $together_price; $together_savings_string .= $currencies->format($together_savings); } if ($show_percentage_savings) { $together_savings_string .= ' ' . $discount . '%'; } } else { $together_price = tep_round($product_a_price + $product_b_price - $discount,6); if ($show_money_savings) { $together_savings = $product_a_price + $product_b_price - $together_price; $together_savings_string .= $currencies->format($together_savings); } if ($show_percentage_savings) { $together_percentage = ($discount /($product_a_price + $product_b_price))*100; $together_savings_string .= ' ' . $together_percentage . '%'; } } } else { $together_price = tep_round(($product_a_price + $product_b_price), 6); $together_savings_string = ''; $together_image = '<img src=' . DIR_WS_IMAGES . 'info_blue_small.jpg alt="i" title="i">'; $together_text = '<font color="orange">'.TOGETHER_HEADING_TEXT_SUGGESTION . '</font><br>'; } $together_string = $currencies->format($together_price); echo '<table width="80%" class="together" cellpadding="2" align="center">' . '<tr> <td valign="top" width="1px" align="left">' . $together_image . '</td>' . '<td colspan="5" class="pageHeading">' . $together_text . TOGETHER_TEXT_BUY . ' <a href="' . tep_href_link('product_info.php', 'products_id=' . $product_a['products_id']) . '">' . str_replace('\'','`',$product_a['products_name']) . ' ' . tep_image('images/ico_arrow.gif', ICON_ARROW_RIGHT) . '</a> ' . TOGETHER_TEXT_AND . ' <a href="' . tep_href_link('product_info.php', 'products_id=' . $product_b['products_id']) . '">' . str_replace('\'','`',$product_b['products_name']) . ' ' . tep_image('images/ico_arrow.gif', ICON_ARROW_RIGHT) . '</a></td>' . '</tr> <tr> <td></td>' . '<td width="80px" align="center">' ;?> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_a['products_id']) . 'ℑ=0\\\')">' . tep_image(DIR_WS_IMAGES . $product_a['products_image'], str_replace('\'','`',$product_a['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_a['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_a['products_image'], str_replace('\'','`',$product_a['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a>'; ?> </noscript> <?php if ($show_original_prices) echo $currencies->format($product_a_price); echo '</td><td class="buybothText" align="center" width="100px"><img src="images/icon_plus.gif" border="0" style="vertical-align: middle"></td>' . '<td width="80px" align="center">' ;?> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_b['products_id']) . 'ℑ=0\\\')">' . tep_image(DIR_WS_IMAGES . $product_b['products_image'], str_replace('\'','`',$product_b['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_b['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_b['products_image'], str_replace('\'','`',$product_b['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a>'; ?> </noscript> <?php if ($show_original_prices) echo $currencies->format($product_b_price); echo '</td><td width="2%"></td>'. '<td align="middle" nowrap valign="middle" class="buybothText">' . TOGETHER_TEXT_TOGETHER . ' ' . '<br><font color="red">'.$together_string . '</font><br><br>'; echo tep_draw_form('together', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); echo tep_draw_hidden_field('products_id', $product_a['products_id']) . tep_draw_hidden_field('buy_tinn_add', $product_b['products_id']) . tep_image_submit('button_buy_now.gif', 'Add Them Together'); echo '</form>'; echo '<table>'; if ($discount > 0) echo '<tr><td class="buybothText" nowrap align="center"><br><font color="red">' . $together_savings_string . '</font></td></tr><tr><td class="vsmalltext" nowrap align="center">' . TOGETHER_TEXT_DISCOUNT_CHECKOUT . '</td></tr>'; echo '</table>'; echo '</td></tr>'; echo '</table>'; echo '</td></tr>'; } } ?>
-
Another 2 questions: 1 I encouter following problem: since I use 2gether the right column has disappeared at products in a together discount 2 I tried to change the font ype and size of the prices below the product image. I could change it but then the price moves to the right side of the image in stead of remaining below the image Any suggestions??
-
you're so great! thanks; it works perfectly! Martijn
-
Dear Amanda First of all: thank you so much for this contrib! One question: I sell kitchen appliances. Also Whip devices (to make whipped cream). We have 4 different models (so 4 products) and gas catridges for those whips, which is one product. Please see the link when my poor explanation is not clear. http://www.allesvoordekeuken.nl/catalog/pr...roducts_id=1318 I want to link the all 4 the whip's to the cartridges (so 4 different specials) but i can choose the cartridges only once. Once the cartridges have been selected for a special they are not available anymore for other specials. How can I change the code to make a product multiple selectable ? Tnx in advance! Martijn