Jump to content

mark27uk3

Members
  • Content count

    1,481
  • Joined

  • Last visited

Everything posted by mark27uk3

  1. mark27uk3

    Newsletter products, HTML email

    Hi, I seem to be struggling a bit with getting the price to display, every time I try to use $currencies->display_price I get an undefined function error. The only way I can get the price to display is this way ' . $images['products_price'] . ' Obviously this price is not formatted correctly and ends up looking like ?49.0000. superstyling have you managed to get the price to display correctly? Thanks Mark
  2. mark27uk3

    Newsletter products, HTML email

    Hi scottyb, Do me a favour and have a look at this bit of code I have put in my newsletter_products module <td class="main">' . tep_flatten_product_description($images['products_description']) . '<br>'<a href=" . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . "&products_id=" . $bundle_data['products_id'])) .>" . tep_image_button('button_details.gif', IMAGE_BUTTON_DETAILS) . "</a></td></tr>'; I am getting Parse error: parse error, unexpected T_STRING and can not see for the life of me where the problem is. I am adding loads of the things to this great contrib like short description of products, price, specials price etc etc and my eyes are starting to go googly right about now lol Thanks Mark
  3. mark27uk3

    Bundled products

    Hi Ted, I had this problem last night when installed on my test server, wot I did was to make sure that the both the dbase queries were all on the same line, joined together which they should. So take the queries from the code you posted and change them to this. $bundle_query = tep_db_query(" SELECT pd.products_name, pb.*, p.products_bundle, p.products_id, p.products_price, p.products_image FROM products p INNER JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd ON p.products_id=pd.products_id INNER JOIN " . TABLE_PRODUCTS_BUNDLES . " pb ON pb.subproduct_id=pd.products_id WHERE pb.bundle_id = " . (int)$HTTP_GET_VARS['products_id'] . " and language_id = '" . (int)$languages_id . "'"); and $bundle_query_nested = tep_db_query(" SELECT pd.products_name, pb.*, p.products_bundle, p.products_id, p.products_price FROM products p INNER JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd ON p.products_id=pd.products_id INNER JOIN " . TABLE_PRODUCTS_BUNDLES . " pb ON pb.subproduct_id=pd.products_id WHERE pb.bundle_id = " . $bundle_data['products_id'] . " and language_id = '" . (int)$languages_id . "'"); That seemed to work for me. The problem I have now is in admin/categories when I go to remove a product from the bundle I get this I am not sure wot is causing this problem >_< Mark
  4. mark27uk3

    [Contribution] More Category Boxes

    Hi Mark, Yeah you can take a look at my site here Mark
  5. mark27uk3

    Newsletter products, HTML email

    Hi Scott, Dont ask me wot I did but it now works - sweet! The next task for me to do is add the price, special price and a short description of the product. I am also going to change the table layout so that the product image is on the left and the product name and price etc is on the right of the image. Any pointers or tips would be welcomed. Thanks Mark
  6. mark27uk3

    Newsletter products, HTML email

    Hi Scott, Thanks for the reply. All fields in the database are populated except for the content field. Does this mean anything to you? Mark
  7. mark27uk3

    Newsletter products, HTML email

    Hi Scott, I have installed this contrib and I can send the email but as someone previous said the email is blank with just the subject line. I have set 'Use MIME HTML When Sending Emails' to true and also I have the correct module selected for the newsletter_products. After the email has been sent I get the following errors on the page with the animated brief case. Line 16 is this function newsletter_products($title, $content, $products, $template) { As for the database.php error I am presuming the errors above are causing this and there is no problem with that file. Also when I created the newsletter, lock it and then try to edit the newsletter I get these errors The basic templates I created for the test newsletter is this <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> $html_content </body> </html> Any help on sorting out these problems would be appreciated as I think this contrib has so much scope. :thumbsup: Thanks Mark
  8. mark27uk3

    [Contribution] Tabbed Product Pages

    Hi Ted, I never stopped tinkering with it, I just could not get it to work with my well modified product info page. If anyone can come up with a solution I would be grateful. Mark
  9. mark27uk3

    [Contribution] Tabbed Product Pages

    Cheers Mike, I will be about all night as per usual lol! Thanks Mark
  10. mark27uk3

    [Contribution] Tabbed Product Pages

    Hi Mike, Yeah like yours but yours looks even better. Is this standard for all products or can you apply it to single products? Any chance of sharing the code? Thanks Mark
  11. mark27uk3

    [Contribution] Tabbed Product Pages

    Hi, has anyone successfully integrated this into a heavily modifies product_info file as I am really struggling to get this sorted. If you can help me then please let me know and I will either post the code or pm it to you. Thanks Mark
  12. Hi Adam, PHP is a learning curve like everything else, your problem was easy to solve because all I did was compare your code against any other box. Glad you got it working! Mark
  13. mark27uk3

    [Contribution] Tabbed Product Pages

    Hi Brian, I am trying to break the code down that you insert into the product_info.php file to only show in place of the description text. If you look here you will see that my product info page is heavily modified. This is the only piece of code from my product_info file that is required. All the images, buttons, price etc can be removed. <tr> <td> <p align="justify"><span class="main"><?php echo stripslashes($product_info_values['products_description']); ?></p></span> </td> </tr> I have tried but I am unsure which bits to keep and remove. Any chance of a helping hand. :thumbsup: Thanks Mark
  14. mark27uk3

    [Contribution] More Category Boxes

    Hi Joe, I think you may have installed the version by alfher, I am not too sure but you could try commenting out these lines. // CategoryBox Enhancement if (tep_has_category_subcategories($counter, 'image')) { $categories_string .= tep_image(DIR_WS_IMAGES . $tree[$counter]['image'], $tree[$counter]['name'], '30', '30'); } else { $categories_string .= tep_image(DIR_WS_IMAGES . $tree[$counter]['image'], $tree[$counter]['name'], '30', '30'); } if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '</b>'; } // CategoryBox Enhancement Mark
  15. mark27uk3

    [Contribution] More Category Boxes

    Yes thats what you do. Mark
  16. mark27uk3

    [Contribution] More Category Boxes

    You do not need to re-add your categories, they will show up in the drop down boxes in admin/more categories. Mark
  17. Hi Adam, Add this code $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SPECIALS_SCROLL); above this code new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_SPECIALS)); That should sort it out. Mark
  18. mark27uk3

    [Contribution] More Category Boxes

    Hi, Do you mean like like this? Mark
  19. mark27uk3

    [Contribution] More Category Boxes

    Hi, I am hoping for a bit of help as I am now quite lost! I am trying to acheive different header images for different boxes, I have tried to use the code from the array to acheive this but I either end up with all boxes with the same header image or no images at all. This is the code from the array $_infoBox[] = array( 'categories' => array( $_categories['category1_id'], $_categories['category2_id'], $_categories['category3_id'], $_categories['category4_id'], $_categories['category5_id'], $_categories['category6_id'], $_categories['category7_id'], $_categories['category8_id'], $_categories['category9_id'], $_categories['category10_id'], $_categories['category11_id'], $_categories['category12_id'], $_categories['category13_id'], $_categories['category14_id'], $_categories['category15_id'], $_categories['category16_id'], $_categories['category17_id'], $_categories['category18_id'], $_categories['category19_id'], $_categories['category20_id'], $_categories['category21_id'], $_categories['category22_id'], $_categories['category23_id'], $_categories['category24_id'], $_categories['category25_id'], ), 'name' => $_categories['infobox_name'], 'enabled' => $_categories['enabled'] ); and this is the code I have so far (minus my feable attempts at filling the if statement) <table width=162 border=0 cellpadding=0 cellspacing=0> <?php if (*********************) { ?> <tr> <td> <table width=162 border=0 cellpadding=0 cellspacing=0> <tr> <td colspan=3> <img src="images/boxes/table_simfree.gif" width=162 height=18></td> </tr> <?php }elseif (*********************) { ?> <tr> <td> <table width=162 border=0 cellpadding=0 cellspacing=0> <tr> <td colspan=3> <img src="images/boxes/table_categories.gif" width=162 height=25></td> </tr> <?php }elseif (********************) { ?> <tr> <td> <table width=162 border=0 cellpadding=0 cellspacing=0> <tr> <td colspan=3> <img src="images/boxes/table_unlock.gif" width=162 height=25></td> </td> <?php } ?> </table></td></tr> If anyone could help with this then it would help me a great deal and save me lots of hair! Thanks Mark
  20. mark27uk3

    [Contribution] More Category Boxes

    Hi Jared, Thanks for your time, I will try the above code. The only problem I will have if I disable the original categories box and use the more_categories instead is that I have different images for the the headers of the boxes. Any way around this? Thanks Mark
  21. mark27uk3

    Basic Design Pack Support

    Hi Jennifer, All you have to do is transfer over all the files in the catalog/image folder that begin with table_background. Mark
  22. mark27uk3

    [Contribution] More Category Boxes

    As well as my problem above, is there anyway to stop the categories shown in the more_categories box showing in the regular categories box apart from using an earlier suggestion in this thread about making all category boxes more_categories and removing the regular box. I hope that made sense! Thanks Mark
  23. mark27uk3

    [Contribution] More Category Boxes

    Hi Jared, I am well pleased with this contrib! However I do have one little problem. I have changed the infobox header to an image using this code $info_box_contents = array(); $info_box_contents[] = array('text' => new_tep_show_category($boxId,$cPath_array,$tree,$first_element)); new infoBox($info_box_contents); } ?> <!-- categories //--> <tr> <td> <TABLE WIDTH=162 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD COLSPAN=3> <IMG SRC="images/boxes/table_simfree.gif" WIDTH=162 HEIGHT=25></TD> </TR> <?php $_infoBox = array(); // define('TABLE_CATEGORIES_MORE','categories_more'); $categories_this_infobox_query = tep_db_query("select * from " . TABLE_CATEGORIES_MORE . " where enabled = 1"); while ($_categories = tep_db_fetch_array($categories_this_infobox_query)) and I have closed all the tables etc at the bottom of the file, the problem is that when the category box is disabled the header image still shows. I presume this has something to with the way it is called in column_left. Can you shed me some light on how to correct this so that when the box is disabled so is the header. You can see an example here Thanks Mark
  24. mark27uk3

    [Contribution] Tabbed Product Pages

    Hi Brian, I am interested in using this contrib, do you have a link to a site where I can see what it looks like before I go ahead and install it. Thanks Mark
  25. mark27uk3

    HSBC secure-epayment module

    Hi Martin, This is what is being passed using the print "Command:$cmd:"; I have omitted the hash key and the merchant id. Still none the wiser! Mark
×