Latest News: (loading..)

marcot

Members
  • Content count

    24
  • Joined

  • Last visited

1 Follower

About marcot

  • Birthday 04/10/1980

Profile Information

  • Real Name
    Marco
  • Gender
    Male
  • Location
    Enschede, Netherlands
  • Interests
    Webhosting en Domain registrations services
  1. Thanks FWR, I will start with the devs template (faqdesk_index.php already tested and working) Will do the rest faqdesk_info faqdesk_reviews ... soon. another question: * Force www.mysite.com/index.php to 301 redirect to www.mysite.com/ * * @uses str_replace() * @uses htmlspecialchars_decode() * * @[member='access'] private * @[member='Return'] mixed - bool false / void */ private function homePageRedirect() { if ( false !== do_homepage_redirect() ) { $this->redirect( str_replace( FILENAME_DEFAULT, '', htmlspecialchars_decode( tep_href_link( FILENAME_DEFAULT ) ) ) ); } return false; } // end method; } // end class This is causing an error also on newsdesk_index.php en faqdesk_index.php this is because we do an str_replace on the index.php en replace it to ' ' <=nothing ;-) so the index.php is cut off newsdesk_ en faqdesk_ resulting in a redirect to homepage. Do you have an other approach for this redirect (lets say exclude _index.php) <= notice to underscore Regards Marco
  2. Hello, When would there be an page module for faqdesk. is it simple to edit newsdesk module for it? regards Marco
  3. record: configuration >> USU5_FILTER_SHORT_WORDS update column configuration_value to be 0 and change configuration_description to <b>This setting will filter words.</b><br>0 = disabled <br><br>1 = Remove words of 1 letter<br>2 = Remove words of 2 letters or less<br>3 = Remove words of 3 letters or less<br> also change "set_function" to be this " tep_cfg_select_option(array('0','1','2','3',), " (without the quotes) and you can change it in admin!
  4. I dont understand it exactly, but why is google complaining about duplicated content? double title's and descriptions..? live preview: http://www.mangelot.nl/budget-webhosting-1-core-c-86_21_71.html goes to the same page as http://www.mangelot.nl/budget-webhosting-1-core-c-21_71.html so generates duplicate content both url have a own canonical link etc.. notice also the breadcrumb (categorie 86 "shared hosting" is missing in breadcrumb) is there an simple solution that if page -c-21_71.html is called this redirects to -c-86_21_71.html? regards Marco
  5. Hello FWR, It seems that the url validation isn't working for categories in categories. first we have this breadcrumb categorie1 (21) >> product listing (71)> product info lets say with url: productname-c-21_71.html we have moved categorie1 into a new categorie because of the many products (more sorted out) so now we have this breadcrumb categorie1 (86) >> categorie2 (21) >> product listing (71) > product info with url: productname-c-86_21_71.html same as: categorie-c-70.html categorie-c-86_70.html but now both urls are available (this gives duplicate content in google) any solution would be nice.. regards Marco
  6. what if the url are written like this: http://www.mydomain.com/index.php/cPath/21_71/page/1/sort/2a I dont see sort and or page in title. but if i manualy change url by: http://www.mydomain.com/index.php/cPath/21_71/?page=2&sort=2a I see the sort en page in title. Any options that it works in the first url write?
  7. hello, great contribution thanks! little add-on, for people with IE8 there is an standard error page used in this browser. Firefox uses the one in the script. change: catalog/includes/functions/general.php echo header("HTTP/1.0 404 Not Found") . '<p align="left" style="font-size: large;"> 404 Page not found!</p> to: echo header("HTTP/1.0 404 Not Found") . ' <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <p align="left" style="font-size: large;"> 404 Page not found!</p> this will work in IE8 and will display the page created in the code, and no default IE8. greetz, Marco
  8. Hello, I'm having the same problem as you do did you find an answer after al those years? i've installed the latest update on this contribution, and i see the ordered product with the attributes. but not if there are more than one product in the order with al there own kind of attributes. I'm wondering if this is the same problem as you have? regards Marco
  9. Chris, Did you receive my email on your msn messenger account? (the one in your profile) ? Its about the pdfinvoice models column.. greetz, marco
  10. Hi chris I've try'ed your solutions but it seems not to work correctly: I've I replaced the output_table_heading with your option but its still getting messed up multiple model colums, Two model names in one column written throught each other..? When I use this output_table_heading below it seems al little normaal, and I can read the text, but its still getting one part of the model in the right column and the rest is in the column of the second product model. Can you see what is getting wrong with this code ? output_table_heading($Y_Fields_Name_position); //Show the products information line by line for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) { $prod_attribs=''; // set cell height $cell_height = 5; // if product name length is > 45 (arial at font size 10) , we get a line break, so start $attrib_count=1 // adjust upwards for smaller fonts sizes; trial and error! $attrib_count = (strlen($order->products[$i]['name']) > 45 ) ? 1 : 0; //get attribs and concat. Use attrib count to increase cell height for row if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) { for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) { $prod_attribs .= "\n- " .$order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value']; $attrib_count++; } } $attrib_count++; $product_name_attrib_contact = $order->products[$i]['name'] . $prod_attribs; $pdf->SetFont(PDF_INV_CORE_FONT,'',10); $pdf->SetY($Y_Table_Position); $pdf->SetX(6); $pdf->MultiCell(9,($cell_height*$attrib_count),$order->products[$i]['qty'],1,'C'); $pdf->SetY($Y_Table_Position); $pdf->SetX(40); $pdf->SetFont(PDF_INV_CORE_FONT,'',10); $pdf->MultiCell(115,$cell_height,tep_html_entity_decode($product_name_attrib_contact),1,'L'); $pdf->SetFont(PDF_INV_CORE_FONT,'',10); $pdf->SetY($Y_Table_Position); $pdf->SetX(15); $pdf->SetFont(PDF_INV_CORE_FONT,'',3); $breaks = (strlen($order->products[$i]['model']) > 10) ? (ceil(strlen($order->products[$i]['model'])%3)) : 1; $pdf->MultiCell(25,($cell_height*$attrib_count)/$breaks,tep_html_entity_decode($order->products[$i]['model']),1,'C'); $pdf->SetY($Y_Table_Position); $pdf->SetX(155); $pdf->SetFont(PDF_INV_CORE_FONT,'',10); $pdf->MultiCell(22,($cell_height*$attrib_count),$currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']),1,'C'); $pdf->SetY($Y_Table_Position); $pdf->SetX(177); $pdf->MultiCell(22,($cell_height*$attrib_count),$currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']),1,'C'); $pdf->SetY($Y_Table_Position); $Y_Table_Position += ($cell_height*$attrib_count); regards Marco
  11. Hello Chris23 I've managed to change te column size by adding ($cell_height*$attrib_count) to the column height. But when there are 2 products on the invoice with an models name to large for the width of the models column. the rest of the name is inserted in the column of the second product.. (that also has en models name..) so this doesn't really look pro... two models written is one column... do you have an solution..? some kind of line count for the models column i think ..?
  12. Chris your solution works great for account history info. No status no invoice... perfect (I only changed it to multi language). Another question: I'm trying to have the product attributes in a row.. And according to your forum link it works wel. but I've one problem. see screen shot: The models column doesn't resize? with the rest of the columns? this is the code: output_table_heading($Y_Fields_Name_position); //Show the products information line by line for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) { $prod_attribs=''; // set cell height $cell_height = 5; // if product name length is > 45 (arial at font size 10) , we get a line break, so start $attrib_count=1 // adjust upwards for smaller fonts sizes; trial and error! $attrib_count = (strlen($order->products[$i]['name']) > 45 ) ? 1 : 0; //get attribs and concat. Use attrib count to increase cell height for row if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) { for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) { $prod_attribs .= "\n- " .$order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value']; $attrib_count++; } } $attrib_count++; $product_name_attrib_contact = $order->products[$i]['name'] . $prod_attribs; $pdf->SetFont(PDF_INV_CORE_FONT,'',10); $pdf->SetY($Y_Table_Position); $pdf->SetX(6); $pdf->MultiCell(9,($cell_height*$attrib_count),$order->products[$i]['qty'],1,'C'); $pdf->SetY($Y_Table_Position); $pdf->SetX(40); $pdf->SetFont(PDF_INV_CORE_FONT,'',10); $pdf->MultiCell(115,$cell_height,tep_html_entity_decode($product_name_attrib_contact),1,'L'); $pdf->SetFont(PDF_INV_CORE_FONT,'',10); $pdf->SetY($Y_Table_Position); $pdf->SetX(15); $pdf->SetFont(PDF_INV_CORE_FONT,'',6); $pdf->MultiCell(25,6,tep_html_entity_decode($order->products[$i]['model']),1,'C'); $pdf->SetY($Y_Table_Position); $pdf->SetX(155); $pdf->SetFont(PDF_INV_CORE_FONT,'',10); $pdf->MultiCell(22,6,$currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']),1,'C'); $pdf->SetY($Y_Table_Position); $pdf->SetX(177); $pdf->MultiCell(22,6,$currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']),1,'C'); $pdf->SetY($Y_Table_Position); $Y_Table_Position += ($cell_height*$attrib_count); //Check for product line overflow $item_count++; if ((is_long($item_count / 32) && $i >= 20) || ($i == 20)){ $pdf->AddPage(); //Fields Name position $Y_Fields_Name_position = 125; //Table position, under Fields Name $Y_Table_Position = 70; output_table_heading($Y_Table_Position-6); if ($i == 20) $item_count = 1; } } Any idea's to solve this issue ? regards Marco
  13. chris23, Another question, is it possible to show the product options not after each other, but in a row? and is it possible to show an message in account_history_info.php when there is NO invoice (no shipping status) That the order invoice is pending along the status? regards Marcot
  14. Chris23, do you also hevan an solution why the customer number is generated on the client side. but not on the admin pdf invoice side ?
  15. First off all, thank you for your kindness... // Draw customer reference $customer_add_number_query = tep_db_query("select customers_additional_customers_number from " . TABLE_CUSTOMERS . " where customers_id = '". $customer_id . "'"); $customer_add_number = tep_db_fetch_array($customer_add_number_query); $pdf->Text(10,117, tep_html_entity_decode(PDF_INV_CUSTOMER_REF) . $customer_add_number['customers_additional_customers_number']); Works perfect on customer login (account history info) But can't get a customer number when generating throught Admin ?!..