Jump to content

spottedhaggis

Members
  • Content count

    182
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Craig Kennedy
  1. spottedhaggis

    Article Manager v1.0

    Is their any chance of this being made into a BTS system, unfortunately I have a site I am looking after for a friend that has the BTS system installed, and it makes modification a real pain.
  2. spottedhaggis

    Official PayPal IPN Support Thread

    Well, would you believe it. I worked on trying to figure my problem for over a day and could not find any way to fix it so felt it had to be something in osc thats the cause. Installed oscmax, moved the db file over (compare etc) and within an hour I had the client an new site using oscmax, but there was that problem al ver again. PAYPAL. It turned out she had not checked the merchant option in her paypal account so paypal was doing al the shipping for her
  3. spottedhaggis

    Official PayPal IPN Support Thread

    Hi all I have a huge issue and I think it could be related to the paypal IPN module. I use a shipping module thats simply zones (3) set to first item cost plus additional items cst Order something for ?6.00 Add shipping price of ?1.20 (first item) Proceed through checkut, all looks fine, totals are all ok. Get to paypal Shipping is ?1.00 rder 3 items at a cost of ?12.00 shipping total is ?1.20 +20+20 = 1.60 Grand total = 13.60 Get to paypal and grand total is ?14.00 (2.00 instead of 1.60 for shipping. It seems the values only work in ?1.00 and ?2.00 etc, not sure where this is coming from though since I only have one shipping option enabled.
  4. spottedhaggis

    Newsletter & Subscribtion for MS2

    Can anyone tell me if they have managed to get this working with a BTS system installed? I would like to use it but have templates being used.
  5. spottedhaggis

    Newsletter & Subscribtion for MS2

    just installed, and everything looks ok, no errors on any page. When I create a newsletter I am offered three options. Newsletter Newsletter_Subscribers Product Notifications. I have sent a test to both newsletter and newsletter subscribers, but on both occasions the newsletter manager displays the newsletter with a large red X next to sent. Any clues as to why, again no errors appear on anything with regards the newsletters, only this red X, and I do not receive the test.
  6. spottedhaggis

    fast easy checkout

    Regarding www.beadsneeds.co.uk Someone has come from this thread, created an account under the name dsadsa and purchased something with the option to pay by cheque. Please do NOT purchase anything as a test, if you do so my client will be forced to contact your service provider. It is plain to see its a live and fully operational store, so test purchases should be requested before being done. Thank you. Sorry NANA this is not meant for you, but from someone looking at this thread from Argentina. My client is not pleased I can tell you.
  7. spottedhaggis

    Admin Image on Invoice

    No one has any ideas!
  8. spottedhaggis

    Admin Image on Invoice

    Hi all. I have installed the contrib - Admin - Image on invoice located here - http://www.oscommerce.com/community/contri...mage+on+invoice For some reason I am just not able to get the image to display, the placeholder is there, it simply looks like the image is not located in the directory of the system, when I know for sure it is there. Can anyone help me out with this. The following is the contribution information, save you having to download it all. ell I finally got some time to fiddle with this - and have a working solution now. Its not that elegant but it works for me. Anyone wanting to suggest a better way to do then please post. I use this with the 'actual attribute price' contrib (v 1.3) so my code will have extra info regarding attributes - but you should get this to work even if you havent that mod installed. Just needs a minor change in admin/includes/classes/order.php search for: $orders_products_query = tep_db_query("select orders_products_id, products_name, products_model, products_price, products_tax, products_quantity, final_price from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "'"); while ($orders_products = tep_db_fetch_array($orders_products_query)) { $this->products[$index] = array('qty' => $orders_products['products_quantity'], 'name' => $orders_products['products_name'], 'model' => $orders_products['products_model'], 'tax' => $orders_products['products_tax'], 'price' => $orders_products['products_price'], 'final_price' => $orders_products['final_price']); Add an extra item in here - ive called it prod_id and also add it to the select statement // admin image on invoice v1.1 $orders_products_query = tep_db_query("select orders_products_id, products_id, products_name, products_model, products_price, products_tax, products_quantity, final_price from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "'"); while ($orders_products = tep_db_fetch_array($orders_products_query)) { $this->products[$index] = array('qty' => $orders_products['products_quantity'], 'name' => $orders_products['products_name'], 'model' => $orders_products['products_model'], 'tax' => $orders_products['products_tax'], 'prod_id' => $orders_products['products_id'], 'price' => $orders_products['products_price'], 'final_price' => $orders_products['final_price']); // admin image on invoice v1.1 end ------------------------------- end of changes to oder.php --------------------------------- Then change the admin/invoice.php in two places. The first change will find the image info based on the array of product_id's - works for multiple items in your invoice. search for: echo ' </td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n"; echo ' <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . then add directly BEFORE // admin image on invoice v1.1 $prodimage_query = tep_db_query("select products_image from " . TABLE_PRODUCTS . " where products_id = '" . (int)$order->products[$i]['prod_id'] . "'"); $prodimage = tep_db_fetch_array($prodimage_query); // mbr image on invoice v1.0 end The second place is to actually show the images on the invoice search for: <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n"; echo ' </tr>' . "\n"; then add directly under this: // admin image on invoice v1.1 echo ' <tr><td align="left" colspan="8" class="dataTableContent" valign="top"> ' . tep_image('../' . DIR_WS_IMAGES . $prodimage['products_image'], $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</td></tr>' . "\n"; // admin image on invoice v1.1 end This should place an image (size set by small image size in admin) for each item in your order. Probably not good code to do tep_image('../' . DIR_WS_IMAGES.. but i couldnt figure out how to get round this. If you want a larger image - ie the original image size then change the last section to: // admin image on invoice v1.1 echo ' <tr><td align="left" colspan="8" class="dataTableContent" valign="top"> ' . tep_image('../' . DIR_WS_IMAGES . $prodimage['products_image'], $order->products[$i]['name']) . '</td></tr>' . "\n"; // admin image on invoice v1.1 end
  9. spottedhaggis

    Product Listing in Columns v2.0

    Is anyone able to help me figure out how to place the image to the right of the text rather than above the text?
  10. spottedhaggis

    Product Listing in Columns v2.0

    Hi all. Great contrib, more or less exactly what I was looking for, I do noeed some help in making a slight change to the layout of the items Currently the contrib displays as follows Image display, under image is model and then the buy button ----------Image---------------------------Image ----------- ----------Model----------------------------Model------------ ----------Buy-------------------------------Buy-------------- What I really need to have is the image display and then to the right of the image the model and the buy button under model. ---------------------------------------------------------------- ---------------------------------------------------------------- -------Image-----Model-------------Image-----Model------ --------------------Buy----------------------------Buy------- I have looked at the product_listing age but in all honesty I cant figure out where to start anything Can anyone offer any help with this.
  11. spottedhaggis

    Product Listing Col Contrib

    Sorry about that. It should be ----Image-------Model------------------Image---------Model -------------------ADD------------------------------------ADD At the moment it is this ------Image------------------------------Image-------------- ------Model-------------------------------Model-------------- -------ADD--------------------------------ADD---------------
  12. spottedhaggis

    Product Listing Col Contrib

    Hi all, Happy Christmas and have a great new year (I sure as hell hope I do) I have just installed the contrib that allows you to select either list display or columns display of products. I did have a similar one before but this one has the admin function which enables me to switch it on and off etc. This contrib defaults to have the image, with model and add button directly below, and I need to have the model and add button to the right side of the image for both columns. I have looked at the product_list file but no matter what I try it screws it all up, lol. Can anyone help me out with how to change the layout of this file so I have the following. __________ ___________ | | | | | | Model Number | | Model Number | | | | | | ADD | | ADD | | | | -------------- ---------------- Excuse the cruedness of the drawings, lol. The script - product_list is as follows currently <?php /* $Id: product_listing.php,v 1.44 2003/06/09 22:49:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id'); if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php } if (PRODUCT_LISTING_DISPLAY_STYLE == 'list') { $list_box_contents = array(); for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_text = TABLE_HEADING_MODEL; $lc_align = ''; break; case 'PRODUCT_LIST_NAME': $lc_text = TABLE_HEADING_PRODUCTS; $lc_align = ''; break; case 'PRODUCT_LIST_MANUFACTURER': $lc_text = TABLE_HEADING_MANUFACTURER; $lc_align = ''; break; case 'PRODUCT_LIST_PRICE': $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right'; break; case 'PRODUCT_LIST_QUANTITY': $lc_text = TABLE_HEADING_QUANTITY; $lc_align = 'right'; break; case 'PRODUCT_LIST_WEIGHT': $lc_text = TABLE_HEADING_WEIGHT; $lc_align = 'right'; break; case 'PRODUCT_LIST_BUY_NOW': $lc_text = TABLE_HEADING_BUY_NOW; $lc_align = 'center'; break; case 'PRODUCT_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; break; } if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) { $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text); } $list_box_contents[0][] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => ' ' . $lc_text . ' '); } if ($listing_split->number_of_rows > 0) { $rows = 0; $listing_query = tep_db_query($listing_split->sql_query); while ($listing = tep_db_fetch_array($listing_query)) { $rows++; if (($rows/2) == floor($rows/2)) { $list_box_contents[] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($list_box_contents) - 1; for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { $lc_align = ''; switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_align = ''; $lc_text = ' ' . $listing['products_model'] . ' '; break; case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> '; } break; case 'PRODUCT_LIST_MANUFACTURER': $lc_align = ''; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> '; break; case 'PRODUCT_LIST_PRICE': $lc_align = 'right'; if (tep_not_null($listing['specials_new_products_price'])) { $lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> '; } else { $lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } break; case 'PRODUCT_LIST_QUANTITY': $lc_align = 'right'; $lc_text = ' ' . $listing['products_quantity'] . ' '; break; case 'PRODUCT_LIST_WEIGHT': $lc_align = 'right'; $lc_text = ' ' . $listing['products_weight'] . ' '; break; case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } break; } $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text); } } new productListingBox($list_box_contents); } else { $list_box_contents = array(); $list_box_contents[0] = array('params' => 'class="productListing-odd"'); $list_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); new productListingBox($list_box_contents); } } elseif (PRODUCT_LISTING_DISPLAY_STYLE == 'columns') { $info_box_contents = array(); if ($listing_split->number_of_rows > 0) { $row = 0; $col = 0; $listing_query = tep_db_query($listing_split->sql_query); while ($listing = tep_db_fetch_array($listing_query)) { $listing['products_name'] = tep_get_products_name($listing['products_id']); if (PRODUCT_LIST_IMAGE > 0) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>'; } if (PRODUCT_LIST_NAME > 0) { $lc_text .= '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a><br>'; } if (PRODUCT_LIST_MODEL > 0) { $lc_text .= '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . $listing['products_model'] . '</a><br>'; } if (PRODUCT_LIST_MANUFACTURER > 0) { $lc_text .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a><br>'; } if (PRODUCT_LIST_PRICE > 0) { if (tep_not_null($listing['specials_new_products_price'])) { $lc_text .= '<s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>'; } else { $lc_text .= ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } } if (PRODUCT_LIST_BUY_NOW) { $lc_text .= '<br><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY . $listing['products_name'] . TEXT_NOW) . '</a>'; } $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => $lc_text); $col ++; if ($col > PRODUCT_LIST_COL_NUM-1) { $col = 0; $row ++; } } new contentBox($info_box_contents); } else { $info_box_contents = array(); $info_box_contents[0] = array('params' => 'class="productListing-odd"'); $info_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); new contentBox($info_box_contents); } } if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php } ?>
  13. spottedhaggis

    Popup with more info

    Hi all. I have the popup with more info installed. When I view a product, and click the image, I can click the add to cart option on the popup and it works. I have enabled the popup option for produc listings, but the same popup does not work. Can anyone help me figure out why its working where it should be, but not working whrere I have placed it.
  14. spottedhaggis

    Popup with additional information

    I have tried everything with the limited exposure I have had to Javascript, and cannot see anything wrong with it, sadly the one site I found that has it working has not repied to my email asking for assistance in comparing theirs with mine, and the contrib creator suggested I msn him, which I did but he has not replied either. Is there anyone out there that has had this working and can offer some guidance as to what I am doing wrong, or not doing. Please.
  15. spottedhaggis

    Popup with additional information

    I am sure this issue is something very silly, and thats the only reason it is not being replied to, but can anyone help me with it. I have used the various level contribs for it none make any difference.
×