Jump to content

Seeking experts that I can make some changes


Recommended Posts

I am designing a web store and I have planted a number of problems:

1 - I want to add a button "Billing Provider" in which instead of the selling price of the product, you receive the purchase price and the reference provider (I've placed the button, but does not refer to the file when I call : PDF2.php, and I already placed the reference of the supplier, but can not get the price).

2 - Ilike to to create a system of " sellingpapers "to drawings as follows:
I think a combination ballot "Number" and add a number to the attribute "Number", eg "0000", I change product.tpl so that if I find the attribute "number" in some product, I go to look for a table that I created with different numbers of 10000 quantity 1, and I load these (by this I would avoid creating a lot of combinations), how difficult it would come to generate the invoice (as the above I know it myself) , Would have to put the combination of the table that I created and not accustomed to that call.

I would like as ye should say I can cost me the first problem, and the second (separately) that most interests me is 1.

Thank you very much and best regards.

Link to comment
Share on other sites

At the store I'm creadno http://www.eluniversodelperro.com/tienda/ I added a new button in the "Bills" to generate the invoice or order from suppliers; gusari me know:

1 - I have to change so that instead of calling a function / class / call me PDF2.php PDF.php
2 - I would like to appear the purchase price to the supplier (if I quivoco 'wholesale_price')

the thing is that the file pdf.php see this piece (which if I remember correctly is that I have to change, I've got to show me the reference of the provider):

/**
  * Product table with references, quantities...
  */
  public function ProdReturnTab()
  {
     global $ecotax;

     $header = array(
        array(self::l('Description'), 'L'),
        array(self::l('Reference'), 'L'),
        array(self::l('Qty'), 'C')
     );
     $w = array(110, 25, 20);
     $this->SetFont(self::fontname(), 'B', 8);
     $this->SetFillColor(240, 240, 240);
     for ($i = 0; $i < sizeof($header); $i++)
        $this->Cell($w[$i], 5, $header[$i][0], 'T', 0, $header[$i][1], 1);
     $this->Ln();
     $this->SetFont(self::fontname(), '', 7);

     $products = OrderReturn::getOrdersReturnProducts(self::$orderReturn->id, self::$order);
     foreach ($products AS $product)
     {
        $before = $this->GetY();
        $this->MultiCell($w[0], 5, Tools::iconv('utf-8', self::encoding(), $product['product_name']), 'B');
        $lineSize = $this->GetY() - $before;
        $this->SetXY($this->GetX() + $w[0], $this->GetY() - $lineSize);
        $this->Cell($w[1], $lineSize, ($product['product_reference'] != '' ? Tools::iconv('utf-8', self::encoding(), $product['product_reference']) : '---'), 'B');
        $this->Cell($w[2], $lineSize, $product['product_quantity'], 'B', 0, 'C');
        $this->Ln();
     }
  }




I liked that all I calculate everything as the price of the purchase price from the wholesaler, but do not know what exactly I have to change, finally, I also like that when you generate the PDF, if there are 4 clients shopping, I'll generate the same but priced provider, and I want at the very end, I calculate the sum of all products excluding VAT, of all the taxes, and total.

Anybody can help me a bit to accomplish this?

Thank you very much and best regards

Link to comment
Share on other sites

×
×
  • Create New...