Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

depayva

Pioneers
  • Posts

    15
  • Joined

  • Last visited

Profile Information

  • Real Name
    jose maria

depayva's Achievements

  1. At the points 5 and 13 you said that customer account is created before going to checkout_process. I've tried this and the account is created only when you push the continue button. I want to create account before push the continue button. Is possible? Regards
  2. Ok. This fix works with Firefox. Not with IE8 Regards.
  3. Hi. i've installed the 1.07 version. Well. I have two payment methods and one shipping method. If i don't check one of the payment method and click continue button i have a popup with this message: Payment Selection Error ------------------------------------------------ You must select a payment method. And the next page is: Fatal error: Call to a member function pre_confirmation_check() on a non-object in C:\AppServ\www\pruebas\includes\classes\onepage_checkout.php on line 729 this line is: $GLOBALS[$payment]->pre_confirmation_check(); is this a bug? Any solution? Regards
  4. Hola. Al poner sólo los atributos que están activos, gano espacio para nuevos productos y no hay descuadre en las páginas posteriores. El valor "---" es el que pongo como atributo sin valor. Obviamente, se puede elegir cualquiera, yo elegí este. Se que es una solución un tanto rara, porque no solucionamos el problema del overflow, ya que si el cliente elige todos los atributos, volveremos a tener overflow y descuadre. He intentado implementar un salto de página cuando el número de atributos es determinado, pero no funciona correctamente y sigo teniendo descuadre. Saludos.
  5. Hi Chris I've improvised a solution. Last code shows all the attributes. With this new code we show only the selectec attributes. And we have more space in the page for new products. $attrib_count = (strlen($order->products[$i]['name']) > 45 ) ? 1 : 0; $attrib_visible = 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++) { if ($order->products[$i]['attributes'][$j]['value'] != '---'){ $prod_attribs .= "\n- " .$order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value']; $attrib_visible++;} //$order->products[$i]['attributes'][$j]['value']; $attrib_count++; } } $attrib_visible++; $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); // Pad cell by ($attrib_count * \n) linebreaks to 'force' qty to cell top //$n_padd=""; //for($n_count=0; $n_count<$prod_attribs; $n_count++) { //$n_padd.="\n"; //} $pdf->MultiCell(9,($cell_height*$attrib_visible), ($order->products[$i]['qty']) ,1,'C'); // end add padding Now i have a question for you. Is possible a watermark with a image instead of a text? Regards.
  6. Hi Chris and all the people. I have the same problem that Stubbsy In this link you can see a invoice with products without attibutes: pdfinvoice1 In this link you can see a invoice with products with attributes: pdfinvoice2 This is the code: function output_table_heading($Y_Fields_Name_position){ global $pdf, $cell_color; //First create each Field Name // Config color filling each Field Name box $pdf->SetFillColor($cell_color[0],$cell_color[1],$cell_color[2]); //Bold Font for Field Name $pdf->SetFont(PDF_INV_CORE_FONT,'B',10); $pdf->SetY($Y_Fields_Name_position); $pdf->SetX(6); $pdf->Cell(9,6,tep_html_entity_decode(PDF_INV_QTY_CELL),1,0,'C',1); $pdf->SetX(15); $pdf->Cell(50,6,tep_html_entity_decode(TABLE_HEADING_PRODUCTS_MODEL),1,0,'C',1); $pdf->SetX(65); $pdf->Cell(93,6,tep_html_entity_decode(TABLE_HEADING_PRODUCTS),1,0,'C',1); //$pdf->SetX(118); //$pdf->Cell(20,6,tep_html_entity_decode(TABLE_HEADING_PRICE_EXCLUDING_TAX),1,0,'C',1); //$pdf->SetX(138); //$pdf->Cell(20,6,tep_html_entity_decode(TABLE_HEADING_PRICE_INCLUDING_TAX),1,0,'C',1); $pdf->SetX(158); $pdf->Cell(20,6,tep_html_entity_decode(TABLE_HEADING_PRICE_EXCLUDING_TAX),1,0,'C',1); $pdf->SetX(178); $pdf->Cell(20,6,tep_html_entity_decode(TABLE_HEADING_TOTAL_EXCLUDING_TAX),1,0,'C',1); $pdf->Ln(); } 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); // Pad cell by ($attrib_count * \n) linebreaks to 'force' qty to cell top $n_padd=""; for($n_count=0; $n_count<$attrib_count; $n_count++) { $n_padd.="\n"; } $pdf->MultiCell(9,($cell_height), ($order->products[$i]['qty'] . $n_padd) ,1,'C'); // end add padding $pdf->SetY($Y_Table_Position); $pdf->SetX(65); $pdf->SetFont(PDF_INV_CORE_FONT,'',6); $pdf->MultiCell(93,$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,'',8); //$pdf->MultiCell(25,($cell_height*$attrib_count),tep_html_entity_decode($order->products[$i]['model']),1,'C'); // $pdf->SetFont(PDF_INV_CORE_FONT,'',6); $pdf->SetY($Y_Table_Position); $pdf->SetX(15); // Pad cell by ($attrib_count * \n) linebreaks to 'force' qty to cell top $pdf->MultiCell(50,($cell_height), ($order->products[$i]['model'] . $n_padd) ,1,'C'); // $pdf->SetY($Y_Table_Position); $pdf->SetX(118); $pdf->SetFont(PDF_INV_CORE_FONT,'',10); //$pdf->MultiCell(20,($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(138); //$pdf->MultiCell(20,($cell_height*$attrib_count),$currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']),1,'C'); $pdf->SetY($Y_Table_Position); $pdf->SetX(158); $n_padd=""; for($n_count=0; $n_count<$attrib_count; $n_count++) { $n_padd.="\n"; } $pdf->MultiCell(20,($cell_height*$attrib_count),$currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']. $n_padd),1,'C'); $pdf->SetY($Y_Table_Position); $pdf->SetX(178); $n_padd=""; for($n_count=0; $n_count<$attrib_count; $n_count++) { $n_padd.="\n"; } $pdf->MultiCell(20,($cell_height*$attrib_count),$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']. $n_padd),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; } } for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) { $pdf->SetY($Y_Table_Position + 5); $pdf->SetX(102); $temp = substr ($order->totals[$i]['text'],0 ,3); if ($temp == '<b>') { $pdf->SetFont(PDF_INV_CORE_FONT,'B',10); $temp2 = substr($order->totals[$i]['text'], 3); $order->totals[$i]['text'] = substr($temp2, 0, strlen($temp2)-4); } $pdf->MultiCell(94,6,$order->totals[$i]['title'] . ' ' . $order->totals[$i]['text'],0,'R'); $Y_Table_Position += 5; } Please tell me the solution for this problem. Regards.
  7. Sorry, the post is here: http://www.oscommerce.com/forums/index.php?showtopic=271214
  8. HI. The new_products box shows the products of the store. I want to select only a few products to show in new_products box, not all. How can i do to get this. Sorry for my english. Regards from Spain.
  9. Hi hobbzilla. My site is http://www.novaltia.com The version of multi-stores is the V1.4 Well. When i stay in the first page called "Multimedia" and i find for example "pda" in the search box. The site doesn?t meet nothing. And i have products in the pda store. How i solve this problem? Sorry for my english. Regards from Spain.
  10. Hola amigo Ivan. He intentado instalar tu magn?fica contribuci?n en la CRE Loaded 6 y no hay manera. No se si ser? por el sistema de templates o por qu?. Pero no funciona. No se si te habr?s encontrado con ese problema o si no conoces CRE Loaded 6. CRE Loaded 6 Un saludo.
  11. Please, tell me the files that i have not update. Thanks
  12. Ok, thanks. Your contribution works. Why is not possible to share the same cart for all the stores?
  13. Step 1: Install Stock osC 2.2MS2 Step 2: Download Latest version of Multi-Stores Contribution http://www.oscommerce.com/community/contributions,1730 Step 3: Unzip files and copy them over 2.2MS2 installation (both admin & catalog) Step 4: Run the update.sql against the proper osC db. Step 5: Go to /admin -> catalog -> stores -> "Insert" (enter info -- at least a name) continue until you are finished for each store. -- YOU SHOULD NOW HAVE A SINGLE STORE (/catalog) WITH 0 products in it. Step 6: Copy /catalog and rename it whatever you like however many times you like (1 for each store) Step 7: Open /catalog/install/oscommerce.sql and copy all of the INSERT INTO configuration statements and paste them into your favorite text editor. Step 8: Do a search and replace for "INSERT INTO configuration" and replace with "INSERT INTO store2_configuration" (or naming them something of value "chuckstools_configuration". Step9: Update the osC sql db with the modified INSERT statments. Repeat Step 8 & 9 for each store (*making sure to change # or name for each store) Step10: Go to admin -> catalog and assign categories & products to the stores you desire. Step11: Enjoy. Well, I did this step by step and I add products in the first store and the first store shows the products. But when i add products in the second store the products don?t appear in the second catalog. Please, help me. Thanks and greetings from Spain.
×
×
  • Create New...