Jump to content

AlaneinHilo

Members
  • Content count

    40
  • Joined

  • Last visited

Everything posted by AlaneinHilo

  1. Ok I jumped the gun, just needed to apply logic in my case. I am using image category trees but the thumbnail folder must be manually created for each category. Just gave the new image category folder a thumbnail folder and viola. Alane
  2. Hi Robert, Have you had any luck with this issue? I am encountering the same behavior with some of my thumbnails. Alane
  3. AlaneinHilo

    [contribution] STS PLUS v4

    Hi Rigadin, Thanks so much for replying so quickly. OK I found where I had gone wrong - I was making changes to includes/sts_user_code.php when I should be making changes includes/modules/sts_inc/sts_user_code.php ! :blush: Residue from previous STS. Really like what you have created here, thanks so much for all your work! Alane
  4. AlaneinHilo

    [contribution] STS PLUS v4

    Nifty contrib, I really like it. I do need some help though: I am trying to create some new placeholders, I tried adding to sts_user_code.php: $sts->template['imagepath'] = 'images/default_template'; $sts->template['aboutus'] = '<a href=' . tep_href_link(FILENAME_ABOUT) . ' class="headerNavigation">' . HEADER_TITLE_ABOUT . '</a>'); $sts->template['locate'] = '<a href=' . tep_href_link(FILENAME_LOCATE) . ' class="headerNavigation">' . HEADER_TITLE_LOCATE . '</a>'); $sts->template['contact'] = '<a href=' . tep_href_link(FILENAME_CONTACT) . ' class="headerNavigation">' . HEADER_TITLE_CONTACT . '</a>'); $sts->template['home'] = '<a href="index.php" class="headerNavigation">' . HEADER_TITLE_HOME . '</a>'); ALSO TRIED: $template['imagepath'] = 'images/default_template'; $template['aboutus'] = '<a href=' . tep_href_link(FILENAME_ABOUT) . ' class="headerNavigation">' . HEADER_TITLE_ABOUT . '</a>'); $template['locate'] = '<a href=' . tep_href_link(FILENAME_LOCATE) . ' class="headerNavigation">' . HEADER_TITLE_LOCATE . '</a>'); $template['contact'] = '<a href=' . tep_href_link(FILENAME_CONTACT) . ' class="headerNavigation">' . HEADER_TITLE_CONTACT . '</a>'); $template['home'] = '<a href="index.php" class="headerNavigation">' . HEADER_TITLE_HOME . '</a>'); And then in my template I have placed the markers for them, ie.: $imagepath#, $locate#, $home# etc. The end character has been configured as #. But the placeholders are not being recognized, they are printing on the page. What have I missed? Thanks! Alane
  5. Hi Giles, Did you solve your problem? I encountered the same issue. What I did to fix it was upload the options_attributes.php file to catalog/admin rather than catalog/admin/includes then 2 changes: Changed options_update.js: http.open('get',"includes/options_attributes.php?po_id="+id) to: http.open('get',"options_attributes.php?po_id="+id) Changed options_attributes.php: require('application_top.php'); To: require('includes/application_top.php'); Alane
  6. Hi there! I've got this contrib installed and working fine! Thank you for your work! Is there a way to add the customer fax and order comments to printorder? I have modified this to act as a fax order form but need to insert the customer's fax number to the details. If there is a way to add the comments that would be awesome! I tried: <?php echo '?<b>Fax#</b>' . '<br>?' . $order->customer['fax']; ?> But that didn't work. Thanks! Alane
  7. AlaneinHilo

    Quantity Price Breaks Per Product

    That worked! Thanks so much for your quick help Jan! Alane
  8. AlaneinHilo

    Attribute Sets Plus

    Thanks so much for this wonderful contrib! I have it installed and working fine. I do have a question/suggestion though: There doesn't seem to be a way to add more attributes to a set once you have created the set. I see you can remove but not add if you go to edit an existing set. Are there any plans to add this ability to the contrib? Thanks for your work, this has saved me so much time! Alane
  9. AlaneinHilo

    Quantity Price Breaks Per Product

    I've got QPBPP mostly successfully installed but I am having an issue with the product copy feature in admin. When I attempt to copy (duplicate) a product I get this: The corresponding code in categories.php is: elseif ($HTTP_POST_VARS['copy_as'] == 'duplicate') { $product_query = tep_db_query("select products_quantity, products_model, products_image, products_price, products_price1, products_price2, products_price3, products_price4, products_price5, products_price6, products_price7, products_price8, products_price1_qty, products_price2_qty, products_price3_qty, products_price4_qty, products_price5_qty, products_price6_qty, products_price7_qty, products_price8_qty, products_qty_blocks, products_date_available, products_weight, products_tax_class_id, manufacturers_id from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'"); $product = tep_db_fetch_array($product_query); tep_db_query("insert into " . TABLE_PRODUCTS . " (products_quantity, products_model, products_image, products_price, products_price1, products_price2, products_price3, products_price4, products_price5, products_price6, products_price7, products_price8, products_price1_qty, products_price2_qty, products_price3_qty, products_price4_qty, products_price5_qty, products_price6_qty, products_price7_qty, products_price8_qty, products_qty_blocks, products_date_added, products_date_available, products_weight, products_status, products_tax_class_id, manufacturers_id) values ('" . tep_db_input($product['products_quantity']) . "', '" . tep_db_input($product['products_model']) . "', '" . tep_db_input($product['products_image']) . "', '" . tep_db_input($product['products_price']) . "', now(), " . (empty($product['products_date_available']) ? "null" : "'" . tep_db_input($product['products_date_available']) . "'") . ", '" . tep_db_input($product['products_weight']) . "', '0', '" . (int)$product['products_tax_class_id'] . "', '" . (int)$product['manufacturers_id'] . "')"); $dup_products_id = tep_db_insert_id(); $description_query = tep_db_query("select language_id, products_name, products_description, products_url from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$products_id . "'"); while ($description = tep_db_fetch_array($description_query)) { tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " (products_id, language_id, products_name, products_description, products_url, products_viewed) values ('" . (int)$dup_products_id . "', '" . (int)$description['language_id'] . "', '" . tep_db_input($description['products_name']) . "', '" . tep_db_input($description['products_description']) . "', '" . tep_db_input($description['products_url']) . "', '0')"); } Where have I gone wrong here? Thanks, Alane
  10. AlaneinHilo

    [contribution] Simple Template System (sts)

    I am having some issues with the way STS is setting the headcontent base href. I am using STS 3.0 beta and I see the code to set it is this bit: $template['headcontent'] .= '<base href="' . (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . '">' . "\n"; BUT, it's always using the HTTPS_SERVER to set the base. See http://www.hulasupplycenter.com/catalog/ and take a look at the source code. It isn't a huge thing, but it is noticable when you go to click a relative link and it switches to the secure server (ie when you switch between english and japanese). ---------------------------------------------------- The javascript syntax error issue that some of us have had: on the sts_osc_javascript.js I removed the: <script language="javascript"><!-- at the top and the: //--></script> from the bottom of the file. Alane
  11. AlaneinHilo

    [Contribution] Extra Fields

    Does anyone know how to add the extra fields to the checkout_confirmation.php page under the order listing? My attempts so far have failed spectacularly. Thanks in advance! Alane
  12. AlaneinHilo

    [Contribution] Extra Fields

    So you just want to hide the field name in your display? I think you could just remove or comment out: echo '<b>'.$extra_fields['name'].': </b>'; from the following bit in product_info.php: while ($extra_fields = tep_db_fetch_array($extra_fields_query)) { echo '<b>'.$extra_fields['name'].': </b>'; echo $extra_fields['value'].'<BR>'; Alane
  13. AlaneinHilo

    [CONTRIB] Options as Images for MS2

    Anyone using this contribution with 'On the Fly' Auto Thumnailer or a similar contrib? I just tried to install On the Fly but it is 'breaking' my option images by messing up the src. With the option installed the src code for the options display comes out looking like this: When it should look like this: It is the edits to includes/functions/html_output.php that are causing it but I am not sure what I need to do to make these 2 get along. -------------------------------------------------------------------- Regards to gtr_rider: Did you get it working? I am using STS as well, here is what I did to make it work for the site www.hulasupplycenter.com/catalog/. includes/sts_product_info.php file: approx line 64 find: directly above this line, ADD: next, find: after this line, ADD: Next, in includes/sts_templates/[your template folder]/product_info.php.html Where you want the options to display, ADD: So that is what I did - if anyone has a better way I'm interested in knowing because this seems a little hinky. Thanks! Alane
  14. AlaneinHilo

    [contribution] Simple Template System (sts)

    OK I have experienced a healing with the strange code snippets showing up on the tops of my pages. I just overwrote all my includes files with my local copy and viola, problem solved.
  15. AlaneinHilo

    [contribution] Simple Template System (sts)

    OK things have changed a little with my strange bit of code appearring at the tops of my pages, I just updated my english.php file and now this shows up at the top of my pages: I tried searching for that string in my shop and my search didn't eve turn it up. This is confusing. ALSO... yeah yeah, I know, there's more {=) I am getting the same syntax error as meules, except on all pages for me. Line: 2, Char: 1, Syntax error. Thanks!
  16. AlaneinHilo

    [contribution] Simple Template System (sts)

    I've just installed STS Beta2 (STS-3_00b2.zip) on a clean install and I am having a bit of trouble with its display. At the top of every page it is inserting this last string from the english.php file: See http://www.hulasupplycenter.com/catalog/ I can't figure this out, can you please help me? Thank you!
  17. AlaneinHilo

    [Contribution]Paypal IPN - Devosc

    Hi folks, I just upgraded to the latest version and I am having trouble. In test mode I follow the instructions and place an order and take it all the way to paypal. In the order details: So I copy the number in () up there into the transaction ID and then when I click Test IPN the resulting ipn.php page gives me this error: Any clues as to what is going on? It sends me a debug email from my attempt: Any clues as to why I am losing connection with my database? Thank you! Alane
  18. AlaneinHilo

    [contribution] Total B2B

    Aloha, Great contrib, I actually don't have a request for help, but a bit of info for folks who want to use BTS v. 1.3 with this contribution. I just finished installing B2B over a cart with BTS v1.3. After manually patching all the files (make sure to compare the files - there are a few changes that are outside of the //B2B start and end tags, see jogoto's post earlier in this thread). I was presented with the warning: along the top of products_info.php, products_review.php and products_review_info.php pages. This is caused by includes/meta_tags.php trying to insert the price in the <title> tag. To fix it Open includes/meta_tags.php, find line 187: if ($mt_new_price = tep_get_products_special_price($mt_product_info['products_id'])) { // $mt_products_price = $currencies->display_price($mt_product_info['products_price'], tep_get_tax_rate($mt_product_info['products_tax_class_id'])) . $currencies->display_price($mt_new_price, tep_get_tax_rate($mt_product_info['products_tax_class_id'])); // only display special price in meta tag title if it's a special $mt_products_price = $currencies->display_price($mt_new_price, tep_get_tax_rate($mt_product_info['products_tax_class_id'])); } else { $mt_products_price = $currencies->display_price($mt_product_info['products_price'], tep_get_tax_rate($mt_product_info['products_tax_class_id'])); } Replace with: //TotalB2B start $mt_product_info['products_price'] = tep_xppp_getproductprice($mt_product_info['products_id']); //TotalB2B end if ($mt_new_price = tep_get_products_special_price($mt_product_info['products_id'])) { //TotalB2B start $query_special_prices_hide = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'SPECIAL_PRICES_HIDE'"); $query_special_prices_hide_result = tep_db_fetch_array($query_special_prices_hide); if ($query_special_prices_hide_result['configuration_value'] == 'true') { $products_price = '' . $currencies->display_price_nodiscount($mt_new_price, tep_get_tax_rate($mt_product_info['products_tax_class_id'])) . ''; } else { $mt_products_price = '' . $currencies->display_price($mt_product_info['products_id'], $mt_product_info['products_price'], tep_get_tax_rate($mt_product_info['products_tax_class_id'])) . '' . $currencies->display_price_nodiscount($mt_new_price, tep_get_tax_rate($mt_product_info['products_tax_class_id'])) . ''; } //TotalB2B end } else { $mt_products_price = $currencies->display_price($mt_product_info['products_id'], $mt_product_info['products_price'], tep_get_tax_rate($mt_product_info['products_tax_class_id'])); } Next, find line 212: if ($mt_new_price = tep_get_products_special_price($mt_review['products_id'])) { $mt_products_price = $currencies->display_price($mt_review['products_price'], tep_get_tax_rate($mt_review['products_tax_class_id'])) . $currencies->display_price($mt_new_price, tep_get_tax_rate($mt_review['products_tax_class_id'])); } else { $mt_products_price = $currencies->display_price($mt_review['products_price'], tep_get_tax_rate($mt_review['products_tax_class_id'])); } Replace with: //TotalB2B start $mt_review['products_price'] = tep_xppp_getproductprice($mt_review['products_id']); //TotalB2B end if ($mt_new_price = tep_get_products_special_price($mt_review['products_id'])) { //TotalB2B start $query_special_prices_hide = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'SPECIAL_PRICES_HIDE'"); $query_special_prices_hide_result = tep_db_fetch_array($query_special_prices_hide); if ($query_special_prices_hide_result['configuration_value'] == 'true') { $products_price = '' . $currencies->display_price_nodiscount($mt_new_price, tep_get_tax_rate($mt_product_info['products_tax_class_id'])) . ''; } else { $mt_products_price = '' . $currencies->display_price($mt_product_info['products_id'], $mt_review['products_price'], tep_get_tax_rate($mt_review['products_tax_class_id'])) . '' . $currencies->display_price_nodiscount($mt_new_price, tep_get_tax_rate($mt_review['products_tax_class_id'])) . ''; } //TotalB2B end } else { $mt_products_price = $currencies->display_price($mt_review['products_id'], $mt_review['products_price'], tep_get_tax_rate($mt_review['products_tax_class_id'])); } Finally, find line 234: if ($mt_new_price = tep_get_products_special_price($mt_review['products_id'])) { $mt_products_price = $currencies->display_price($mt_review['products_price'], tep_get_tax_rate($mt_review['products_tax_class_id'])) . $currencies->display_price($mt_new_price, tep_get_tax_rate($mt_review['products_tax_class_id'])); } else { $mt_products_price = $currencies->display_price($mt_review['products_price'], tep_get_tax_rate($mt_review['products_tax_class_id'])); } Replace with: //TotalB2B start $mt_review['products_price'] = tep_xppp_getproductprice($mt_review['products_id']); //TotalB2B end if ($mt_new_price = tep_get_products_special_price($mt_review['products_id'])) { //TotalB2B start $query_special_prices_hide = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'SPECIAL_PRICES_HIDE'"); $query_special_prices_hide_result = tep_db_fetch_array($query_special_prices_hide); if ($query_special_prices_hide_result['configuration_value'] == 'true') { $products_price = '' . $currencies->display_price_nodiscount($mt_new_price, tep_get_tax_rate($mt_product_info['products_tax_class_id'])) . ''; } else { $mt_products_price = '' . $currencies->display_price($mt_product_info['products_id'], $mt_review['products_price'], tep_get_tax_rate($mt_review['products_tax_class_id'])) . '' . $currencies->display_price_nodiscount($mt_new_price, tep_get_tax_rate($mt_review['products_tax_class_id'])) . ''; } //TotalB2B end } else { $mt_products_price = $currencies->display_price($mt_review['products_id'], $mt_review['products_price'], tep_get_tax_rate($mt_review['products_tax_class_id'])); } And you're done :) -Alane
  19. AlaneinHilo

    Attributes Sort, Attributes Copier, Webmakers

    Hi folks did you fix your attributes problem? If you are still puzzling over it I was able to fix mine... well I think it is fixed - I can add attributes again and haven't encountered any ill effects. I am using both Attributes Sort v1 and Attributes Copier 0.6. I received that same error "1136 - Column count doesn't match value count at row 1". After taking a look at my DB there seems to be one more column that needs to be given a number. So I changed this (approx line 54): case 'add_product_attributes': $products_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']); $options_id = tep_db_prepare_input($HTTP_POST_VARS['options_id']); $values_id = tep_db_prepare_input($HTTP_POST_VARS['values_id']); $value_price = tep_db_prepare_input($HTTP_POST_VARS['value_price']); $price_prefix = tep_db_prepare_input($HTTP_POST_VARS['price_prefix']); $attributes_sort = tep_db_prepare_input($HTTP_POST_VARS['attributes_sort']); tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "', '" . (int)$attributes_sort . "')"); To: case 'add_product_attributes': $products_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']); $options_id = tep_db_prepare_input($HTTP_POST_VARS['options_id']); $values_id = tep_db_prepare_input($HTTP_POST_VARS['values_id']); $value_price = tep_db_prepare_input($HTTP_POST_VARS['value_price']); $price_prefix = tep_db_prepare_input($HTTP_POST_VARS['price_prefix']); $attributes_sort = tep_db_prepare_input($HTTP_POST_VARS['attributes_sort']); $sort_order = tep_db_prepare_input($HTTP_POST_VARS['sort_order']); tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values ('', '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "', '" . (int)$attributes_sort . "', '" . (int)$sort_order . "')"); And now it works. -Alane
  20. AlaneinHilo

    XSELL - Updated Product Listing

    Thank you LazyP for the fix on the xsell_products.php file. My catalog has only about 50 products at the moment so size was not causing the problem for me. Using your change b.language_id = 2 to b.language_id = $languages_id fixed my problem and x-sell seems to be working perfect now. andreas: Have you made the change LazyP suggested? I am able to use cross-sell with products with no manufacturer. Does it give you an error when you try to cross sell products without manufactures? -Alane
  21. AlaneinHilo

    XSELL - Updated Product Listing

    Hi there, I just finished installing X-Sell and have successfully added products using the X-Sell EDIT button and the products are shown in my store. But I think there is something wrong with my admin/xsell_products.php . When I go to the Cross Sell (X-Sell) Admin no products are listed, all I see is this: I am not getting any errors, but neither am I seeing any products listed. Any clues? Thanks! -Alane
  22. AlaneinHilo

    [Contribution] Image Resize v1.5

    houstond: Did you find a solution for your problem? Sounds like you are experiencing the same thing as I was. I have resorted to this: (in popup_image.php) FIND: $image = is_file($sImagefile) ? $sImageBig : $sImageDefault; REPLACE WITH $image = $sImageBig; This forces the the page to go to the images_big directory for the image. Not the fix I was hoping for but until someone who knows what is happening chimes in it will have to do. Only thing is, you MUST have an image in you IMAGES_BIG directory for it to call, otherwise you will end up with a broken images. Apparently Image Resize will not process gifs, so if you use that format for product images I don't think this fix will work. If you found a real fix for it I would love to know. -Alane
  23. AlaneinHilo

    contrib to give freebies?

    I am looking for that same kind of thing - I want to offer a buy 3, get one free promotion. I've been looking through all the contributions and the forum but I haven't found anything yet. Help anyone?
  24. I really need some help with Image_Resize (http://www.oscommerce.com/community/contributions,350). I have installed Image_Resize 1.5 and the thumbnail creation is working just fine. However, it will not display the big image in the popup. I am using their most recent fix (11/04/2003) for the popup_image.php file. When I right-click over the image and view its properties I see it is calling the image from store/images, rather than store/images/images_big On the path to the big_images folder defined in $sImagefile it is adding an extra level of my catalog name. Ex. "/home/luminous/public_html/store/store/images/images_big/fwc-m_Sky_RS.jpg There should only be one /store in that string. But the root of the problem seems to lie in the string: $image = is_file($sImagefile) ? $sImageBig : $sImageDefault; When I have it write out the value of $image using echo $image . "<br>"; it returns the file located within store/images, not store/images/images_big even when a file exists there. What is that string doing and why is it ignoring $sImageBig? This is what my popup_image.php file looks like: <?php $image_subdir = DIR_FS_CATALOG_IMAGES_BIG; if (substr($image_subdir, -1) != '/') $image_subdir .= '/'; // if you have problems showing the big image, remove the slashes and check the path $sImageDefault = DIR_WS_IMAGES . $products_values['products_image']; $sImageBig = DIR_WS_IMAGES . $image_subdir . $products_values['products_image']; $sImagefile = DIR_FS_CATALOG . $sImageBig; echo $sImagefile . "<br>"; echo $sImageDefault . "<br>"; echo $sImageBig . "<br>"; echo $image_subdir . "<br>"; $image = is_file($sImagefile) ? $sImageBig : $sImageDefault; echo tep_image($image, $products_values['products_name']); ?> I added the extra echo statements in there trying to find where that extra /store was coming from. Right now I have resorted to removing the: $image = is_file($sImagefile) ? $sImageBig : $sImageDefault; statement entirely and using $image = $sImageBig; forcing the page to go to the images_big directory for the image. This is really a band-aid, I hope to get the page working as it was intended without butchering its code like that. My store can be seen in action at http://www.luminousgifts.com/store Please forgive the messy appearance, I am still in the early stages of customizing the look. Thank you, -Alane
  25. AlaneinHilo

    [Contribution] Image Resize v1.5

    Hi there, I have installed Image_Resize 1.5 and the thumbnail creation is working beautifully. Thank you for this great contribution. However, it will not display the big image in the popup. If you right-click over the image and view its properties you will see it is calling the image from store/images, rather than store/images/images_big I think I have discovered the problem but I don't know how to fix it: On the path to the big_images folder it is adding an extra level of my catalog name. Ex. "/home/luminous/public_html/store/store/images/images_big/fwc-m_Sky_RS.jpg There should only be one /store in that string. This is what my popup_image.php file looks like: <?php $image_subdir = DIR_FS_CATALOG_IMAGES_BIG; if (substr($image_subdir, -1) != '/') $image_subdir .= '/'; // if you have problems showing the big image, remove the slashes and check the path $sImageDefault = DIR_WS_IMAGES . $products_values['products_image']; $sImageBig = DIR_WS_IMAGES . $image_subdir . $products_values['products_image']; $sImagefile = DIR_FS_CATALOG . $sImageBig; echo $sImagefile . "<br>"; echo $sImageDefault . "<br>"; echo $sImageBig . "<br>"; echo $image_subdir . "<br>"; $image = is_file($sImagefile) ? $sImageBig : $sImageDefault; echo tep_image($image, $products_values['products_name']); ?> I added the extra echo statements in there trying to find where that extra /store was coming from. My store can be seen in action at http://www.luminousgifts.com/store Please forgive the messy appearance, I am still in the early stages of customizing the look. Help? :unsure: Thank you, -Alane
×